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
| #!/usr/bin/env sh | |
| curl -X PUT -H "Content-Type: application/json" -d '{"props":{"allow_mult":true}}' \ | |
| "http://localhost:8098/riak/multiBucket" | |
| curl -X DELETE "http://localhost:8098/riak/multiBucket/foo" | |
| for num in 0 1 2 3 4 | |
| do | |
| curl -X PUT -H "X-Riak-ClientId: py_ODYxNDAyNzUy" \ |
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
| #!/usr/bin/env sh | |
| curl -X PUT -H "Content-Type: application/json" -d '{"props":{"allow_mult":true}}' \ | |
| "http://localhost:8098/riak/multiBucket" | |
| curl -X DELETE "http://localhost:8098/riak/multiBucket/foo" | |
| for num in 0 1 2 3 4 | |
| do | |
| curl -X PUT -H "X-Riak-ClientId: py_ODYxNDAyNzUy" \ |
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
| set guifont=monaco:h20 | |
| set lines=70 | |
| set columns=177 | |
| set scroll=6 |
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
| *.swp | |
| *.pyc | |
| *.o | |
| *.hi | |
| *.eunit | |
| deps | |
| priv | |
| *.beam | |
| *.plt |
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
| (defn slow [] | |
| (do (. Thread (sleep 700)) "slow call")) | |
| (defn fast [] | |
| (do (. Thread (sleep 100)) "fast call")) | |
| (defn thread-deliver [fun prom] | |
| (.start (Thread. (fn [] (deliver prom (fun)))))) | |
| (defn main [a aw b overall default] |
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
| {mode, max}. | |
| {duration, 1}. | |
| {concurrent, 3}. | |
| {driver, basho_bench_driver_http_raw}. | |
| {code_paths, ["deps/ibrowse"]}. |
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
| (defbox Account | |
| ;; the second item in the | |
| ;; list is a type or protocol | |
| ;; to restrict the value to | |
| (:name LWWRegister :required true) | |
| (:address LWWRegister :required true) | |
| ;; specify a default value for this field, | |
| ;; in this case, the result of calling the | |
| ;; function `lww-set` | |
| (:followers ObservedRemoveSet :default (lww-set))) |
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
| lein search autodoc | |
| == Results from clojars - Showing page 1 / 10 total | |
| [autodoc "0.3.0-SNAPSHOT"] A tool to build HTML documentation from your Clojure source | |
| [autodoc "0.7.0"] A tool to build HTML documentation from your Clojure source | |
| [autodoc "0.7.1-SNAPSHOT"] A tool to build HTML documentation from your Clojure source | |
| [autodoc "0.7.1"] A tool to build HTML documentation from your Clojure source | |
| [org.clojars.rayne/autodoc "0.8.0-SNAPSHOT"] A tool to build HTML documentation from your Clojure source | |
| [com.fxtlabs/autodoc "0.8.0-SNAPSHOT"] A tool to build HTML documentation from your Clojure source | |
| [org.clojars.weavejester/autodoc "0.9.0"] A tool to build HTML documentation from your Clojure source | |
| [org.clojars.weavejester/autodoc "0.9.0-SNAPSHOT"] A tool to build HTML documentation from your Clojure source |
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
| ; 2i queries | |
| (index-query conn :age 25) | |
| (index-query conn :age 21 80) | |
| (index-query conn :last-name "a" "f") | |
| ; is it too much of an abstraction to launch | |
| ; a mapreduce query which gets the docs and not | |
| ; just the keys? | |
| (index-query conn :email "[email protected]" :return-body true) |