blob: 48f39d604b405a6fc8eff3407eabc3c79d97bc94 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
#!/bin/bash
source "vars"
INPUT_URL="https://adventofcode.com/${YEAR}/day/$((10#${DAY}))/input"
mkdir "nim/day${DAY}"
cp "main.nim" "nim/day${DAY}/main.nim"
curl $INPUT_URL --cookie "session=${TOKEN}" > "nim/day${DAY}/input.txt"
cargo new "rust/day${DAY}"
cp "main.rs" "rust/day${DAY}/src/main.rs"
cp "nim/day${DAY}/input.txt" "rust/day${DAY}/src/input.txt"
subl -a "nim/day${DAY}/input.txt"
subl -a "nim/day${DAY}/main.nim"
chromium "https://adventofcode.com/${YEAR}/day/$((10#${DAY}))"
|