This file contains 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-tutorial.X-Query-Exercises | |
(:require-macros | |
[cljs.test :refer [is]]) | |
(:require [om.next :as om] | |
[om-tutorial.queries.query-editing :as qe] | |
[devcards.core :as dc :refer-macros [defcard defcard-doc deftest]])) | |
(def bird-db | |
{:birds/by-id {1 {:bird/id 1 :bird/name "Robin"} | |
2 {:bird/id 2 :bird/name "Blackbird"} |
This file contains 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 macro-ex.core | |
(:require [cljs.nodejs :as nodejs]) | |
(:require-macros [macro-ex.macros :refer [fancify]])) | |
(nodejs/enable-util-print!) | |
(defn -main [] | |
(println "Hello world!") | |
(fancify "Well, hello, there!")) |
This file contains 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 node-async.core | |
(:require [cljs.nodejs :as nodejs] | |
[cljs.core.async :refer [chan <! close!]]) | |
(:require-macros [cljs.core.async.macros :refer [go]])) | |
(nodejs/enable-util-print!) | |
(defn run-task [f & args] | |
"from https://gist.github.com/swannodette/6385166" | |
(let [out (chan) |
This file contains 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 node-async.core | |
(:require-macros [cljs.core.async.macros :refer [go]] | |
[node-async.macros :refer [<?]]) | |
(:require [cljs.core.async :refer [take!]] | |
[node-async.task :refer [run-task]])) | |
;; run-task and <? appropriated from dnolen | |
;; https://gist.github.com/swannodette/6385166 | |
;; https://github.com/swannodette/swannodette.github.com/blob/master/code/blog/src/blog/utils/macros.clj | |
;; https://github.com/swannodette/swannodette.github.com/blob/master/code/blog/src/blog/utils/helpers.cljs |
This file contains 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
<html> | |
<head> | |
<style> | |
body { | |
font-size: 100%; | |
font-family: "HelveticaNeue-Light", | |
"Helvetica Neue UltraLight", "Helvetica Neue", "Helvetica", sans-serif; | |
line-height: 150% | |
} |
NewerOlder