commit a3e86e69c872089ff2d4d44e1ebf1c9149dffd0a Author: David Ashby Date: Thu Dec 1 07:09:27 2022 -0500 init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..89ac89c --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*/inputs +.cookie diff --git a/new.sh b/new.sh new file mode 100644 index 0000000..4efbb32 --- /dev/null +++ b/new.sh @@ -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 diff --git a/readme.md b/readme.md new file mode 100644 index 0000000..fdd429b --- /dev/null +++ b/readme.md @@ -0,0 +1,5 @@ +# AOC 2022 + +In Rust! Hopefully. 🦀 + +