Skip to content

CodeF53/AdventOfCode

Repository files navigation

Advent Of Code Typescript

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

Usage

Ensure you have bun, have ran bun i, and have set up your AOC token

You can specify various start modes

# asks user what day they want to launch
bun start

# instantly opens today's AOC
bun start today

# waits up to 15 minutes for tomorrow's AOC to release, starting the instant it's available
# behaves like bun start today if tomorrow's AOC won't come out within 15 minutes
bun 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

Advent Of Code Token

  1. go to any AOC input in your browser, such as 2022/day/1/input
  2. ctrl+shift+i to open devtools
  3. go to the "Network" tab of the devtools and refresh the page
  4. click the request that looks like "200 GET INPUT"
  5. click the "Cookies" tab of the request view, and copy the value of session

an example of where you should be looking

Once you have your token, create .env with your token, using .env.example for help with formatting.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •