Skip to content

Instantly share code, notes, and snippets.


David A. Viramontes dviramontes

Block or report user

Report or block dviramontes

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
dviramontes / example-input-range.cljs
Last active Nov 9, 2015
View example-input-range.cljs
(ns rmfu-ui.profile
[reagent.core :as reagent :refer [atom]])) ;; <--- special version of the atom here, rerenders componets on change
(defn input-range-component
[state param]
"Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua."]
View atom-watch-state
(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:c9371b70b37f1fef2277
<< started Jetty on http://localhost:3000 >>
Starting file watcher (CTRL-C to quit)...
nREPL server started on port 53753 on host - nrepl://
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 boot.clj
: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:f9adb666643ef677d2e6
echo | curl\?rows\=10\&fname\=\{firstName\}\&lname\=\{lastName\}\&pretty\=true | json
dviramontes / jsonParser.js
Last active Jun 15, 2016
Ext.decode vs JSON.parse
View jsonParser.js
// 48 instances of Ext.decode
// 23 instances of Ext.encode
// collection size 7
(function() {
var x = Ext.decode(temp1.responseText);
})()//test: 0.597ms
View stack d3 transformations
// 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 index.html
<!DOCTYPE html>
<script src=""></script>
<link href="" rel="stylesheet" type="text/css" />
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src=""></script>
<meta charset="utf-8">
View tomorrow_trumba.html
<!DOCTYPE html>
<script src=""></script>
<meta charset="utf-8">
<title>JS Bin</title>
<!-- Trumna Code -->
dviramontes / index.html
Created Feb 18, 2014
Multiple versions of jquery, same page
View index.html
<link rel="stylesheet" href=" //" />
<script src=""></script>
<div class="jumbotron">
<div class="container">
<p>1. jquery version : </p>
You can’t perform that action at this time.