This project has a SmartCell for fetching Advent of Code puzzles and solve them in a Livebook
On the Livebook dependencies,
Mix.install([
{:smaoc, git: "https://github.com/nettinho/smaoc"}
])
First you need to set up the livebook secret AOC_SESSION
with the session value found in the browser local storage when login on adventofcode.com.
Then select the SmartCell, choose the date and fetch the puzzle.
You can fill in the example textarea copying and pasting from the problem description.
To avoid duplication of modules on the same notebook you can update the module name of the variable solution_module
on the generated editor template
Implement the &solution_module.solve/2
functions and then choose which part and with which inputs you want to run.
If you return the answer, your may submit it directly from the livebook.
In this project there is also a template we all the SmartCells for the year created