Update for 2022

This commit is contained in:
Charlotte Van Petegem 2022-12-01 17:20:31 +01:00
parent 2a65675a7e
commit d3f79a2e12
No known key found for this signature in database
GPG key ID: 019E764B7184435A
5 changed files with 58 additions and 22 deletions

3
.gitmodules vendored
View file

@ -128,3 +128,6 @@
[submodule "2021/mraedis"] [submodule "2021/mraedis"]
path = 2021/mraedis path = 2021/mraedis
url = https://github.com/Mraedis/AoC2021/ url = https://github.com/Mraedis/AoC2021/
[submodule "2022/chvp"]
path = 2022/chvp
url = https://github.com/chvp/aoc2022.git

20
2022/benchmark Executable file
View file

@ -0,0 +1,20 @@
#!/bin/sh
day="$(printf '%02d' ${1##0})"
part="$2"
inputfile="$PWD/../inputs/${day}.txt"
[ -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

1
2022/chvp Submodule

@ -0,0 +1 @@
Subproject commit 01c09f921a4277d1e4de6211adef47ebee14080e

30
2022/complete-benchmark Executable file
View file

@ -0,0 +1,30 @@
#!/bin/sh
day="$(printf '%02d' ${1##0})"
part="$2"
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
echo "---------------------------------------------------------------------------------- $dir"
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

View file

@ -2,39 +2,21 @@
| Wie? | Waar? (Repository) | Taal? | | Wie? | Waar? (Repository) | Taal? |
| :------------- | :------------------------------------------------: | ---------: | | :------------- | :------------------------------------------------: | ---------: |
| chvp | https://github.com/chvp/aoc2021 | forth | | chvp | https://github.com/chvp/aoc2022 | Haskell |
| ninewise | https://git.fuyu.moe/ninewise/adventofcode-2021 | lua |
| robbe | git@github.com:Robbe7730/adventofcode2021.git | ? |
| Flynn | https://gitlab.com/mcbloch/aoc2021 | Cpp |
| Silvius | https://github.com/ajuvercr/aoc-2021 | C |
| rien | https://github.com/rien/adventofcode2021 | C (no std) |
| iasoon | https://github.com/iasoon/aoc2021 | pony |
| Bond-009 | https://github.com/Bond-009/advent-of-code-2021 | Rust |
| Timpy | https://github.com/timodw/aoc_2021 | Python/Numpy|
| Swambino | https://github.com/AWerbrouck/AoC | py & haskell|
| Francis. | https://github.com/FKD13/AoC2021.git | Prolog |
| Lox | https://github.com/Silox/2021-advent-of-code.git | Ruby |
| beardhatcode | https://github.com/beardhatcode/aoc-2021 | Rust |
| redfast00 | https://github.com/redfast00/aoc2021 | Python |
| Jasper 2.0 | https://github.com/JasperJanin/advent-of-code-2021 | Kotlin |
| jaspervdj | https://github.com/jaspervdj/advent-of-code | Haskell |
| niknetniko | https://github.com/niknetniko/AdventOfCode | Elixir |
| francis | https://github.com/fbegyn/aoc2021 | Go |
| mraedis | https://github.com/Mraedis/AoC2021/ | Python |
* repo clonen: * repo clonen:
```sh ```sh
git clone git@github.com:ZeusWPI/Advent-of-Code-Aggregator.git git clone git@github.com:ZeusWPI/Advent-of-Code-Aggregator.git
git submodule init 2021 # just the current year git submodule init 2022 # just the current year
git submodule update git submodule update
``` ```
* nieuwe persoon toevoegen: * nieuwe persoon toevoegen:
```sh ```sh
cd 2021 cd 2022
git submodule add <link zoals in tabel> <naam zoals in tabel> git submodule add <link zoals in tabel> <naam zoals in tabel>
git commit -m 'hey guys ik heb een repo toegevoegd' git commit -m 'hey guys ik heb een repo toegevoegd'
``` ```
@ -58,6 +40,6 @@
* benchmarks uitvoeren: * benchmarks uitvoeren:
```sh ```sh
cd 2021 cd 2022
./complete-benchmark ./complete-benchmark
``` ```