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 polyfill (feature, url) { | |
return new Promise(function (resolve, reject) { | |
if (!!feature) return resolve(feature) | |
var el = document.createElement('script') | |
el.async = el.defer = true | |
el.src = url | |
el.onload = function () { resolve(url) } | |
el.onerror = function (e) { reject(e) } | |
document.head.appendChild(el) | |
}) |
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
for (var i = 1, l = 100; i <= l; i++) { | |
var s = '' | |
if (i % 3 === 0) s += 'Crackle' | |
if (i % 5 === 0) s += 'Pop' | |
console.log(s || 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
// http://www.w3.org/html/wg/drafts/html/master/index.html#elements-1 | |
// http://www.w3.org/TR/html/index.html#elements-1 | |
var events = document.querySelector('table#ix-event-handlers').tBodies[0].rows | |
var elements = document.querySelector('table').tBodies[0].rows | |
var spec = {} | |
Array.prototype.forEach.call(elements, function (tr) { | |
var tags = tr.cells[0].textContent.replace(/\s/g, '').split(',') | |
var attr = tr.cells[5].textContent.replace(/\s/g, '').trim().replace(/globals;?/, '').replace(/;/g, ' ') |
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
// http://en.wikipedia.org/wiki/List_of_Games_with_Gold_games | |
// http://www.tekrevue.com/complete-xbox-games-with-gold-list-details/ | |
var tables = document.querySelectorAll('table.wikitable') | |
var data = { | |
xbox360: tabular(tables[0]), | |
xboxOne: tabular(tables[1]) | |
} | |
var prettyData = JSON.stringify(data, 0, 2) |
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> | |
<title>/r/</title> | |
<style> | |
body { | |
cursor: default; | |
font-family: Calibri; | |
font-size: 140%; |
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 getScript(s) {with(new ActiveXObject('microsoft.xmlhttp'))open('GET',s,!1),send(),s=responseText;return s} | |
eval(getScript('i:/love/dirty_girls')) |