My solutions to 2018's advent of code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

entrypoint.sh 207B

12345678910
  1. #!/bin/bash
  2. cd /code
  3. if [ -f "day$1.nim" ]; then
  4. if [ ! -f "day$1" -o "day$1.nim" -nt "day$1" ]; then
  5. HOME=/tmp nim c --opt:speed -d:release day$1.nim >/dev/null 2>&1
  6. fi
  7. time ./day$1
  8. fi