https://github.com/pentamassiv/adventofcode
https://github.com/pentamassiv/adventofcode
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/pentamassiv/adventofcode
- Owner: pentamassiv
- Created: 2022-12-03T02:31:47.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-05-17T12:15:18.000Z (over 1 year ago)
- Last Synced: 2025-02-01T12:29:13.924Z (11 months ago)
- Language: Rust
- Size: 298 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: ReadMe.md
Awesome Lists containing this project
README
# Advent of code solutions
These are my AoC solutions. I write all of them in Rust.
## Workflow
Paste the [session cookie](#get-the-adventofcodecom-cookie) in a file called `secret_session_cookie` in the root of the repo.
Get the input
```
./helper.sh input 22 1
```
Run the code
```
cargo run -p aoc221
```
Submit the answer
```
./helper.sh submit 22 1 1 answer
```
## Get the adventofcode.com cookie
Login on the [website](https://adventofcode.com/). Then you right-click and select "Inspect". Switch to the "Storage" tab and copy the value of the "session" cookie. Keep that value secret, otherwise others can login as you. Paste it in the file called `secret_session_cookie` in the root of the repo. The content of the file has to be in this format
```
Set-Cookie: session=43280943kjl32849wfjw89342mfw7432j; Domain=adventofcode.com
```