Skip to content

klaustopher/advent-of-code

Repository files navigation

Advent of Code

This is my code, for Advent of Code. Every folder represents one year. When I tried multiple languages, there are subfolders, but I mostly write stuff in Ruby as it is a really nice language for this. Might not be the most performant, but it usually works.

Some solutions might be solved on Stream, either on Twitch or YouTube. But we'll see

Party Starter

To get started quickly I have added the Party Starter CLI tool. It generates code files based on templates and text input files for the input data.

To build the CLI tool, you have to install Crystal.

party-starter/build

This will put the get-started binary in your base folder.

./get-started

Will generate a file in $YEAR/$LANGUAGE/$DAY.$EXT based on the template of your language. If you want to add more languages, you cann add them in party-starter/languages and either change the default or use --lang LANG to use the template for your language.

The templates can be changed and don't need a recompile

HAPPY HACKING, from 🎅 Santa klaustopher

Encrypted inputs

As the author of AoC wishes that we don't publish the input files, those files are encrypted here using git-crypt to encrypt all the files. So, please use your own inputs.

If you are me and want to use the repo on another machine, the key is in your 1Password. After cloning the repository you can unlock it with git-crypt unlock aoc.key