Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/warningimhack3r/advent-of-code
My attempts on adventofcode.com
https://github.com/warningimhack3r/advent-of-code
advent-of-code advent-of-code-2022 advent-of-code-2023 golang typescript
Last synced: 23 days ago
JSON representation
My attempts on adventofcode.com
- Host: GitHub
- URL: https://github.com/warningimhack3r/advent-of-code
- Owner: WarningImHack3r
- Created: 2022-12-12T21:20:42.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T02:38:26.000Z (2 months ago)
- Last Synced: 2024-10-24T19:18:45.194Z (2 months ago)
- Topics: advent-of-code, advent-of-code-2022, advent-of-code-2023, golang, typescript
- Language: Go
- Homepage: https://adventofcode.com
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code
Code of my attempts on [adventofcode.com](https://adventofcode.com)
## Languages
- [2022](2022): TypeScript
- [2023](2023): Go
- [2024](2024): Kotlin## Code structure and inputs
- Each year is in its respective folder
- Run the `inputs_downloader.py` script to automatically download your current's year puzzle inputs
- **The script requires your `session` token (available from the website's cookies storage), stored as `SESSION_TOKEN` in a `.env` file at the project's root**
- Run `python3 -m pip install -r requirements.txt` before first execution
- It only downloads *available* inputs (won't try to download a still locked puzzle input) if the current month is December, else it's going to ask you the year you want
- Also, it won't re-download an already existing input file
- Inputs will be placed under `[year]/inputs/input[day].txt`## Tips for TypeScript years
- Command to run any `day[day].ts` code: `pnpm start -- /path/to/day[day].ts`
- Use the alternative `pnpm run watch [...]` command to rerun the file automatically after each change