javascript:var cssLink=document.createElement('style');cssLink.innerHTML="@font-face { font-family: SansBS; src: url('data:font/ttf;base64,AAEAAAASAQAABAAgRkZUTVGwM9YAAKaYAAAAHEdERUYAJgDYAACmtAAAAB5HUE9T8lpNXgAAptQAABLAR1NVQhvFOicAALmUAAAV5k9TLzKg07VlAAABqAAAAGBjbWFwoIGYEgAABWAAAAGiY3Z0IDl+PkwAABD4AAAB/GZwZ21zhINeAAAHBAAABwVnYXNwAAQABwAApowAAAAMZ2x5Zs5ZPbgAABSkAACJQGhlYWQml1fWAAABLAAAADZoaGVhNgItRwAAAWQAAAAkaG10eMXDVZsAAAIIAAADWGxvY2EqhwaaAAAS9AAAAa5tYXhwA34GYgAAAYgAAAAgbmFtZefcI3UAAJ3kAAAGoHBvc3TfQqePAACkhAAAAgVwcmVwgtwhEwAADgwAAALsAAEAAAABAAB5kUCqXw889QAdCAAAAAAAyBdP9gAAAADRFL1c/qD+FC+aB3MAAAAIAAIAAAAAAAAAAQAAB3P+FAAAL7r+oP6iL+wAAQAAAAAAAAAAAAAAAAAAANYAAQAAANYE+AAXAFMABAACABAALwBaAAACHwDlAAMAAQADBCYBkAAFAAgFmgUzAAABHgWaBTMAAAPQAGYB8gAAAgsGBgMIBAICBOAAAu9AACBbAAAAKAAAAAAxQVNDAEAAICBEBh/+FACEB3MB7CAAAZ8AAAAABEoFtgAAACAAAggAAAAAAAAACAAAAAIUAAACJwCTAzcAhQUrADMEaAB7BpoAZgWeAG0BzwCFAmgAUgJoAD0EaABSBGgAZgIAAD8CkwBSAiUAkwL8ABQEaABiBGgAsgRoAGAEaABSBGgAFwRoAIMEaABxBGgAWgRoAGoEaABqAiUAkwIlAD8EaABmBGgAZgRoAGYDaAAlB
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 itrReduce(src, reductionFn, destination) { | |
let result = {value: undefined, done: false} | |
let done = {done: true} | |
let latestDestinationValue = destination | |
return { | |
next: function() { | |
let nextIncomingOpt = src.next() | |
if (nextIncomingOpt.done) { | |
return done |
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
try { | |
var WAIT = "wait" | |
var FIRE = "fire" | |
var ACTIONS = [WAIT, FIRE] | |
if (!context.classesDefined) { | |
context.classesDefined = true; | |
context.WorldState = function WorldState(numberOfAsteroids, asteroidX, asteroidVx, fired) { | |
this.asteroidX = asteroidX |
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
// Generated by CoffeeScript 1.3.1 | |
(function() { | |
var cubes, list, math, num, number, opposite, race, square, | |
__slice = [].slice; | |
number = 42; | |
opposite = true; | |
if (opposite) { |
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
// Bad behaviour ahead! | |
// doesn't work with strict mode. | |
function local(obj) { | |
var global = Function("return this")(); | |
var tmpName = "_tmp"; | |
while (tmpName in global) { | |
tmpName = "_"+tmpName; | |
} |
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 os = require('os'); | |
if (os.platform() == 'win32') { | |
// change fs.watchFile so that it doesn't throw an error on windows. | |
fs.watchFile = function(filepath, callbackfunc) { | |
var old = fs.statSync(filepath); | |
fs.watch(filepath, function() { | |
fs.stat(filepath, function(err, newStat) { | |
callbackfunc(old, newStat); |
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> | |
<title>CouchTest</title> | |
<script> | |
document.domain = window.location.hostname; | |
window.oncouchready = function(api) { | |
CouchDB = api; | |
var database = new CouchDB("somedb"); |
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 type="text/javascript" src="/_utils/script/couch.js"></script> | |
<script type="text/javascript"> | |
document.domain = window.location.hostname; | |
if (window.parent.oncouchready) { |
NewerOlder