Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 4 hours 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 (about 3 years ago)
- Default Branch: master
- Last Pushed: 2025-01-27T14:14:26.000Z (11 days ago)
- Last Synced: 2025-01-27T15:28:40.098Z (11 days ago)
- Topics: advent-of-code, deno, typescript
- Language: TypeScript
- Homepage:
- Size: 666 KB
- Stars: 0
- Watchers: 2
- 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 codeSimple 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