This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function! RunTests(filename) | |
" Write the file and run tests for the given filename | |
:w | |
if match(a:filename, '\.feature$') != -1 | |
:silent !echo;echo;echo;echo;echo;echo;echo;echo;echo;echo | |
exec ":!bundle exec cucumber " . a:filename | |
elseif match(a:filename, '\.coffee$') != -1 | |
:silent !echo;echo;echo;echo;echo;echo;echo;echo;echo;echo | |
exec "!jasmine-headless-webkit " . a.filename | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
empty-datomic-mem-db-setup | |
============================== | |
WARNING: Final GC required 5.030329259746849 % of runtime | |
Evaluation count : 322200 in 60 samples of 5370 calls. | |
Execution time mean : 204.316059 µs | |
Execution time std-deviation : 23.252812 µs | |
Execution time lower quantile : 185.144721 µs ( 2.5%) | |
Execution time upper quantile : 267.418129 µs (97.5%) | |
Overhead used : 1.833968 ns |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(deftype Failure [f]) | |
(defn unwrap-fail [^Failure fail] | |
((.f fail))) | |
(defn fail? [potential-fail] | |
(isa? (class potential-fail) Failure)) | |
;;TODO: extract into a new namespace, maybe an OS project? | |
(defmacro err->> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def parse_table(raw) | |
raw.lines.map do |line| | |
parts = line.split(':') | |
key = parts.first.gsub(/^\$/, '') | |
values = parts.last.split(',').map(&:strip).map {|x| x.split("\t").map(&:strip) }.flatten | |
if values.count == 1 | |
values = values.first | |
end | |
[key, values] | |
end.to_h |
OlderNewer