My Advent of Code
To setup AoC
brew install bash httpie gum # zellij (optional)NOTE: use package manager of your choice.
Install mise, then run:
makemake setup year=2025 day=2 lang=rb # If Zellij, make setupz year=2025 day=2 lang=rb
make run year=2025 day=2 lang=rb # If Zellij, make z year=2025 day=2 lang=rbNOTE: 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, py, rb, or js) 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