This commit is contained in:
David 2022-12-01 07:09:27 -05:00
commit a3e86e69c8
3 changed files with 22 additions and 0 deletions

2
.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
*/inputs
.cookie

15
new.sh Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
__year=2022
if [ "${1}" != "" ]; then
padded=$(printf "%02g" ${1})
mkdir -p ${padded}/inputs
touch ${padded}/inputs/testinput
if [ ! -f "${padded}/inputs/input" ]; then
curl -s -H "Cookie: session=`cat .cookie`" https://adventofcode.com/${__year}/day/${1##0}/input > "${padded}/inputs/input"
fi
if [ ! -f "${padded}/main.go" ]; then
cp -n main.go.tmpl ${padded}/main.go
fi
fi

5
readme.md Normal file
View File

@ -0,0 +1,5 @@
# AOC 2022
In Rust! Hopefully. 🦀
<https://adventofcode.com/2022/>