diff options
author | JJ | 2023-12-01 07:31:34 +0000 |
---|---|---|
committer | JJ | 2023-12-01 07:31:34 +0000 |
commit | 0e8d6bbf3e55e7506e1e92b5292833b1f3907d06 (patch) | |
tree | aa48059a011d58a1efdd46f5b41427851ba7218d /util/get | |
parent | dad35e2ee87ede7f19490b5abaffbf3aaf2f12e6 (diff) |
Diffstat (limited to 'util/get')
-rwxr-xr-x | util/get | 17 |
1 files changed, 6 insertions, 11 deletions
@@ -3,15 +3,10 @@ source "vars" INPUT_URL="https://adventofcode.com/${YEAR}/day/$((10#${DAY}))/input" -mkdir "nim/day${DAY}" -mkdir "nim/day${DAY}/src" -cp "main.nim" "nim/day${DAY}/src/main.nim" -curl $INPUT_URL --cookie "session=${TOKEN}" > "nim/day${DAY}/input.txt" +cp "main.nim" "nim/day${DAY}.nim" +cp "main.ml" "ocaml/day${DAY}.ml" +curl $INPUT_URL --cookie "session=${TOKEN}" > "input/day${DAY}.txt" -cargo new "rust/day${DAY}" -cp "main.rs" "rust/day${DAY}/src/main.rs" -cp "nim/day${DAY}/input.txt" "rust/day${DAY}/input.txt" - -subl -a "nim/day${DAY}/input.txt" -subl -a "nim/day${DAY}/src/main.nim" -# chromium "https://adventofcode.com/${YEAR}/day/$((10#${DAY}))" +subl -a "input/day${DAY}.txt" +subl -a "nim/day${DAY}.nim" +xdg-open "https://adventofcode.com/${YEAR}/day/$((10#${DAY}))" |