update readme
This commit is contained in:
parent
2ad7b1e28c
commit
d4de5e7061
@ -2,6 +2,9 @@
|
|||||||
|
|
||||||
DAY := `date +%d`
|
DAY := `date +%d`
|
||||||
|
|
||||||
|
setup:
|
||||||
|
python3 -m venv venv
|
||||||
|
|
||||||
new:
|
new:
|
||||||
cp python/_sample.py python/day{{ DAY }}.py
|
cp python/_sample.py python/day{{ DAY }}.py
|
||||||
touch full/day{{ DAY }}.txt
|
touch full/day{{ DAY }}.txt
|
||||||
@ -13,10 +16,8 @@ full:
|
|||||||
sample:
|
sample:
|
||||||
/usr/bin/env python3 python/day{{ DAY }}.py --sample
|
/usr/bin/env python3 python/day{{ DAY }}.py --sample
|
||||||
|
|
||||||
ws:
|
wsample:
|
||||||
watch /usr/bin/env python3 python/day{{ DAY }}.py --sample
|
watch /usr/bin/env python3 python/day{{ DAY }}.py --sample
|
||||||
|
|
||||||
watch:
|
wfull:
|
||||||
watch /usr/bin/env python3 python/day{{ DAY }}.py
|
watch /usr/bin/env python3 python/day{{ DAY }}.py
|
||||||
|
|
||||||
|
|
||||||
|
43
README.md
43
README.md
@ -1,5 +1,33 @@
|
|||||||
Advent of Code
|
Advent of Code
|
||||||
|
|
||||||
|
# Running
|
||||||
|
|
||||||
|
## Setup
|
||||||
|
|
||||||
|
- `just setup`
|
||||||
|
|
||||||
|
## Create Day
|
||||||
|
|
||||||
|
- `just new`
|
||||||
|
|
||||||
|
## Running
|
||||||
|
|
||||||
|
Run the sample:
|
||||||
|
|
||||||
|
- `just sample`
|
||||||
|
|
||||||
|
Run Full:
|
||||||
|
|
||||||
|
- `just full`
|
||||||
|
|
||||||
|
Watching:
|
||||||
|
|
||||||
|
- `just wfull`
|
||||||
|
- `just wsample`
|
||||||
|
|
||||||
|
---
|
||||||
|
|
||||||
|
# Pre 2023
|
||||||
|
|
||||||
to run any day:
|
to run any day:
|
||||||
|
|
||||||
@ -9,18 +37,3 @@ to run any day:
|
|||||||
- cd to proper dir `cd 2022/python/`
|
- cd to proper dir `cd 2022/python/`
|
||||||
- run the day `python3 day01.py`
|
- run the day `python3 day01.py`
|
||||||
- to run sample code pass `--sample` as the argument. `python day01.py --sample`, (nothing special just checks sys.argv[-1])
|
- to run sample code pass `--sample` as the argument. `python day01.py --sample`, (nothing special just checks sys.argv[-1])
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
python day01.py --sample
|
|
||||||
python day02.py --sample
|
|
||||||
python day03.py --sample
|
|
||||||
python day04.py --sample
|
|
||||||
python day05.py --sample
|
|
||||||
python day06.py --sample
|
|
||||||
python day07.py --sample
|
|
||||||
python day08.py --sample
|
|
||||||
python day09.py --sample
|
|
||||||
python day10.py --sample
|
|
||||||
|
Loading…
Reference in New Issue
Block a user