aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--2015/puzzle-1.sh4
-rw-r--r--2015/puzzle-2.hs4
2 files changed, 8 insertions, 0 deletions
diff --git a/2015/puzzle-1.sh b/2015/puzzle-1.sh
index f134bfe..1a5dbc0 100644
--- a/2015/puzzle-1.sh
+++ b/2015/puzzle-1.sh
@@ -25,3 +25,7 @@ do
done < <(printf "%s" $text | tr -d '\n')
echo "Round 2:" $pos
+
+# Local Variables:
+# compile-command: "sh puzzle-1.sh"
+# End:
diff --git a/2015/puzzle-2.hs b/2015/puzzle-2.hs
index 3fbbd65..ce6adb4 100644
--- a/2015/puzzle-2.hs
+++ b/2015/puzzle-2.hs
@@ -26,3 +26,7 @@ main = do
let ribbon = sum $ map total_ribbon dimensions
putStrLn $ "Round 1: " ++ (show areas)
putStrLn $ "Round 2: " ++ (show ribbon)
+
+-- Local Variables:
+-- compile-command: "ghc puzzle-2.hs && ./puzzle-2"
+-- End: