To compile with Homebrew-installed LLVM:
PATH=/usr/local/opt/llvm/bin:$PATH crystal build crystal-tags.cr
To compile with Homebrew-installed LLVM:
PATH=/usr/local/opt/llvm/bin:$PATH crystal build crystal-tags.cr
cribbed from http://pastebin.com/xgzeAmBn
Templates to remind you of the options and formatting for the different types of objects you might want to document using YARD.
| arr = [[{:name=>"one", :enabled=>true}, | |
| {:name=>"two", :enabled=>false}], | |
| [{:name=>"one", :enabled=>true}, | |
| {:name=>"two", :enabled=>true}] | |
| ] | |
| a = arr.flatten.inject(Hash.new(true)) do |result, element| | |
| result[element[:name]] &&= element[:enabled] | |
| result |
| # note that this is gross | |
| findPos = (obj) -> | |
| values = while (obj = obj.offsetParent) | |
| [obj.offsetLeft, obj.offsetTop] | |
| _.reduce(values, (sums, pair) -> | |
| left: sums.left + pair[0] | |
| right: sums.right + pair[1] | |
| left: 0, top: 0) |