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
<html> | |
<head> | |
</head> | |
<body> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script> | |
<script> | |
$(document).ready(function(){ | |
var template = { | |
div : 'test' |
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
<html> | |
<head> | |
<!--<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>--> | |
<script src="https://raw.github.com/madrobby/zepto/master/src/zepto.js"></script> | |
<!--<script src="http://download.dojotoolkit.org/release-1.7.1/dojo.js"></script>--> | |
<script> | |
$(document).ready(function(){ | |
//dojo.ready(function(){ | |
var generated = '{'; |
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 template; | |
template = [ | |
{ | |
div: { | |
div: { | |
div: { | |
a: "Project Name", | |
ul: [ | |
{ | |
li: { |
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
<html> | |
<head> | |
<script> | |
document.addEventListener("DOMContentLoaded", function() { | |
var template; | |
template = [ | |
{ | |
div: { | |
div: { |
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
class Stackr | |
constructor: -> | |
@stack = [] | |
@navHeaders = $ '.nav-header' | |
@userStack = $ '#stack' | |
highlightActive: (event) => | |
@navHeaders.removeClass 'active' | |
$(event.currentTarget).addClass 'active' | |
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
### | |
http://paulirish.com/2011/requestanimationframe-for-smart-animating/ | |
http://my.opera.com/emoller/blog/2011/12/20/requestanimationframe-for-smart-er-animating | |
requestAnimationFrame polyfill by Erik Möller | |
fixes from Paul Irish and Tino Zijdel | |
Coffeescript and AMD by Blaine Bublitz | |
### |
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
getMouseLoc: (event) -> | |
coordsM = domGeom.position @canvas | |
return { x: Math.round(event.clientX - coordsM.x), y: Math.round(event.clientY - coordsM.y) } unless box? | |
return { x: (event.clientX - coordsM.x) / @box.scale, y: (event.clientY - coordsM.y) / @box.scale } |
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
[ | |
{ | |
"shape": { | |
"type": "image", | |
"x": -78.81720430107526, | |
"y": 30, | |
"width": 777.6344086021505, | |
"height": 560, | |
"src": "https://super_cool_url.com/images/4fc523c4fa0b3510de00000f/lightning-original.jpg?1338319812" | |
}, |
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 complain = function(){ | |
alert('FUCK THIS SHIT!'); | |
}; | |
var noFucksWereGiven = function(){ | |
return; | |
}; | |
var doSomethingAboutIt = function(fucks){ | |
bitchLogic(fucks--); |
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 five = require("johnny-five"); | |
var Shieldbot = require('./src/shieldbot'); | |
var board = new five.Board(); | |
board.on("ready", function() { | |
var shieldbot = new Shieldbot(); |
OlderNewer