diff --git a/.gitmodules b/.gitmodules index 188aa93..a2bfe96 100644 --- a/.gitmodules +++ b/.gitmodules @@ -1,66 +1,69 @@ [submodule "Lukas"] - path = Lukas + path = 2020/Lukas url = https://github.com/lvrossem/Advent-of-Code-2020 [submodule "Flynn"] - path = Flynn + path = 2020/Flynn url = https://gitlab.com/mcbloch/aoc2020 [submodule "Rien"] - path = Rien + path = 2020/Rien url = https://github.com/rien/adventofcode2020 [submodule "Robbe"] - path = Robbe + path = 2020/Robbe url = https://github.com/Robbe7730/adventofcode2020 [submodule "Francis"] - path = Francis + path = 2020/Francis url = https://github.com/fbegyn/aoc2020 [submodule "Timo"] - path = Timo + path = 2020/Timo url = https://github.com/timodw/AoC20 [submodule "Kobe"] - path = Kobe + path = 2020/Kobe url = https://github.com/SchrodingersCat00/aoc2020 [submodule "Jasper"] - path = Jasper + path = 2020/Jasper url = https://github.com/jaspervdj/advent-of-code [submodule "Lorin"] - path = Lorin + path = 2020/Lorin url = https://github.com/werthen/AoC-2020 [submodule "Felix"] - path = Felix + path = 2020/Felix url = https://github.com/ninewise/adventofcode-2020 [submodule "Francis."] - path = Francis. + path = 2020/Francis. url = https://github.com/FKD13/AoC2020 [submodule "Mel"] - path = Mel + path = 2020/Mel url = https://gitlab.com/Melsarion/adventofcode2020 [submodule "Poef"] - path = Poef + path = 2020/Poef url = https://github.com/Iepoev/AoC20 [submodule "JP"] - path = JP + path = 2020/JP url = https://github.com/Jan-PieterBaert/advent-of-code [submodule "Niko"] - path = Niko + path = 2020/Niko url = https://github.com/niknetniko/AdventOfCode [submodule "Silvius"] - path = Silvius + path = 2020/Silvius url = https://github.com/ajuvercr/aoc_2020 [submodule "Bram"] - path = Bram + path = 2020/Bram url = https://github.com/bravdwal/aoc2020 [submodule "redfast00"] - path = redfast00 + path = 2020/redfast00 url = https://github.com/redfast00/aoc2020 [submodule "Charlotte"] - path = Charlotte + path = 2020/Charlotte url = https://github.com/charvp/aoc2020 [submodule "Arthur_Swamp"] - path = Arthur_Swamp + path = 2020/Arthur_Swamp url = https://github.com/AWerbrouck/AOC2020 [submodule "Lode"] - path = Lode + path = 2020/Lode url = https://github.com/Bond-009/advent-of-code-2020 [submodule "Mraedis"] - path = Mraedis + path = 2020/Mraedis url = https://github.com/Mraedis/AoC2020 +[submodule "2021/ninewise"] + path = 2021/ninewise + url = https://git.fuyu.moe/ninewise/adventofcode-2021.git diff --git a/Arthur_Swamp b/2020/Arthur_Swamp similarity index 100% rename from Arthur_Swamp rename to 2020/Arthur_Swamp diff --git a/Bram b/2020/Bram similarity index 100% rename from Bram rename to 2020/Bram diff --git a/Charlotte b/2020/Charlotte similarity index 100% rename from Charlotte rename to 2020/Charlotte diff --git a/Felix b/2020/Felix similarity index 100% rename from Felix rename to 2020/Felix diff --git a/Flynn b/2020/Flynn similarity index 100% rename from Flynn rename to 2020/Flynn diff --git a/Francis b/2020/Francis similarity index 100% rename from Francis rename to 2020/Francis diff --git a/Francis. b/2020/Francis. similarity index 100% rename from Francis. rename to 2020/Francis. diff --git a/JP b/2020/JP similarity index 100% rename from JP rename to 2020/JP diff --git a/Jasper b/2020/Jasper similarity index 100% rename from Jasper rename to 2020/Jasper diff --git a/Kobe b/2020/Kobe similarity index 100% rename from Kobe rename to 2020/Kobe diff --git a/Lode b/2020/Lode similarity index 100% rename from Lode rename to 2020/Lode diff --git a/Lorin b/2020/Lorin similarity index 100% rename from Lorin rename to 2020/Lorin diff --git a/Lukas b/2020/Lukas similarity index 100% rename from Lukas rename to 2020/Lukas diff --git a/Mel b/2020/Mel similarity index 100% rename from Mel rename to 2020/Mel diff --git a/Mraedis b/2020/Mraedis similarity index 100% rename from Mraedis rename to 2020/Mraedis diff --git a/Niko b/2020/Niko similarity index 100% rename from Niko rename to 2020/Niko diff --git a/Poef b/2020/Poef similarity index 100% rename from Poef rename to 2020/Poef diff --git a/2020/README.md b/2020/README.md new file mode 100644 index 0000000..8543897 --- /dev/null +++ b/2020/README.md @@ -0,0 +1,61 @@ +# De Zeus Advent of Code + +| Wie? | Waar? (Repository) | Taal? | +| :------------- | :-----------------------------------------------: | ---------: | +| Lukas | https://github.com/lvrossem/Advent-of-Code-2020 | Rust | +| Flynn | https://gitlab.com/mcbloch/aoc2020 | Elixir | +| Rien | https://github.com/rien/adventofcode2020 | Elixir | +| Robbe | https://github.com/Robbe7730/adventofcode2020 | Rust | +| Francis | https://github.com/fbegyn/aoc2020 | Go | +| Timo | https://github.com/timodw/AoC20 | Rust | +| Kobe | https://github.com/SchrodingersCat00/aoc2020 | Haskell | +| Jasper | https://github.com/jaspervdj/advent-of-code | Haskell | +| Lorin | https://github.com/werthen/AoC-2020 | TensorFlow | +| Felix | https://github.com/ninewise/adventofcode-2020 | Shell | +| Francis. | https://github.com/FKD13/AoC2020 | Erlang | +| Mel | https://gitlab.com/Melsarion/adventofcode2020 | Elixir | +| Poef | https://github.com/Iepoev/AoC20 | Elixir | +| Lode | https://github.com/Bond-009/advent-of-code-2020 | C | +| JP | https://github.com/Jan-PieterBaert/advent-of-code | Rust | +| Niko | https://github.com/niknetniko/AdventOfCode | Elixir | +| Silvius | https://github.com/ajuvercr/aoc_2020 | Haskell | +| Bram | https://github.com/bravdwal/aoc2020 | Perl | +| redfast00 | https://github.com/redfast00/aoc2020 | Python | +| Charlotte | https://github.com/charvp/aoc2020 | Nix | +| Arthur/Swomp | https://github.com/AWerbrouck/AOC2020 | Java | +| Mraedis | https://github.com/Mraedis/AoC2020 | Python | + +* repo clonen: + + ```sh + git clone --recursive git@github.com:ZeusWPI/Advent-of-Code-Aggregator.git + ``` + +* nieuwe toevoegen: + + ```sh + git submodule add + git commit -m 'hey guys ik heb een repo toegevoegd' + ``` + +* uw lokale kopie updaten: + + ```sh + git pull # duh + git submodule update + ``` + +* van alle submodules de nieuwste versie binnenhalen (zelfs als mensen *force push*en): + + ```sh + git submodule foreach git fetch origin + git submodule foreach git reset --hard origin/HEAD > /dev/null 2>&1 + git add * # oh no + git commit -m 'update submodules' + ``` + +* benchmarks uitvoeren: + + ```sh + git submodule foreach ../benchmark + ``` diff --git a/Rien b/2020/Rien similarity index 100% rename from Rien rename to 2020/Rien diff --git a/Robbe b/2020/Robbe similarity index 100% rename from Robbe rename to 2020/Robbe diff --git a/Silvius b/2020/Silvius similarity index 100% rename from Silvius rename to 2020/Silvius diff --git a/Timo b/2020/Timo similarity index 100% rename from Timo rename to 2020/Timo diff --git a/benchmark b/2020/benchmark similarity index 100% rename from benchmark rename to 2020/benchmark diff --git a/inputs/01-input b/2020/inputs/01-input similarity index 100% rename from inputs/01-input rename to 2020/inputs/01-input diff --git a/inputs/02-input b/2020/inputs/02-input similarity index 100% rename from inputs/02-input rename to 2020/inputs/02-input diff --git a/inputs/03-input b/2020/inputs/03-input similarity index 100% rename from inputs/03-input rename to 2020/inputs/03-input diff --git a/inputs/04-input b/2020/inputs/04-input similarity index 100% rename from inputs/04-input rename to 2020/inputs/04-input diff --git a/inputs/05-input b/2020/inputs/05-input similarity index 100% rename from inputs/05-input rename to 2020/inputs/05-input diff --git a/inputs/06-input b/2020/inputs/06-input similarity index 100% rename from inputs/06-input rename to 2020/inputs/06-input diff --git a/inputs/07-input b/2020/inputs/07-input similarity index 100% rename from inputs/07-input rename to 2020/inputs/07-input diff --git a/inputs/08-input b/2020/inputs/08-input similarity index 100% rename from inputs/08-input rename to 2020/inputs/08-input diff --git a/inputs/09-input b/2020/inputs/09-input similarity index 100% rename from inputs/09-input rename to 2020/inputs/09-input diff --git a/inputs/10-input b/2020/inputs/10-input similarity index 100% rename from inputs/10-input rename to 2020/inputs/10-input diff --git a/inputs/11-input b/2020/inputs/11-input similarity index 100% rename from inputs/11-input rename to 2020/inputs/11-input diff --git a/inputs/12-input b/2020/inputs/12-input similarity index 100% rename from inputs/12-input rename to 2020/inputs/12-input diff --git a/inputs/13-input b/2020/inputs/13-input similarity index 100% rename from inputs/13-input rename to 2020/inputs/13-input diff --git a/redfast00 b/2020/redfast00 similarity index 100% rename from redfast00 rename to 2020/redfast00 diff --git a/2021/benchmark b/2021/benchmark new file mode 100755 index 0000000..83cb4af --- /dev/null +++ b/2021/benchmark @@ -0,0 +1,20 @@ +#!/bin/sh +day="$(printf '%02d' "$1")" +part="$2" +inputfile="../inputs/$day-input" + +[ -x "prepare" ] || exit 0 + +if ! ./prepare "$day" "$part" "$inputfile"; then + echo 'eh ge hebt precies niet alles geïnstalleerd staan' +else + if [ -x "run" ]; then + hyperfine "./run '$day' '$part' '$inputfile'" + fi +fi + +if [ -x "clean" ]; then + ./clean +fi + +true diff --git a/2021/complete-benchmark b/2021/complete-benchmark new file mode 100755 index 0000000..853d9da --- /dev/null +++ b/2021/complete-benchmark @@ -0,0 +1,31 @@ +#!/bin/sh +day="$1" +part="$2" + +day="$(printf '%02d' "$day")" + +inputfile="$PWD/inputs/${day}.txt" + +if ! test -f "$inputfile"; then + echo "no input available" >&2 + exit 1 +fi + +for dir in *; do + if test -d "$dir"; then + cd "$dir" + if test -x ./prepare; then + if ! ./prepare "$day" "$part" >&2; then + echo 'eh ge hebt precies niet alles geïnstalleerd staan' + else + if test -x run; then + hyperfine -n "$dir" "./run '$day' '$part' '$inputfile'" + fi + fi + fi + if test -x ./clean; then + ./clean "$day" "$part" "$inputfile" + fi + cd - > /dev/null 2>&1 + fi +done diff --git a/2021/inputs/00.txt b/2021/inputs/00.txt new file mode 100644 index 0000000..a1e3fbb --- /dev/null +++ b/2021/inputs/00.txt @@ -0,0 +1,6 @@ +5 +10 +20 +5 +123 +0 diff --git a/2021/ninewise b/2021/ninewise new file mode 160000 index 0000000..f4fa590 --- /dev/null +++ b/2021/ninewise @@ -0,0 +1 @@ +Subproject commit f4fa590833f3b5fccef401d9970e45014cbe53b8 diff --git a/README.md b/README.md index 8543897..5f227f8 100644 --- a/README.md +++ b/README.md @@ -2,28 +2,7 @@ | Wie? | Waar? (Repository) | Taal? | | :------------- | :-----------------------------------------------: | ---------: | -| Lukas | https://github.com/lvrossem/Advent-of-Code-2020 | Rust | -| Flynn | https://gitlab.com/mcbloch/aoc2020 | Elixir | -| Rien | https://github.com/rien/adventofcode2020 | Elixir | -| Robbe | https://github.com/Robbe7730/adventofcode2020 | Rust | -| Francis | https://github.com/fbegyn/aoc2020 | Go | -| Timo | https://github.com/timodw/AoC20 | Rust | -| Kobe | https://github.com/SchrodingersCat00/aoc2020 | Haskell | -| Jasper | https://github.com/jaspervdj/advent-of-code | Haskell | -| Lorin | https://github.com/werthen/AoC-2020 | TensorFlow | -| Felix | https://github.com/ninewise/adventofcode-2020 | Shell | -| Francis. | https://github.com/FKD13/AoC2020 | Erlang | -| Mel | https://gitlab.com/Melsarion/adventofcode2020 | Elixir | -| Poef | https://github.com/Iepoev/AoC20 | Elixir | -| Lode | https://github.com/Bond-009/advent-of-code-2020 | C | -| JP | https://github.com/Jan-PieterBaert/advent-of-code | Rust | -| Niko | https://github.com/niknetniko/AdventOfCode | Elixir | -| Silvius | https://github.com/ajuvercr/aoc_2020 | Haskell | -| Bram | https://github.com/bravdwal/aoc2020 | Perl | -| redfast00 | https://github.com/redfast00/aoc2020 | Python | -| Charlotte | https://github.com/charvp/aoc2020 | Nix | -| Arthur/Swomp | https://github.com/AWerbrouck/AOC2020 | Java | -| Mraedis | https://github.com/Mraedis/AoC2020 | Python | +| ninewise | https://git.fuyu.moe/ninewise/adventofcode-2021 | ? | * repo clonen: @@ -31,7 +10,7 @@ git clone --recursive git@github.com:ZeusWPI/Advent-of-Code-Aggregator.git ``` -* nieuwe toevoegen: +* nieuwe persoon toevoegen: ```sh git submodule add @@ -57,5 +36,6 @@ * benchmarks uitvoeren: ```sh - git submodule foreach ../benchmark + cd "2021" + ./complete-benchmark ```