···23I return with a new language per day again. Maybe this year I'll remember to keep doing them.
45-1212704-0a296724
6-7## Reflection
8925 languages is... a lot of languages. Started with ones I was familiar with but
···23I return with a new language per day again. Maybe this year I'll remember to keep doing them.
4005## Reflection
6725 languages is... a lot of languages. Started with ones I was familiar with but
···1-set dotenv-load
2-set quiet
3-set shell := ["fish", "-c"]
4-5-year := env_var("YEAR")
6-session := env_var("SESSION")
7-8-[no-cd]
9-default: p1 p2
10-11-all:
12- #!/usr/bin/env fish
13- for file in (ls)
14- if test -d $file
15- echo "Day $file"
16- just run $file
17- end
18- end
19-20-[no-cd]
21-p1 input="input": (do "p1" input)
22-23-[no-cd]
24-p2 input="input": (do "p2" input)
25-26-[no-cd]
27-do part input:
28- #!/usr/bin/env fish
29- if test -f {{part}}.hs
30- ghc {{part}} -O -outputdir.{{part}} > /dev/null
31- and time ./{{part}} < {{input}}
32- else if ls | rg "\.cabal\$" -q
33- cabal build {{part}} > /dev/null
34- and time cabal run {{part}} < {{input}}
35- else if test -f {{part}}.fish
36- time ./{{part}}.fish < {{input}}
37- else if test -f {{part}}.tri
38- time trilogy run ./{{part}}.tri < {{input}}
39- else
40- echo "Current directory does not contain known solution configuration"
41- exit 1
42- end
43-44-run day:
45- cd {{day}} && just
46-47-get day:
48- mkdir -p {{day}}
49- curl https://adventofcode.com/{{year}}/day/{{day}}/input \
50- -X GET \
51- -H "Cookie: session={{session}}" \
52- -o {{day}}/input
···1# Advent of Code 2023
23-It's all [Trilogy](https://github.com/foxfriends/trilogy) this year, assuming
4-the language continues to function for the duration.
5-6-1212704-0a296724
···1# Advent of Code 2023
23+It's all [Trilogy](https://github.com/foxfriends/trilogy) this year.
000