This file contains hidden or 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
| .deck-component { | |
| perspective: 1000px; | |
| } | |
| .card-component { | |
| position: relative; | |
| display: inline-block; | |
| cursor: pointer; | |
| width: 50px; | |
| height:50px; | |
| margin: 10px; |
This file contains hidden or 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
| <!-- Required for using JSX in JsFiddle --> | |
| <script src="https://facebook.github.io/react/js/jsfiddle-integration.js"></script> | |
| <div id="view"/> |
This file contains hidden or 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
| (function(){var t=function(r){var n,a=[],w=document.createTreeWalker(r,NodeFilter.SHOW_TEXT,null,false);while(n=w.nextNode()) a.push(n);return a;},i,n=t(document.body); for(i=0;i<n.length;i++) n[i].nodeValue=n[i].nodeValue.replace(/baby|girl/ig,'Jesus').replace(/ her /ig, ' Him ').replace(/ she /ig, ' He ');})() |
This file contains hidden or 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
| function flashFrameTime (counts, cb) { | |
| if (!typeof counts === 'number' || !counts > 0) { throw "no!"; } | |
| var accum = [] | |
| , reqFrame = window.requestAnimationFrame | |
| ; | |
| function calcFramerate () { | |
| return accum | |
| .slice(0, accum.length-1) |
This file contains hidden or 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
| function between (n,l,h) { return n >= l && n <= h; } | |
| function timesDo (n, f) { for (; n>0; n--) { f(n); } } | |
| function repeatAcc(n,f) { var accum = []; for (; n>0; n--) { accum.unshift(f(n)); } return accum; } |
This file contains hidden or 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
| function repeatAcc(n,f) { | |
| var accum = []; for (; n>0; n--) { accum.unshift(f(n)); } | |
| return accum; | |
| } |
This file contains hidden or 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
| function ChronoTron(conf) { | |
| function gots (name, type) { | |
| return ( | |
| (type === 'Array') ? | |
| conf[name] instanceof Array : | |
| conf[name] && typeof conf[name] === type | |
| ); | |
| } | |
| switch (true) { | |
| case typeof conf !== 'object': |
This file contains hidden or 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
| var EX = function (expr) { | |
| var result | |
| , operands = {} | |
| , operVals = Array.prototype.slice.call(arguments, 1) | |
| , operSetFuncs = {} | |
| ; | |
| function genResult () { | |
| result = expr.apply(null, Object.keys(operands).map(function(v) { | |
| return operands[v]; |
This file contains hidden or 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
| Object.prototype.hasPwnProperty = function (prop) { return (prop in this && !this.hasOwnProperty(prop)); }; |
This file contains hidden or 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
| # cube.obj | |
| # | |
| g cube | |
| v 0.0 0.0 0.0 | |
| v 0.0 0.0 1.0 | |
| v 0.0 1.0 0.0 | |
| v 0.0 1.0 1.0 | |
| v 1.0 0.0 0.0 |