Commit Graph

  • 0f390f9f85 Add uuid.lua from the other pull request rhy 2023-01-09 11:59:06 -0300
  • 4782e76e60 Merge branch 'uuid' of https://github.com/rhynomatt/batteries into uuid rhy 2023-01-10 10:46:47 -0300
  • 8ae275fe5d uuid: Slight doc improvements rhy 2023-01-09 16:16:29 -0300
  • 12c1fb5cac uuid: Remove ulid helper funcs rhy 2023-01-09 16:07:50 -0300
  • 4892448976 tests: Add ulid tests rhy 2023-01-09 16:02:44 -0300
  • 34e22b4855 uuid: Fix ulid length rhy 2023-01-09 16:02:30 -0300
  • d6d291d11d uuid: Add a time arg to ulid rhy 2023-01-09 14:02:00 -0300
  • 2b7084bdc0 uuid: Slightly better docs on ulid rhy 2023-01-09 14:01:46 -0300
  • 1671af2e3c uuid: Add an ulid func + helper funcs rhy 2023-01-09 13:51:12 -0300
  • d5452ba45e tests: Add some uuid4 tests rhy 2023-01-09 13:16:54 -0300
  • f5be54d50f uuid: Slight style fix rhy 2023-01-09 12:41:02 -0300
  • 48afcfc7eb woops typo rhy 2023-01-09 12:25:26 -0300
  • b8d1badf83 uuid: Discard gsub's 2nd return value rhy 2023-01-09 12:23:11 -0300
  • 900469618d uuid: Use mathx's _random instead of stringx's rhy 2023-01-09 12:11:53 -0300
  • ae330bab16 uuid: Add a passed rng to uuid4 rhy 2023-01-09 12:06:07 -0300
  • 08525114d2 uuid: Fix variable casing rhy 2023-01-09 12:02:32 -0300
  • 72334fcc25 Add uuid.lua from the other pull request rhy 2023-01-09 11:59:06 -0300
  • ba7a7b5500 fixed intersection tests with zero radius shapes (treated as points generally) Max Cahill 2022-12-08 13:36:29 +1100
  • 2c76b7dde0 fixed crash in spairs and then provided a more robust default_less function which sorts numbers before strings, but sorts those groups with operator< Max Cahill 2022-12-06 10:45:57 +1100
  • 0d88061e3b moved unique_mapping to ferris Max Cahill 2022-12-05 18:10:21 +1100
  • 844c9e8c8f ...needed to forward-declare for the previous fix Max Cahill 2022-11-08 09:23:45 +1100
  • c6e6ec858c fixed accidentally global callback in subscribe_once Max Cahill 2022-11-08 09:20:37 +1100
  • 94d9901728 better error reporting for pubsub defer-related errors Max Cahill 2022-11-07 17:13:25 +1100
  • 66e9848bef added pubsub:subscribe_once and fixed a bug if you subscribe or unsubscribe from inside a callback Max Cahill 2022-11-03 16:19:18 +1100
  • 9a8493b880 added stringx.split_and_trim to save me inlining something with the same effect all over the place Max Cahill 2022-10-24 16:08:39 +1100
  • 84d4e39622 clarified position/halfsize for aabbs and provided conversion functions from xywh to pos/hs representation Max Cahill 2022-10-24 15:18:28 +1100
  • 4174f56c3d
    Documentation for rect pos/hs in intersect.lua zikes 2022-10-19 10:56:32 -0500
  • 49df9d9743 added tablex.next_element Max Cahill 2022-10-18 12:25:37 +1100
  • 7285531870 fixed dedent() with trimmed blank lines (some editors do this automatically) Max Cahill 2022-09-20 15:00:44 +1000
  • 662101ddae Merge branch 'feature/nobit-colour' Max Cahill 2022-09-13 11:15:18 +1000
  • 4f86dc0a5e keep both bitop and float-only pack/unpack functions in colour Max Cahill 2022-09-13 11:15:08 +1000
  • 44c6ae1b0a added tablex.compact to compact sequential tables of a known range containing nils Max Cahill 2022-07-19 15:58:15 +1000
  • 24fde1c157 made stringx.deindent remove all trailing empties rather than just one Max Cahill 2022-07-11 16:44:51 +1000
  • 9f5dfcb923 removed needless branch in tablex.shallow_copy Max Cahill 2022-06-23 16:36:54 +1000
  • 81512550bb fixed possible stack overflow in deep_copy Max Cahill 2022-06-09 16:36:02 +1000
  • a5c26038df fixed reset timer still counting as expired Max Cahill 2022-06-07 16:43:20 +1000
  • bff54f0dbd disambiguated variable names in map_call Max Cahill 2022-06-07 16:30:01 +1000
  • b68081be53 added map_call for mapping a sequence with a method call (useful for object-y collections) Max Cahill 2022-06-07 16:16:01 +1000
  • 7366473f32 added functional.map_field for quick extraction of some field of a sequence of objects Max Cahill 2022-06-07 15:38:16 +1000
  • dbce7e6083 managed expired state inside the timer rather than just checking if the time has expired; makes sure the callback fires even for zero length timers Max Cahill 2022-06-07 14:09:35 +1000
  • a089b160a2 uuid: added a uuid module Josh Perry 2022-05-26 14:05:04 +0100
  • 795f2587d2 fixed pretty.lua using tablex instead of table alias Max Cahill 2022-05-23 14:54:05 +1000
  • 1e75fad409 changed pretty printing to use sorted keys Max Cahill 2022-05-23 14:51:18 +1000
  • 433e4ebb08 removed whitespace to make the linter happy; todo discover how to turn this particular inanity (whitespace only lines) off :) Max Cahill 2022-05-23 14:51:02 +1000
  • 8a57ae458f added changes to accept spairs; merged #58 Max Cahill 2022-05-23 14:48:52 +1000
  • 199b8ded1d tablex: Add spairs (alternative of pairs that returns sorted table) jalhund 2022-05-18 05:17:31 +0000
  • fabbd3f702
    colour: Don't depend on bit library. Miku AuahDark 2022-05-09 10:16:43 +0800
  • be48dd9115 clarified blue vs chroma b in oklab functions Max Cahill 2022-04-22 10:08:55 +1000
  • 6e65f82474 clarified rng variable name, but also removed warning for _ prefixed variables as they are used to signal internal/private variables rather than unused variables. Max Cahill 2022-04-22 10:05:44 +1000
  • cb3083bc79 added oklab support to colour.lua (needs testing) Max Cahill 2022-04-05 14:51:49 +1000
  • 05f86e2cc1 fixed wrong degenerate direction checked in intersect.line_line_collide Max Cahill 2022-03-29 17:56:02 +1100
  • 813ee20052 moving tests to .test to get them out of root folder for now Max Cahill 2022-03-07 12:10:20 +1100
  • 6969a044a3 updated tests to reflect that tablex shallow and deep copy don't copy non-table values Max Cahill 2022-03-07 12:04:19 +1100
  • 213ba5df0f added tablex.copy is an alias for tablex.shallow_copy, same for overlay, bunch of whitespace changes, some additional asserts Max Cahill 2022-03-07 12:00:05 +1100
  • de5c803389 fixed set not specifying deep or shallow copy Max Cahill 2022-03-07 11:59:23 +1100
  • b6ca4c7740
    Merge pull request #53 from idbrii/fix-async-lovejs Max Cahill 2022-03-07 10:50:36 +1100
  • 840f4ba703
    Merge pull request #54 from idbrii/capture-w-func Max Cahill 2022-03-07 10:49:01 +1100
  • 461c3a8131
    Merge pull request #52 from idbrii/table-deep-test Max Cahill 2022-03-07 10:27:35 +1100
  • 4b0e0c7ec7
    Merge pull request #51 from idbrii/lint Max Cahill 2022-03-07 10:14:08 +1100
  • a030a20985 async: Assert that args is a table; add type_or_nil David Briscoe 2022-03-05 20:19:07 -0800
  • 98f3630c07 async: Skip wrapping with xpcall under lovejs David Briscoe 2022-03-05 19:55:32 -0800
  • d48d4b0e81 table: Rewrite *_copy to copy any kind of type David Briscoe 2022-03-03 21:59:18 -0800
  • 0c193d7901 lint: Don't assign values that will never be used David Briscoe 2022-03-03 00:01:20 -0800
  • 5118cc42bb lint: Fix mismatched arguments in circle_aabb David Briscoe 2022-03-02 23:53:11 -0800
  • d6af9f74c5 lint: Don't set unused locals David Briscoe 2022-03-02 10:15:20 -0800
  • 9083ee74ca lint: Fix accessing undefined append_inplace David Briscoe 2022-03-02 10:12:30 -0800
  • a5ebc1e501 lint: Fix shadow issues David Briscoe 2022-03-02 10:03:57 -0800
  • 8d41c6d3d1 lint: Fix whitespace issues David Briscoe 2022-03-02 09:55:57 -0800
  • 66cb419db8 build: Add action for running luacheck David Briscoe 2022-03-02 09:51:55 -0800
  • 66a6c5a50e Add comments for things that surprised me David Briscoe 2022-03-02 10:30:52 -0800
  • c038546ae1 build: Add github action for running tests David Briscoe 2022-03-02 09:21:18 -0800
  • 5fa80ca97c tablex: Add deep & shallow for copy, overlay David Briscoe 2022-03-02 08:11:57 -0800
  • 5b4d1c16c5 tablex: Skip equality comparison in equal fn David Briscoe 2022-03-02 08:11:30 -0800
  • 585ba82e57 async: Use function to capture ... David Briscoe 2022-03-02 08:10:56 -0800
  • f6a18380d4
    Merge pull request #50 from Sheepolution/patch-3 Max Cahill 2022-03-01 13:02:27 +1100
  • f36946ace4
    Add comment to foreach regarding new behaviour Sheepolution 2022-03-01 03:01:39 +0100
  • 3c6aaf1a76
    Return table in foreach for chaining Sheepolution 2022-03-01 02:03:33 +0100
  • 0fdddab5b9
    Merge pull request #49 from Sheepolution/patch-2 Max Cahill 2022-02-24 11:05:22 +1100
  • 6df4b4bddd
    Don't have inplace methods return a new sequence Sheepolution 2022-02-22 05:01:27 +0100
  • 8fd402b125 Merge #48 - functional.splat Max Cahill 2022-01-25 10:23:07 +1100
  • aec62d92ec moved functional.splat below functional.map_inplace, reformatted a little Max Cahill 2022-01-25 10:22:28 +1100
  • fd998c8525
    Update functional.lua Jeremy S. Postelnek 2022-01-24 16:40:46 -0500
  • a9b699afdd
    Update functional.lua Jeremy S. Postelnek 2022-01-24 16:27:49 -0500
  • 120c9658fc
    Update functional.lua Jeremy S. Postelnek 2022-01-23 13:20:02 -0500
  • c0847e1955 fixed intersect.bounce_off bouncing if the velocity was already going away from the normal Max Cahill 2022-01-20 17:37:40 +1100
  • 658c8e7117 fixed mathx.ease_inout Max Cahill 2022-01-18 13:15:54 +1100
  • 0be82a31df fixed sequence missing a few functional methods Max Cahill 2022-01-17 17:05:59 +1100
  • 18347e0b72
    Merge pull request #47 from TurtleP/TurtleP/stringx_max_split Max Cahill 2021-12-31 08:44:35 +1100
  • 2ef834d538 max_split -> limit, allow zero limit TurtleP 2021-12-26 11:32:43 -0500
  • e5d00ef3a7
    clarify the non-zero *and* positive error Jeremy S. Postelnek 2021-12-24 13:23:37 -0500
  • b01ba8e506
    fix spacing Jeremy S. Postelnek 2021-12-24 13:19:38 -0500
  • 23bc392b6e
    check for negative max_split value Jeremy S. Postelnek 2021-12-24 13:19:12 -0500
  • 660ae8ca52
    add max_split to stringx.split Jeremy S. Postelnek 2021-12-24 13:03:36 -0500
  • 2d5555400d fixed pretty print depth issues Max Cahill 2021-11-26 16:50:44 +1100
  • e731a167d8 added tablex.shallow_equal and tablex.deep_equal, slow functions for content-based (in)equality of different tables Max Cahill 2021-11-23 11:40:31 +1100
  • 72cb14b8ec Merge branch feature/tablex.pick_weighted_random Max Cahill 2021-11-23 10:58:56 +1100
  • f3e299e3c9 fixed pubsub using set but not requiring it (breaks without :export()) Max Cahill 2021-11-23 10:45:09 +1100
  • f5eda744b9 clarified declaration of h in colour.rgb_to_hsl Max Cahill 2021-11-23 10:40:57 +1100
  • 5df717fe6d used mathx for clamp01 in intersect Max Cahill 2021-11-23 10:25:09 +1100
  • a42f1190e0 Modified weighted random pick function Jesse Viikari 2021-11-18 11:08:29 +0200