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> | |
<style> | |
.monitor { | |
border-top-left-radius: 20px; | |
border-top-right-radius: 20px; | |
background-color: darkgrey; | |
display: flex; | |
justify-content: center; |
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 isObject(test) { | |
return Object.prototype.toString.call(test) === '[object Object]'; | |
} | |
function trap(host, targetName, handler) { | |
const prison = {}; | |
let cell = {}; | |
Object.defineProperty(prison, targetName, { | |
configurable: true, |
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
/* jslint browser:true, devel:true */ | |
(function () { | |
'use strict'; | |
if (typeof Element.prototype.matches !== 'function') { | |
var proto = Element.prototype; | |
var matches = proto.matches || | |
proto.webkitMatchesSelector || | |
proto.mozMatchesSelector || |
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 () { | |
'use strict'; | |
var CSSCriticalPath = function (w, d) { | |
var css = {}; | |
var findMatchingRules = function (node, pseudo) { | |
var rules = w.getMatchedCSSRules(node, pseudo); | |
var duplicate = false; | |
var rulesArr = null; |
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 watchr = require('watchr'), | |
exec = require('child_process').exec, | |
isCompiling = false, | |
needsRecompile = false; | |
console.log('started watching sass files for changes...'); | |
watchr.watch({ | |
path: './scss', | |
preferredMethods: ['watchFile', 'watch'], |
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 (win, doc, undefined) { | |
var modules = Object.create(null), | |
moduleContext = { | |
sayHi: function () { console.log('HI from module'); } | |
}, | |
handleRegisterModuleEvent = function handleRegisterModuleEvent(event) { | |
core.registerModule(event.module); | |
}, | |
core = { |
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 runInSandbox = (function () { | |
function extend(dest, src, arr) { | |
var property = null, | |
ext = '', | |
isArray = false, | |
key; | |
for (property in src) { | |
key = arr ? '[' + property + ']' : '["' + property + '"]'; | |
ext += dest + key + ' = '; |