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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[p5.js]" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.8/processing.min.js"></script> | |
</head> | |
<body> | |
<canvas id="canvas1" width="200" height="200" border="1"></canvas> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="[p5.js]" /> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/processing.js/1.4.8/processing.min.js"></script> | |
</head> | |
<body> | |
<canvas id="canvas1" width="200" height="200" border="1"></canvas> |
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
[ | |
{ | |
"sys": { | |
"publishedAt": "2016-06-22T03:52:38.355Z", | |
"space": { | |
"sys": { | |
"type": "Link", | |
"linkType": "Space", | |
"id": "2efkk6oex1yh" | |
} |
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
// register these two event listeners | |
window.player.on("play", function(){ console.log("played")}); | |
window.player.on("pause", function(){ console.log("paused")}); |
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 rmfu-ui.profile | |
(:require | |
[reagent.core :as reagent :refer [atom]])) ;; <--- special version of the atom here, rerenders componets on change | |
(defn input-range-component | |
[state param] | |
[:div.row | |
[:p.bullet.col-lg-7 | |
"Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."] | |
[:p.col-lg-5 |
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
(add-watch app-state :watcher | |
(fn [key atom -old -new] | |
(print "-- Atom State Changed --") | |
(print "key " key) | |
(print "atom" atom) | |
(print "old" -old) | |
(print "new" -new))) |
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
<< started Jetty on http://localhost:3000 >> | |
Starting file watcher (CTRL-C to quit)... | |
nREPL server started on port 53753 on host 127.0.0.1 - nrepl://127.0.0.1:53753 | |
Adding :require adzerk.boot-cljs-repl to app.cljs.edn... | |
Adding :require adzerk.boot-reload to app.cljs.edn... | |
Compiling boot-cljs-app.js... | |
clojure.lang.ArityException: Wrong number of args (1) passed to: env/default-compiler-env | |
... |
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
(set-env! | |
:source-paths #{"src/cljs"} | |
:resource-paths #{"resources"} | |
:dependencies '[[adzerk/boot-cljs "0.0-2814-4" :scope "test"] | |
[adzerk/boot-cljs-repl "0.1.9" :scope "test"] | |
[adzerk/boot-reload "0.2.4" :scope "test"] | |
[pandeiro/boot-http "0.6.1" :scope "test"] | |
[cljsjs/jquery "1.9.0-0"] | |
[quil "2.2.5"]]) ;; <--- quil dep |
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
echo | curl http://www.filltext.com/\?rows\=10\&fname\=\{firstName\}\&lname\=\{lastName\}\&pretty\=true | json |
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
// 48 instances of Ext.decode | |
// 23 instances of Ext.encode | |
// collection size 7 | |
(function() { | |
console.time('test') | |
var x = Ext.decode(temp1.responseText); | |
console.timeEnd('test') | |
console.log(x) | |
})()//test: 0.597ms |