Skip to content

Instantly share code, notes, and snippets.

View dviramontes's full-sized avatar
〰️
failing forward

David Viramontes dviramontes

〰️
failing forward
View GitHub Profile
@rwaldron
rwaldron / exponentiation.md
Last active August 29, 2015 14:01
Exponentiation Operator: **

Exponentiation Operator

Performs exponential calculation on operands. Same algorithm as Math.pow(x, y)

  • Commonly used in albegra, geometry, physics and robotics.
  • Nice to have "inline" operator

Prior Art

  • Python
@preziotte
preziotte / index.html
Last active August 29, 2015 14:04
Five Rotating Icosahedrons
<!DOCTYPE html>
<meta charset="utf-8">
<style>
body {
background-color: #36393B;
}
svg {
position: absolute;
(require '[clojure.data.fressian :as fress])
(require '[clojure.java.io :as io])
(import 'java.util.zip.GZIPInputStream)
(defn fress-seq* [reader]
(let [x (try (fress/read-object reader) (catch Exception e :eof))]
(if (= :eof x)
(do (.close reader) nil)
(cons x
(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" :exclusions [[org.clojure/clojurescript]
[com.cemerick/piggieback]]]]) ;;
@paulirish
paulirish / gist:616412
Created October 8, 2010 05:38
"iframe" sitedown fallback via <object>
<!-- so it turns out that the object tag can act like an iframe
but the cool thing is you can nest object tags inside eachother for a fallback path.
what this means is you can "objectframe" a site.. and if it fails.. (site down, offline, whatever).. it'll use the next one.
so you can objectframe the live site and fallback to a screenshot.
or something.
demo at : http://jsfiddle.net/paul/CY2FQ/1/
-->
@indexzero
indexzero / create.out
Created May 31, 2011 04:49
End-to-end output for deploying the express sample app on Nodejitsu
$ express express-test
create : express-test
create : express-test/app.js
create : express-test/public/stylesheets
create : express-test/public/stylesheets/style.css
create : express-test/public/images
create : express-test/public/javascripts
create : express-test/logs
create : express-test/pids
create : express-test/views
@ahoward
ahoward / quiz-1.md
Created September 26, 2012 15:41
quiz-1.md
So you think you wanna be a web developer...

Fork this, update your copy with answers.

They don't need to be precise - pseudo-code is fine in most cases.

Some questions don't have correct answers.

@michaelsbradleyjr
michaelsbradleyjr / LICENSE
Created July 1, 2013 21:53
XHR custom element for Google Polymer, adapted to support `responseType` option
<!--
Copyright 2013 The Polymer Authors. All rights reserved.
Use of this source code is governed by a BSD-style
license that can be found in the LICENSE file.
-->
@natritmeyer
natritmeyer / chromedriver_centos6_fail.md
Last active December 22, 2015 15:49
Chrome, Chromedriver, CentOS6 #fail

OS:

CentOS6

Output of uname -a:

$ uname -a
Linux localhost.localdomain 2.6.32-358.2.1.el6.x86_64 #1 SMP Wed Mar 13 00:26:49 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Chrome version:

@nathanic
nathanic / index-of.cljs
Created October 1, 2013 17:06
index-of for clojurescript
(defn index-of
"return the index of the supplied item, or nil"
[v item]
(let [len (count v)]
(loop [i 0]
(cond
(<= len i) nil,
(= item (get v i)) i,
:else (recur (inc i ))))))