Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sitek94/advent-of-code
My Advent of Code solutions 🎄
https://github.com/sitek94/advent-of-code
advent-of-code bun typescript
Last synced: 17 days ago
JSON representation
My Advent of Code solutions 🎄
- Host: GitHub
- URL: https://github.com/sitek94/advent-of-code
- Owner: sitek94
- Created: 2021-12-04T18:46:39.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-12-15T19:41:34.000Z (19 days ago)
- Last Synced: 2024-12-15T20:29:56.989Z (19 days ago)
- Topics: advent-of-code, bun, typescript
- Language: TypeScript
- Homepage: https://sitek94.github.io/advent-of-code/
- Size: 1.51 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code
My [Advent of Code](https://adventofcode.com) solutions 🎄
## Scripts
Generate challenge files:
```shell
bun g [day] [year]# Generate today's challenge files
bun g# Generate day 12 of this year's challenge files
bun g 12# Generate day 8 of 2019's challenge files
bun g 8 2019
```Run challenge:
```shell
bun [day] [year]# Run part 1 or 2 of today's challenge
bun 1
bun 2# Run part 1 of day 12 of this year
bun 1 12# Run part 2 of day 8 of 2019
bun 2 8 2019
```Use flags:
```shell
# No flags (default) - uses only test input
bun 1# f — final - uses only final input
bun 1f# a — all - uses both test and final input
bun 1a
```Run tests for some utility functions:
```shell
bun test
```## Even shorter scripts?
Set alias for Bun in your shell config file (e.g. `.bashrc` or `.zshrc`):
```shell
alias b="bun"
```## Notes
- 2023: 9 — Least Common Multiple (LCM) + Greatest Common Divisor (GCD)
- 2023: 10 — Flood Fill + BFS
- 2023: 11 — Manhattan Distance