Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mackenziestarr/advent-of-code
advent of code exercises
https://github.com/mackenziestarr/advent-of-code
advent-of-code-2018 advent-of-code-2019 advent-of-code-2020 advent-of-code-2021 cpp ocaml rust
Last synced: about 1 month ago
JSON representation
advent of code exercises
- Host: GitHub
- URL: https://github.com/mackenziestarr/advent-of-code
- Owner: mackenziestarr
- Created: 2018-12-01T17:09:03.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-12-07T14:06:07.000Z (about 1 year ago)
- Last Synced: 2024-10-16T05:42:26.949Z (3 months ago)
- Topics: advent-of-code-2018, advent-of-code-2019, advent-of-code-2020, advent-of-code-2021, cpp, ocaml, rust
- Language: C++
- Homepage:
- Size: 216 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Advent of Code
## 2021
### language: Rust
```shell session
cd 2021
cargo run day-XX # e.g. day-01
```## 2020
### language: C++20
```shell session
cd 2020
# run all tests
bazelisk test //...
# run a single day
bazelisk run //src:day-01
```## 2019
### language: C++
```shell session
cd 2019
wget -O third_party/catch.hpp https://github.com/catchorg/Catch2/releases/download/v2.11.0/catch.hpp
make day_
make day__test
```## 2018
### language: OCaml
#### setup for osx
```shell session
brew install ocaml
brew install opam
opam init
opam install ocamlbuild
# add packages installed via opam to PATH
echo export PATH="\$PATH:$HOME/.opam/default/bin" >> ~/.bashrc
```#### compiling an exercise
```shell session
# assuming cwd contains some_file.ml
ocamlbuild some_file.native
./some_file.native
```