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
rsync -aC --exclude .svn suggestions addown |
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> | |
<meta charset="utf-8" /> | |
<title>Sample</title> | |
<link href="css/main.css" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> |
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
// TODO: Better caching. If there are two template requests at the same time, they will both do a get request. | |
var templateCache = {}; | |
var template = function(name, callback) { | |
var template = templateCache[name]; | |
if(!template) { | |
$.get('templates/' + name + '.html').success(function(data) { | |
template = templateCache[name] = _.template(data); | |
callback(template); |
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
if(Modernizr.touch) { | |
$.event.special.click = { | |
tapThreshold: 750, | |
setup: function() { | |
$(this).on('touchstart', $.event.special.click.touchstart); | |
}, | |
teardown: function() { | |
$(this).off('touchstart', $.event.special.click.touchstart); |
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
var config = { | |
url: 'http://...' | |
}; | |
var loadXML = function(url) { | |
} | |
var getXML = (function() { | |
var cache = {}; |
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
$(window).on('beforeunload', function() { | |
return 'Sure you want to leave?'; | |
}); |
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
#!/usr/bin/env node | |
var browserify = require('browserify'), | |
underscore = require('underscore'), | |
markdown = require('node-markdown').Markdown; | |
var bundle = browserify({ | |
debug: false | |
}); |
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
float x = 0; | |
float y = 0; | |
void setup() { | |
size(500, 500); | |
} | |
void draw() { | |
background(0); | |
x += (mouseX - x) * 0.05; |
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> | |
<style> | |
.box { | |
width: 200px; | |
height: 200px; | |
background: blue; | |
transition: -webkit-transform 100ms linear; | |
} | |
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> | |
<style> | |
.box { | |
width: 200px; | |
height: 200px; | |
background: blue; | |
transition: -webkit-transform 500ms linear; | |
} | |
OlderNewer