My solutions for Advent of Code.
Repo designed to minimize time fucking around and get straight to code. See it in action:
Code_C0oogG5KYu.mp4
Ensure you have node and npm, have ran npm i
, and have set up your AOC token
You can specify various start modes
# asks user what day they want to launch
npm start # equivalent to npm start ask
# instantly opens today's AOC
npm start today
# waits up to 15 minutes for tomorrow's AOC to release, starting the instant it's available
# behaves like npm start today if tomorrow's AOC won't come out within 15 minutes
npm start race
If you aren't using VSCode or WSL, change the code in src/start.ts
to fit how you launch your browser/editor
- go to any AOC input in your browser, such as 2022/day/1/input
- ctrl+shift+i to open devtools
- go to the "Network" tab of the devtools and refresh the page
- click the request that looks like "200 GET INPUT"
- click the "Cookies" tab of the request view, and copy the value of session
Once you have your token, create .env
with your token, using .env.example
for help with formatting.