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
diff --git a/examples/mixin/index.html b/examples/mixin/index.html | |
index 20a42bc..569ca49 100644 | |
--- a/examples/mixin/index.html | |
+++ b/examples/mixin/index.html | |
@@ -1,9 +1,6 @@ | |
<html> | |
<body> | |
<div id="example"></div> | |
- <script src="http://fb.me/react-0.9.0.js"></script> | |
- <script src="out/goog/base.js" type="text/javascript"></script> |
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 mapv-indexed | |
[f coll] | |
(let [v (transient [])] | |
(loop [idx 0 | |
coll (seq coll)] | |
(when coll | |
(conj! v (f idx (first coll))) | |
(recur (inc idx) (next coll)))) | |
(persistent! v))) |
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 +keymap+ | |
(into | |
{8 :backspace | |
9 :tab | |
13 :enter | |
16 :shift | |
17 :ctrl | |
18 :alt | |
19 :pause | |
20 :capslock |
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
(ns om-2048.core | |
(:require-macros | |
[cljs.core.async.macros :refer [go go-loop]]) | |
(:require | |
[clojure.string :as str] | |
[cljs.core.async :as async :refer [<!]] | |
[dommy.core :as dommy] | |
[om.core :as om] | |
[om-tools.core :refer-macros [defcomponentk]] | |
[om-tools.dom :as dom :include-macros true])) |
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
(ns om-tools.core-test | |
(:require | |
[om-tools.core :as om-tools :refer-macros [defcomponent]] | |
[om-tools.dom :as dom :include-macros true] | |
[om.core :as om] | |
[om.dom :as om-dom :include-macros true])) | |
(defn basic-om-component | |
[data owner] | |
(reify |
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
(ns qcon.core | |
(:require | |
[qcon.state :as state] | |
[qcon.time-travel :as time-travel] | |
[om.core :as om :include-macros true] | |
[om-tools.dom :as dom :include-macros true] | |
[om-tools.core :refer-macros [defcomponent]])) | |
(defcomponent compose-view | |
[pending-item owner {:keys [on-submit]}] |
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
(ns schema-client.schema-extensions | |
"Schemas representing abstract classes and subclasses" | |
(:use plumbing.core) | |
(:require | |
[clojure.string :as str] | |
[plumbing.map :as map] | |
[schema.core :as s] | |
[schema.utils :as utils] | |
[schema.macros :as sm])) |
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
(ns a-nucleus-example | |
(:require-macros | |
[cljs.core.async.macros :refer [go go-loop]] | |
[nucleus.action :refer [defaction]]) | |
(:require | |
[nucleus.core :as nucleus :refer [dispatch! perform!]] | |
[nucleus.model :as model] | |
[om.core :as om] | |
[om-tools.core :refer-macros [defcomponent]] | |
[om-tools.dom :as dom :include-macros true] |
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(window) { | |
window.__karma__.start = cljs_karma.create_start(window.__karma__); | |
})(window); |
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
extension Array { | |
func forEach(f: (element: T) -> Void) { | |
for e in self { | |
f(element: e) | |
} | |
} | |
} |