This file has been truncated, but you can view the full file.
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
Resource interpreted as Document but transferred with MIME type application/json: "https://pub.wsjprod-hp.grand-canyon.virginia.dj01.onservo.com/debug/pe?length". | |
Navigated to https://pub.wsjprod-hp.grand-canyon.virginia.dj01.onservo.com/debug/pe?length | |
fetch("https://pub.wsjprod-hp.grand-canyon.virginia.dj01.onservo.com/debug/pe?length", {"credentials":"include","headers":{},"referrerPolicy":"no-referrer-when-downgrade","body":null,"method":"GET","mode":"cors"}); | |
Promise {<pending>} | |
fetch("https://pub.wsjprod-hp.grand-canyon.virginia.dj01.onservo.com/debug/pe?length", {"credentials":"include","headers":{},"referrerPolicy":"no-referrer-when-downgrade","body":null,"method":"GET","mode":"cors"}).then((r)=>response.json((data)=>console.log(data)) | |
VM64826:1 Uncaught SyntaxError: missing ) after argument list | |
fetch("https://pub.wsjprod-hp.grand-canyon.virginia.dj01.onservo.com/debug/pe?length", {"credentials":"include","headers":{},"referrerPolicy":"no-referrer-when-downgrade","body":null,"method":"GET","mode":"co |
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
/** | |
* requireModuleInit.js | |
* Initialize require modules on article pages | |
* | |
* TODO: Move config into separate files - separate based on dev config and prod config | |
*/ | |
require.config({ | |
enforceDefine: true, | |
map: { |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/** | |
* Should be in the head to prevent FOUT on subsequent page views. | |
* http://crocodillon.com/blog/non-blocking-web-fonts-using-localstorage | |
* | |
* Make sure to edit md5 and path to your fonts json! | |
*/ | |
(function(window, document) { | |
'use strict'; | |
var isModernBrowser = ( |
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>OboeJS demo</title> | |
<script src="https://rawgit.com/jimhigson/oboe.js/v2.1.2/dist/oboe-browser.min.js"></script> | |
</head> | |
<body> | |
<div ></div> | |
<ul id="content"> | |
<li>AUD_CAD:</li> | |
</ul> |
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>OboeJS demo</title> | |
<script src="https://rawgit.com/jimhigson/oboe.js/v2.1.2/dist/oboe-browser.min.js"></script> | |
</head> | |
<body> | |
<div ></div> | |
<ul id="content"> | |
<li>AUD_CAD:</li> | |
</ul> |
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
export class EnumSymbol { | |
sym = Symbol.for(name); | |
value: number; | |
description: string; | |
constructor(name: string, {value, description}) { | |
if(!Object.is(value, undefined)) this.value = value; | |
if(description) this.description = description; |
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() { | |
var CSSCriticalPath = function(w, d, opts) { | |
var opt = opts || {}; | |
var css = {}; | |
var pushCSS = function(r) { | |
if(!!css[r.selectorText] === false) css[r.selectorText] = {}; | |
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/); | |
for(var i = 0; i < styles.length; i++) { | |
if(!!styles[i] === false) continue; | |
var pair = styles[i].split(": "); |
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
#!/bin/bash | |
# CentOS rbenv system wide installation script | |
# Forked from https://gist.github.com/1237417 | |
# Installs rbenv system wide on CentOS 5/6, also allows single user installs. | |
# Install pre-requirements | |
yum install -y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel \ | |
make bzip2 autoconf automake libtool bison iconv-devel git-core |
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
module.exports = function(config) { | |
config.set({ | |
frameworks: ['browserify', 'mocha', 'chai'], | |
//specify browserify preproccesor so we can use server-side components | |
preprocessors: { | |
'test/*' : ['browserify'] | |
}, |
NewerOlder