Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/webbertakken/advent-of-code
Me participating in Advent of Code
https://github.com/webbertakken/advent-of-code
advent-of-code aoc
Last synced: 12 days ago
JSON representation
Me participating in Advent of Code
- Host: GitHub
- URL: https://github.com/webbertakken/advent-of-code
- Owner: webbertakken
- Created: 2022-12-01T12:14:58.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-02-23T23:02:32.000Z (9 months ago)
- Last Synced: 2024-05-01T17:28:22.667Z (6 months ago)
- Topics: advent-of-code, aoc
- Language: TypeScript
- Homepage: https://adventofcode.com/
- Size: 202 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code
Me participating in Advent of Code.
To practice, I will try to solve the problems in different languages.
## TypeScript (Bun)
### Prerequisites
- [Bun](https://bun.sh/)
or
- [Node](https://nodejs.org/)### Run
Change directory to the TypeScript folder
```bash
cd 2022/typescript
```Run the solution for a specific day
```bash
bun run day01.ts
```Run the tests
```bash
bun test # note that this runs bun native stuff underneath, as opposed to "bun run test"
# or
yarn test
```Benchmarks
```bash
bun run bench # bun bench fails with "error: Failed to due to error: spawn() is not yet implemented on Windows"
# or
yarn bench
```## Rust
### Prerequisites
- [Rust](https://www.rust-lang.org/tools/install)
### Run
Change directory to the Rust folder
```bash
cd 2022/rust
```Run the solution for a specific day
```bash
cargo run --bin day01
```## Go
### Prerequisites
- [Go](https://golang.org/doc/install)
### Run
Change directory to the Go folder
```bash
cd 2022/go
```Run the solution for a specific day
```bash
go run . day01
```