Skip to content

hughcoleman/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

advent-of-code

🎄

I'm somewhat competitive.

  • 2019: 282nd overall, with 189 points.
  • 2020: 61st overall, with 984 (902) points.
  • 2021: 66th overall, with 959 points.
  • 2022: 68th overall, with 896 points.

santa

santa is a command-line tool for managing AoC puzzle-solving scripts. It handles downloading and caching inputs, as well as providing each script with appropriate input (so long as each script declares its corresponding puzzle in a docstring.)

To see it in action, try:

$ echo "YOUR_SECRET_TOKEN" > .TOKEN
$ santa run 2015/01

It follows the automation guidelines listed on the r/adventofcode Community Wiki. In particular,

  • Once inputs are downloaded, they are cached locally in the .cache directory.
    • If you suspect your input is corrupted, you can manually request a fresh copy using --invalidate-cached-input. This should almost never be necessary!
  • When interacting with adventofcode.com, santa sets a User-Agent header that links back to this repository.