advent-of-code/README.md

36 lines
668 B
Markdown
Raw Normal View History

2021-12-01 15:20:51 +01:00
# advent-of-code
2023-12-01 10:51:29 +01:00
2023-12-10 15:40:28 +01:00
## Progress
```
1111111111222222
1234567890123456789012345
2020: ***~.....................
2021: *******~~~...............
2022: ***************~.*..*....
2024-12-01 17:37:48 +01:00
2023: *************************
2023-12-10 15:40:28 +01:00
.: nothing
~: 1 star
*: 2 stars
```
## Shortcut
2023-12-01 10:51:29 +01:00
Add this to your `.bashrc`:
```bash
AOC_PATH=$HOME/path/to/this/repo/
alias aoc="$AOC_PATH/utils/cli.py"
aoc-new () {
2023-12-23 15:30:28 +01:00
# To create a new day
2023-12-01 10:51:29 +01:00
cd $AOC_PATH
PATH="$PATH:$AOC_PATH"
2023-12-23 15:30:28 +01:00
$AOC_PATH/utils/new_day.sh
export PYTHONPATH="$PYTHONPATH:$AOC_PATH"
}
aoc-env () {
# To load the AoC environment
cd $AOC_PATH
PATH="$PATH:$AOC_PATH"
export PYTHONPATH="$PYTHONPATH:$AOC_PATH"
2023-12-01 10:51:29 +01:00
}
```