https://github.com/zsakowitz/aoc
My Advent of Code solves and utility library. Tests are run on every commit to ensure the validity of a solve.
https://github.com/zsakowitz/aoc
Last synced: about 1 year ago
JSON representation
My Advent of Code solves and utility library. Tests are run on every commit to ensure the validity of a solve.
- Host: GitHub
- URL: https://github.com/zsakowitz/aoc
- Owner: zsakowitz
- Created: 2024-12-10T08:13:17.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-12-18T18:34:26.000Z (over 1 year ago)
- Last Synced: 2025-05-05T06:15:16.611Z (about 1 year ago)
- Language: JavaScript
- Homepage:
- Size: 336 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[util.ts](util.ts) is the utility library. It is built into [util.js](util.js), and has type declarations available in [util.d.ts](util.d.ts).
[index.js](index.js) runs each file in parallel. The list of files it runs are in [times.json](times.json), which also includes the last time in milliseconds it took to run the test cases.
**Do not use an individual day's test case as a standard for comparison unless
it is in the `times.json` file.**
The `.check()` function from `util.ts` ensures a result is correct. The answers
are hardcoded to my inputs, and will likely fail on your inputs, as inputs may
be different for each person.
My inputs are not saved here. Run [load.js](load.js) with the `ILOWI_AOC_COOKIE`
environment variable set to `session=...` (your `Cookie` header as sent to your
browser) to download all inputs. Inputs are downloaded asynchronously on
Node.JS, synchronously in the browser, and are cached in both.