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
const revealJank = (fn) => { | |
// jank is a master on/off switch from outer scope | |
if (!jank) return fn(); | |
// scrim is visible when .janking is on body | |
document.body.classList.add('janking'); | |
setTimeout(() => { | |
fn(); | |
let lastFrame = window.performance.now(); | |
let goodFrames = 0; |
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.it = 'those'; |
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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
#paper_button { | |
left: 340px; | |
top: 250px; | |
position: absolute; |
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
//////////////////////////////// | |
// Support for Freebase nouns // | |
//////////////////////////////// | |
var sandbox = this; | |
jQuery.ajax( { | |
url: "http://graynorton.com/ubiquity/freebase-noun-support.js", | |
success: function( script ) { | |
eval.call( sandbox, script ); // using jQuery.ajax + eval because jQuery.getScript doesn't work in Ubiquity Command sandbox |
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
// A dependency, from Douglas Crockford's "JavaScript: The Good Parts" | |
if (typeof Object.create !== 'function') { | |
Object.create = function (o) { | |
var F = function () {}; | |
F.prototype = o; | |
return new F(); | |
}; | |
} | |
// freebaseNounType |