I hereby claim:
- I am yurrriq on github.
- I am yurrriq (https://keybase.io/yurrriq) on keybase.
- I have a public key ASAFVSrtApJinkGugc0pU6mqtV4jTLiv-l5cCwdtsssraQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/usr/local/bin/fish | |
| # Riak Quickstart: http://docs.basho.com/riak/latest/quickstart/ | |
| # Start all the nodes! | |
| for node in dev*; eval $node/bin/riak start; end | |
| # Ping all the nodes! | |
| for node in dev*; eval $node/bin/riak ping; end |
Compojure 1.3.3 depends on Clout 2.1.1, which depends on the outdated Instaparse 1.3.6, which throws some very cryptic Exceptions on Clojure 1.7.0 beta 2, thereby breaking any project that depends on both Clojure 1.7.0 beta 2 and Compojure 1.3.3.
:dependencies [[org.clojure/clojure "1.7.0-beta2"]
[compojure "1.3.3"]]| (let ((m #m(a 1 b (2 3 4) c #(a b))) | |
| (x 'a)) | |
| ;; Fail | |
| ;; (mref m x) | |
| ;; (map-get m x) | |
| ;; Work | |
| (list | |
| (maps:get x m) | |
| (mref m 'b) |
| ;;; Notes: | |
| ;; - Doesn't check arity of `F' | |
| ;; - Like #'lists:zip/3, throws a function_clause exception | |
| ;; when given lists of unequal lengths | |
| (defun zipfoldl | |
| ([f acc `(,ha . ,ta) `(,hb . ,tb)] (when (is_function f)) | |
| (zipfoldl f (funcall f ha hb acc) ta tb)) | |
| ([f acc () ()] acc)) |
| (defmodule fizzbuzz | |
| (export (fizzbuzz 1))) | |
| (defun fizzbuzz (n) | |
| (lists:foreach | |
| (lambda (x) (lfe_io:format "~p~n" `(,x))) | |
| (lists:map #'fizz/1 (lists:seq 1 n)))) | |
| (defun fizz (n) (fizz n (rem n 3) (rem n 5))) |