- http://stackoverflow.com/questions/267761/what-does-your-gitconfig-contain
- http://stackoverflow.com/questions/1218390/what-is-your-most-productive-shortcut-with-vim/1220118#1220118
- http://developer.apple.com/library/safari/#documentation/AudioVideo/Conceptual/HTML-canvas-guide/Translation,Rotation,andScaling/Translation,Rotation,andScaling.html
- http://developers.whatwg.org/
- http://en.wikipedia.org/wiki/Unix_philosophy
- http://isolani.co.uk/blog/javascript/BreakingTheWebWithHashBangs
- http://toroid.org/ams/git-website-howto
- http://www.gizma.com/easing/
- http://codeflow.org/entries/2010/aug/22/html5-canvas-and-the-flying-dots/
- http://ejohn.org/blog/how-javascript-timers-work/
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
/** | |
* Checks to see if an element has a given inline style set on it. | |
* @param{HTMLElement} el The element to inspect | |
* @param{String} style The inline style you would like to know about | |
* @returns{Boolean|null|undefined} Returns `true` is the string is present, `false` if it is not, `null` if there are no inline styles set on `el`, and `undefined` if `style` is not a string. | |
*/ | |
function hasInlineStyle (el, style) { | |
var inlineStyles = $(el).attr('style'), | |
i; | |
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
git checkout master; | |
git merge dev; | |
git checkout gh-pages; | |
git merge dev; | |
git push origin dev; | |
git push origin master; | |
git push origin gh-pages; | |
git checkout dev; |
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> | |
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--> | |
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> | |
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
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
$(function managerExample () { | |
// Declare private manager vars here | |
var container; | |
function init () { | |
// Select all of the DOM elements the manager uses in `init` | |
container = $('#container'); | |
} | |
// Functions with a leading underscore imply that the function is not to be used publicly |
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
javascript:(function () { | |
var textTags = ['p', 'a', 'li', 'code', 'pre', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'button', 'div', 'span', 'dt', 'dd'], | |
els, | |
i, j, | |
link; | |
link = document.createElement('link'); | |
link.setAttribute('href', 'http://fonts.googleapis.com/css?family=Oswald'); | |
link.setAttribute('rel', 'stylesheet'); |
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> | |
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]--> | |
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]--> | |
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]--> | |
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]--> | |
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]--> | |
<head> | |
<meta charset="UTF-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> | |
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
// Useful shim for getting the outerHTML text of a DOM node. Requires jQuery. | |
function getOuterHTML (el) { | |
var ret, wrapper; | |
if (el.hasOwnProperty && el.hasOwnProperty('outerHTML')) { | |
ret = el.outerHTML; | |
} else { | |
wrapper = $('<div>').html(el); | |
ret = wrapper.html(); |
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 PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" | |
"http://www.w3.org/TR/html4/loose.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>kapi</title> | |
<meta name="generator" content="TextMate http://macromates.com/"> | |
<meta name="author" content="Jeremy Kahn"> | |
<!-- Date: 2010-12-07 --> |
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
vsa.sequenceStart('box.move', function(sequenceName) { | |
box.animate({ | |
'left': '+=200' | |
}, { | |
'duration': 500 | |
}).animate({ | |
'left': 0 | |
}, { | |
'duration': 500, | |
'complete': function() { |