Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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