Skip to content

Latest commit

 

History

History
56 lines (41 loc) · 832 Bytes

README.md

File metadata and controls

56 lines (41 loc) · 832 Bytes

Advent of Code

2021

language: Rust

cd 2021
cargo run day-XX # e.g. day-01

2020

language: C++20

cd 2020
# run all tests
bazelisk test //...
# run a single day
bazelisk run //src:day-01

2019

language: C++

cd 2019
wget -O third_party/catch.hpp https://github.com/catchorg/Catch2/releases/download/v2.11.0/catch.hpp
make day_<day_num>
make day_<day_num>_test

2018

language: OCaml

setup for osx

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

# assuming cwd contains some_file.ml
ocamlbuild some_file.native
./some_file.native