let us get started 2021

This commit is contained in:
Felix Van der Jeugt 2021-11-29 11:42:45 +01:00
parent 5f41af2009
commit 5bc2c3f334
No known key found for this signature in database
GPG key ID: 58B209295023754D
43 changed files with 148 additions and 46 deletions

47
.gitmodules vendored
View file

@ -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

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

View file

61
2020/README.md Normal file
View file

@ -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 <link zoals in tabel> <naam zoals in tabel>
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 <day> <part>
```

View file

View file

View file

20
2021/benchmark Executable file
View file

@ -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

31
2021/complete-benchmark Executable file
View file

@ -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

6
2021/inputs/00.txt Normal file
View file

@ -0,0 +1,6 @@
5
10
20
5
123
0

1
2021/ninewise Submodule

@ -0,0 +1 @@
Subproject commit f4fa590833f3b5fccef401d9970e45014cbe53b8

View file

@ -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 <link zoals in tabel> <naam zoals in tabel>
@ -57,5 +36,6 @@
* benchmarks uitvoeren:
```sh
git submodule foreach ../benchmark <day> <part>
cd "2021"
./complete-benchmark
```