Skip to content

Instantly share code, notes, and snippets.

View reiddraper's full-sized avatar
🍹

Reid Draper reiddraper

🍹
View GitHub Profile
#!/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" \
#!/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" \
set guifont=monaco:h20
set lines=70
set columns=177
set scroll=6
*.swp
*.pyc
*.o
*.hi
*.eunit
deps
priv
*.beam
*.plt
(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]
{mode, max}.
{duration, 1}.
{concurrent, 3}.
{driver, basho_bench_driver_http_raw}.
{code_paths, ["deps/ibrowse"]}.
(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)))
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
@reiddraper
reiddraper / query.clj
Created December 31, 2011 04:27
sumo querying ideas
; 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)