Skip to content

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

License

Notifications You must be signed in to change notification settings

amtoine/advent-of-code

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Topics

Resources

License

Stars

Watchers

Forks