Skip to content

Instantly share code, notes, and snippets.

Error: Invalid arity: 1
G__9743()
core.js:21275
rabug$core$main_area/<()
core.js:81
executeDispatch()
react.inc.js:3297
[91]</SimpleEventPlugin.executeDispatch()
react.inc.js:15709
forEachEventDispatch()
----- core.js:130:8
Read Data {:selected-user [:user/by-name Jimmy], :users [[:user/by-name Jimmy] [:user/by-name Robby] [:user/by-name Bobby]]} core.js:130:8
Read Query [{:selected-user [:userName]} {:users [:userName]}] core.js:130:8
Call (om/db->tree query data (clojure.core/deref state)) core.js:130:8
----- core.js:130:8
Props of a user list [{:userName Jimmy} {:userName Robby} {:userName Bobby}] core.js:130:8
-----
;; Given the following app state:
(def state {:items/list [{:item/id 0 :item/type :foo :foo/value 42}
{:item/id 1 :item/type :bar :bar/value 43}]})
;; Foo has property `:foo/value`
(defui Foo
static om/Ident
(ident [this {:keys [item/type item/id]}]
[type id])
static om/IQuery
(defn diag-diff
[data]
(let [width (Math/sqrt (count data))
right-seq (take-nth (+ 1 width) data)
right-diag (take width right-seq)
left-data (drop (- width 1) data)
left-seq (take-nth (- width 1) left-data)
left-diag (take width left-seq)
package
{
/*
Type checking on the assignments....
*/
import loom.Application;
import loom2d.Loom2D;
import loom2d.animation.Transitions;
@jamesmintram
jamesmintram / SampleRoute.clj
Created July 29, 2015 17:56
Is there a better way to write this?
(defroutes thin-app
(GET "/" [] "")
(POST "/foo" req
(if (= [:failed :default] (async/alts!! [[event-sink (slurp (:body req))]] :default :failed))
(println "FULL - 503")
(println "OK - 201"))
""))