🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

github.com/alankritjoshi/advent-of-code

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/alankritjoshi/advent-of-code

v0.0.0-20241222230727-1dd7be4ed910
Source
Go
Version published
Created
Source

My Advent of Code

Requirements

NOTE: install instructions are for macOS using Homebrew. Use your package manager of choice.

Talking with AoC

brew install bash httpie gum

Languages

brew install go python pyenv poetry

Go 1.21+

go mod download

Python 3.12+

pyenv install
pip install poetry
poetry install

[OPTIONAL] Zellij

brew install zellij

Usage

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
make cookie

Download Input

Download the input to year/day/txt.

make input

Copy Template

Copy the template for lang (go or py) 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

FAQs

Package last updated on 22 Dec 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts