From 63e10b1a5e5b88eaf7a55584943d995938f2e666 Mon Sep 17 00:00:00 2001 From: Evan Burkey Date: Wed, 29 Nov 2023 13:51:48 -0800 Subject: [PATCH] update libraries, input script --- .idea/editor.xml | 91 ++++++++++++++++++++++++++++++++++++++++++++++++ get_input.sh | 8 +++-- lib/libflint | 2 +- lib/uthash | 2 +- 4 files changed, 99 insertions(+), 4 deletions(-) create mode 100644 .idea/editor.xml diff --git a/.idea/editor.xml b/.idea/editor.xml new file mode 100644 index 0000000..a4fac68 --- /dev/null +++ b/.idea/editor.xml @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file diff --git a/get_input.sh b/get_input.sh index 6605514..bf5cc83 100755 --- a/get_input.sh +++ b/get_input.sh @@ -1,7 +1,11 @@ #!/usr/bin/env zsh +get(){ + curl -s --cookie "session=$1" "$2" | perl -pe 'chomp if eof' > "$3" +} + rm -rf input -for year in {2015..2022}; do +for year in {2015..2023}; do mkdir -p input/"$year" for day in {1..25}; do if [[ day -lt 10 ]]; then @@ -10,7 +14,7 @@ for year in {2015..2022}; do d="$day" fi url="https://adventofcode.com/$year/day/$day/input" - curl --cookie "session=$1" $url | perl -pe 'chomp if eof' > "input/$year/$d" + get "$1" "$url" "input/$year/$d" & done touch "input/$year/test" done diff --git a/lib/libflint b/lib/libflint index 25a8c50..85536a3 160000 --- a/lib/libflint +++ b/lib/libflint @@ -1 +1 @@ -Subproject commit 25a8c5004d7c213dc5a098625ab15a0435a90105 +Subproject commit 85536a351dd16df24835283c139aacf91961ab8a diff --git a/lib/uthash b/lib/uthash index 095425f..ca98384 160000 --- a/lib/uthash +++ b/lib/uthash @@ -1 +1 @@ -Subproject commit 095425f7fe01904b28a8a95c74a231470016f7ac +Subproject commit ca98384ce7f30beb216f9a0bc88a3b4340ead729