Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ooloth/advent-of-code
Advent of Code solutions in Python, Rust and TypeScript. 🎄
https://github.com/ooloth/advent-of-code
advent-of-code
Last synced: 9 days ago
JSON representation
Advent of Code solutions in Python, Rust and TypeScript. 🎄
- Host: GitHub
- URL: https://github.com/ooloth/advent-of-code
- Owner: ooloth
- Created: 2024-05-30T12:10:15.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T02:33:36.000Z (3 months ago)
- Last Synced: 2024-10-24T12:27:52.381Z (3 months ago)
- Topics: advent-of-code
- Language: Python
- Homepage:
- Size: 213 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 🎄 Advent of Code
Solutions for [Advent of Code](https://adventofcode.com/) puzzles in languages I enjoy.
## Environment variables
Update the `AOC_LANGUAGE` and `AOC_YEAR` environment variables in `bin/env` to match your preferences. They determine which puzzles to download and which solution files to run and submit.
## Commands
```bash
$ bin/new # start a new puzzle in the active year
$ bin/run # run a puzzle solution in the active year
$ bin/submit # submit a puzzle answer in the active year
```For example:
```bash
$ bin/new 1a # download the 2015, day 1, part 1 puzzle and its input and generate solution files
$ bin/run 25b # output my 2023, day 25, part 2 answer
$ bin/submit 25b # submit my 2023, day 25, part 2 answer
```## Advent of Code session cookie
To download your input, you need to include your AOC `session` cookie with each API request. You can find your cookie by going to [adventofcode.com](https://adventofcode.com/) and opening your browser's developer tools.
Find the cookie named "session" and copy its value into a `.aoc-session-cookie` file at the root of this project (it won't be tracked).
When the value eventually expires, repeat these steps.