A simple script to generate and launch Livebooks for Advent of Code puzzles.
-
Your Advent of Code session token set as a Livebook secret:
AOC_TOKEN
. -
Make sure Livebook is installed with
mix escript.install hex livebook
.
-
Clone the repository and
cd aoc_livebook
-
Run
bin/gen day year
to generate and launch a Livebook for a specific Advent of Code puzzle.Example:
bin/gen 1 2016 bin/gen 1 # Day 1 of the Current Year bin/gen # Today's puzzle, if any.
The generated Livebooks are located at aoc_livebook/$year/aoc_$day.livemd
.