https://github.com/joehoel/aoc
All my code for "all" the Advent of Code challenges.
https://github.com/joehoel/aoc
advent-of-code deno typescript
Last synced: about 2 months ago
JSON representation
All my code for "all" the Advent of Code challenges.
- Host: GitHub
- URL: https://github.com/joehoel/aoc
- Owner: Joehoel
- Created: 2021-12-01T15:37:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2025-12-06T15:05:06.000Z (7 months ago)
- Last Synced: 2025-12-08T02:18:49.553Z (7 months ago)
- Topics: advent-of-code, deno, typescript
- Language: TypeScript
- Homepage:
- Size: 733 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code
Hello. This is all my code for "all" the Advent of Code challenges. It is all
written in TypeScript with Deno, because I love that. I tried to do it in Rust
twice but I gave up after 10 minutes on the first day, both times.
I don't know why anyone else would like to run this code. But if you do, and
you're not stupid. Do the following:
1. Clone the repository
2. Install Deno
3. Run the code
Simple as that. I'm not going to tell you how to clone the repository or how to
install Deno.
I am going to tell you how to run the code though, because I'm nice like that.
There is a special task in the `deno.json` file where I made a script that runs
the code for you. You can pass `--test` to run the example input.
```sh
deno task run [--test]
```
I also made a `download` script that downloads the input from the current day
for you. You have to have a session cookie like this in a `.env` file:
```env
AOC_SESSION=joemama
```
Then you can run the script like this:
```sh
deno task download
```
If you are stealing my template. You can generate all the necessary files for a
new day by running:
```sh
deno task g
```
Okay thanks bye <3