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> | |
<title>Who Likes Mitt?</title> | |
<style> | |
pre#output { | |
height: 12em; | |
width: 500px; | |
overflow: auto; | |
} | |
</style> |
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
### this is a test | |
_yes_ | |
<script> | |
alert('ding'); | |
</script> | |
__it is!__ |
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
[to put you in the mood for this, imagine Cat Stevens on a train platform, | |
singing for spare change] | |
Caltrain is broken, like every morning | |
Announcer has spoken, all trains are slow | |
Praise the conductor, praise the announcer | |
Praise the guy in the hard hat and reflective vest who sends you to the northbound platform. | |
Sweet is the bus bridge to Palo Alto, | |
No bathroom there, go piss on the grass, |
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'> | |
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | |
<title></title> | |
<link href="presentation.css" media="screen" rel="stylesheet" type="text/css" /> | |
</head> | |
<body> | |
<script src="behavior.js" type="text/javascript"></script> |
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
<p>Boy, it would sure be nice if I could include URLs with Hammer as well as local files.</p> |
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
// new and improved collide-o-scope | |
(function (w, d, n, a) { | |
var $ = w[a.k] = { | |
'w': w, 'd': d, 'n': n, 'a': a, 's': {}, | |
'f': (function () { | |
return { | |
listen : function (el, ev, fn) { | |
if (typeof $.w.addEventListener !== 'undefined') { | |
el.addEventListener(ev, fn, 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
var drawStuff = function () { | |
// draw stuff here | |
}; | |
// draw and ask requestAnimationFrame to call you again when ready | |
var animate = function () { | |
drawStuff(); | |
w.requestAnimationFrame(animate); | |
}; |
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
<meta http-equiv="X-UA-Compatible" content="chrome=1"> | |
<!--[if lt IE 9]> | |
<style>html{display:none!important;}</style> | |
<META http-equiv="refresh" content="0;URL=http://noaiee.com/"> | |
<![endif]--> |
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
// drag to create data:URI | |
(function (w, d, a) { | |
var $ = w[a.k] = {}; | |
$.a = a; | |
$.w = w; | |
$.d = d; | |
$.s = {}; | |
$.f = (function () { | |
return { |
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
// super old, super crude, and no longer working | |
if (navigator.userAgent.match("MSIE")) { | |
window.onerror = function() { | |
gotcha(); | |
} | |
} | |
if (navigator.userAgent.match("Gecko")) { | |
window.onerror = gotcha; |