Update for 2023

This commit is contained in:
Charlotte Van Petegem 2023-11-30 21:41:08 +01:00
parent bb8d33032f
commit 124a864e52
No known key found for this signature in database
GPG key ID: 019E764B7184435A
6 changed files with 115 additions and 16 deletions

3
.gitmodules vendored
View file

@ -161,3 +161,6 @@
[submodule "2022/iasoon"]
path = 2022/iasoon
url = https://github.com/iasoon/aoc2022.git
[submodule "2023/chvp"]
path = 2023/chvp
url = https://github.com/chvp/aoc2023.git

55
2022/README.md Normal file
View file

@ -0,0 +1,55 @@
# De Zeus Advent of Code
| Wie? | Waar? (Repository) | Taal? |
|:-----------|:------------------------------------------------:|-------------------:|
| chvp | https://github.com/chvp/aoc2022 | Haskell |
| hvdncamp | https://github.com/hvdncamp/adventofcode-2022 | C |
| mcbloch | https://gitlab.com/mcbloch/aoc2022 | Clojure (Babashka) |
| fbegyn | https://github.com/fbegyn/aoc2022 | Go/Ruby |
| Mraedis | https://github.com/Mraedis/AoC2022 | Ruby |
| silvius | https://github.com/ajuvercr/advent-of-code | Rust |
| robe | https://github.com/SchrodingersCat00/aoc2022.git | Rust |
| niknetniko | https://github.com/niknetniko/AdventOfCode | C |
| jaspervdj | https://github.com/jaspervdj/advent-of-code | Haskell |
| s-minoo | https://github.com/s-minoo/advent-of-code | Rust |
| iasoon | https://github.com/iasoon/aoc2022 | Rust |
* repo clonen:
```sh
git clone git@github.com:ZeusWPI/Advent-of-Code-Aggregator.git
git submodule init 2022 # just the current year
git submodule update
```
* nieuwe persoon toevoegen:
```sh
cd 2022
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
cd 2022
./complete-benchmark
```

20
2023/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
2023/chvp Submodule

@ -0,0 +1 @@
Subproject commit 68d2ef220a426d5c315049a6d834f5f27cd06591

30
2023/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

@ -1,32 +1,22 @@
# De Zeus Advent of Code
| Wie? | Waar? (Repository) | Taal? |
|:-----------|:------------------------------------------------:|-------------------:|
| chvp | https://github.com/chvp/aoc2022 | Haskell |
| hvdncamp | https://github.com/hvdncamp/adventofcode-2022 | C |
| mcbloch | https://gitlab.com/mcbloch/aoc2022 | Clojure (Babashka) |
| fbegyn | https://github.com/fbegyn/aoc2022 | Go/Ruby |
| Mraedis | https://github.com/Mraedis/AoC2022 | Ruby |
| silvius | https://github.com/ajuvercr/advent-of-code | Rust |
| robe | https://github.com/SchrodingersCat00/aoc2022.git | Rust |
| niknetniko | https://github.com/niknetniko/AdventOfCode | C |
| jaspervdj | https://github.com/jaspervdj/advent-of-code | Haskell |
| s-minoo | https://github.com/s-minoo/advent-of-code | Rust |
| iasoon | https://github.com/iasoon/aoc2022 | Rust |
| Wie? | Waar? (Repository) | Taal? |
|:-----|:-------------------------------:|------:|
| chvp | https://github.com/chvp/aoc2023 | C |
* repo clonen:
```sh
git clone git@github.com:ZeusWPI/Advent-of-Code-Aggregator.git
git submodule init 2022 # just the current year
git submodule init 2023 # just the current year
git submodule update
```
* nieuwe persoon toevoegen:
```sh
cd 2022
cd 2023
git submodule add <link zoals in tabel> <naam zoals in tabel>
git commit -m 'hey guys ik heb een repo toegevoegd'
```
@ -50,6 +40,6 @@
* benchmarks uitvoeren:
```sh
cd 2022
cd 2023
./complete-benchmark
```