Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| ;; Big thanks to Christophe Grand - https://groups.google.com/d/msg/clojure/L1GiqSyQVVg/m-WJogaqU8sJ | |
| (defn scaffold [iface] | |
| (doseq [[iface methods] (->> iface .getMethods | |
| (map #(vector (.getName (.getDeclaringClass %)) | |
| (symbol (.getName %)) | |
| (count (.getParameterTypes %)))) | |
| (group-by first))] | |
| (println (str " " iface)) | |
| (doseq [[_ name argcount] methods] | |
| (println |
| (ns miner.roman | |
| (:require [clojure.test :refer :all])) | |
| ;; inspired by | |
| ;; http://www.jayway.com/2012/08/04/a-decimal-to-roman-numeral-converter-in-just-a-few-lines/ | |
| (def roman-map {1000 "M" 900 "CM" 500 "D" 400 "CD" | |
| 100 "C" 90 "XC" 50 "L" 40 "XL" | |
| 10 "X" 9 "IX" 5 "V" 4 "IV" 1 "I"}) |
Get Homebrew installed on your mac if you don't already have it
Install highlight. "brew install highlight". (This brings down Lua and Boost as well)
| # First install tmux | |
| brew install tmux | |
| # For mouse support (for switching panes and windows) | |
| # Only needed if you are using Terminal.app (iTerm has mouse support) | |
| Install http://www.culater.net/software/SIMBL/SIMBL.php | |
| Then install https://bitheap.org/mouseterm/ | |
| # More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ |