From e91d3c106c41b333ddce564a79e0cb9de470d9dc Mon Sep 17 00:00:00 2001 From: aaron Date: Fri, 1 Dec 2023 18:07:22 +0100 Subject: [PATCH] initial commit --- README.md | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..a3872ee --- /dev/null +++ b/README.md @@ -0,0 +1,29 @@ +# advent of code 2023 + +Solutions for the advent of code 2023 + +## how to get input data + +- [python aocd library](https://pypi.org/project/advent-of-code-data/) + - Get the puzzle for day two: `puzzle = Puzzle(year=2023, day=1)` + - Submit a solution for day two part a: `submit(answer, part='a', day=1, year=2022)` + +## how to add a session token + +- After a successful login extract your session token from your browser +- Create a `.env` file and make sure to export the environment variable below +- The lib will outomatically work if the environment variable is present +- `Pipenv` automatically loads `.env` files + +```bash +$ cat .env +export AOC_SESSION="53616c..." +``` + +## how to get a pipenv shell + +```bash +$ pipenv install +$ pipenv shell +``` +