Skip to content

Latest commit

 

History

History
56 lines (46 loc) · 3.71 KB

README.md

File metadata and controls

56 lines (46 loc) · 3.71 KB

advent-of-code

A collection of solutions for the advent of code event each year from 2015.

Disclaimer

This repo contains my personal solutions to the challenges in the "Advent of Code" events. You might get spoiled. You are warned!

Otherwise, enjoy my solutions 😉

The list of events

year OCaml Nushell Oberon
2023 here
2022 here
2021 here
2020
2019
2018
2017
2016
2015

Some language specific instructions

Get the input

the input for the challenges is different for each user and thus requires a session cookie.

get the cookie

please follow the steps in wimglenn/advent-of-code-wim#1 to get your personal session cookie 👍

store the cookie

according to this sub reddit, one should also include their email in the metadata of the GET requests 👌

please store your information in a NUON file with the following format:

{
    cookie: "xxxxxxxxxxxxxxxxxxxxxxxxxxxx"
    mail: "[email protected]"
}

i also recommend encrypting this sensitive file with

gpg --symmetric --armor --cipher-algo <algo> <file>

to have it available as a .asc file.

fetch the data

with Nushell,

use toolkit.nu
toolkit aoc get-data --help