Skip to content

alankritjoshi/advent-of-code

Repository files navigation

My Advent of Code

Requirements

To setup AoC

brew install bash httpie gum # zellij (optional)

NOTE: use package manager of your choice.

Languages

Install mise, then run:

make

Usage

TL;DR

make 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=rb

NOTE: 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

Setup cookie, input, and template.

make setup

Setup using Zellij

Setup and then open corresponding setup in Zellij.

make setupz

Set Cookie

make cookie

Download Input

Download the input to year/day/txt.

make input

Copy Template

Copy the template for lang (go, py, rb, or js) to year/day/main.lang.

make template

Run

make run

Run with Hot Reload

make hot

Edit & Run using Zellij

If using Zellij, edit and run the code with one of the layouts corresponding to the lang.

make z

About

My Advent of Code

Resources

License

Stars

Watchers

Forks