View index.html
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> | |
<link rel="stylesheet" href=" //netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" /> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
</head> | |
<body> | |
<div class="jumbotron"> | |
<div class="container"> | |
<p>1. jquery version : </p> | |
</div> |
View tomorrow_trumba.html
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> | |
<!-- TRUMBA DEPSNDS ON JQUERY --> | |
<script src="http://code.jquery.com/jquery-git2.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<!-- Trumna Code --> |
View index.html
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> | |
<script src="http://code.jquery.com/jquery.min.js"></script> | |
<link href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> | |
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> | |
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script> | |
<script src="http://code.jquery.com/jquery-git2.js"></script> | |
<script src="http://d3js.org/d3.v3.min.js"></script> | |
<meta charset="utf-8"> |
View stack d3 transformations
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
// stack transform method 1 | |
.attr("transform", d3.transform('...').toString()) | |
// stack transform method 2 | |
.attr("transform", function () { | |
return this.getAttribute("transform") + "scale(0.75)" + "translate(" + 0 + "," + cellSize + ")" | |
}) |
View gist:f9adb666643ef677d2e6
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 |
View boot.clj
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 |
View gist:c9371b70b37f1fef2277
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 | |
... |
View atom-watch-state
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))) |
View gist:2934621
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
p5.keyPressed = function() { | |
if(p5.keyCode == p5.BACKSPACE ){ | |
console.log("backspace was pressed"); | |
}else if(p5.keypressed){ | |
if(p5.key == 'c'){ | |
console.log("c was pressed"); | |
} | |
} | |
} |
View example-input-range.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
(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 |
OlderNewer