Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

alexalemi/advent

Repository files navigation

Advent of Code

This repository contains my solutions in several languages to Advent Of Code.

2015 2016 2017 2018 2019 2020 2021 2022 2023

Total

Getting an access token

wimglenn/advent-of-code-wim#1

But basically, open the inspector, goto network and look for the Cookie.

This should be put into a local file .token.

Utilities

There is scripts/fetch.clj which will try to automatically fetch the current input, as which you can invoke as a babashka task:

bb fetch

Since it won't ask for the input either too early or if it has already been grabbed you can use

watch bb fetch

To automatically grab the input while you're reading the problem.

There is also a task to update the badges scripts/badges.clj for the readme with:

bb badges

which was forked from genmeblog.

Inputs

Eric has requested that people don't check-in their inputs into source control, at the same time I really want to have the inputs in there so that I can continue to have a working repository. The compromise I've settled on is to create a password protected zip of the input files, that way they are in the repository but they aren't easily scrapable by outsiders.

For this I've created scripts/zip, scripts/unzip and scripts/clean to aid with the prepations.