My Advent of Code
NOTE: install instructions are for macOS using Homebrew. Use your package manager of choice.
Talking with AoC
brew install bash httpie gumbrew install go python pyenv poetryGo 1.21+
go mod downloadPython 3.12+
pyenv install
pip install poetry
poetry install[OPTIONAL] Zellij
brew install zellijNOTE: year, day, lang & txt are optional. If not set, the year=<current>, day=1, lang=go and txt=input.txt are used. e.g.,
make run year=2023 day=2 lang=py txt=sample.txt
Setup cookie, input, and template.
make setupSetup and then open corresponding setup in Zellij.
make setupzmake cookieDownload the input to year/day/txt.
make inputCopy the template for lang (go or py) to year/day/main.lang.
make templatemake runmake hotIf using Zellij, edit and run the code with one of the layouts corresponding to the lang.
make z