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 (context, trackingId, options) { | |
const history = context.history; | |
const doc = document; | |
const nav = navigator || {}; | |
const storage = localStorage; | |
const encode = encodeURIComponent; | |
const pushState = history.pushState; | |
const typeException = 'exception'; | |
const generateId = () => Math.random().toString(36); | |
const getId = () => { |
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
// from: http://book.mixu.net/node/ch10.html | |
'use strict'; | |
const http = require('http'); | |
const url = require('url'); | |
const server = http.createServer((sreq, sres) => { | |
const { pathname } = url.parse(sreq.url); | |
const opts = { |
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
const ignoreErrors = [ | |
/^No error$/, | |
/__show__deepen/, | |
/_avast_submit/, | |
/Access is denied/, | |
/anonymous function: captureException/, | |
/Blocked a frame with origin/, | |
/can't redefine non-configurable property "userAgent"/, | |
/change_ua/, | |
/console is not defined/, |
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
/* eslint-env browser, serviceworker */ | |
self.addEventListener('error', function (event) { | |
logError(event.error) | |
}) | |
self.addEventListener('unhandledrejection', function (event) { | |
let { reason, detail } = event | |
if (!reason && detail) { | |
reason = detail.reason | |
} |
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
<?php | |
/** | |
* GrooveShark - Interface to the Grooveshark unofficial web API | |
* | |
* PHP Version 5 | |
* | |
* @author Matt Austin <[email protected]> | |
*/ | |
include("util.class.php"); |
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
head | |
meta(charset="utf-8") | |
meta(http-equiv="X-UA-Compatible", content="IE=edge,chrome=1") | |
title= title | |
link(rel='stylesheet', href='/public/js/libs/nodeunit/nodeunit.css') | |
script(src="/public/js/libs/nodeunit/nodeunit.js") | |
script(data-main="/public/js/app-test", src="/public/js/libs/require/require.js") | |
<!-- nodeunit HTML --> |
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
// Require libraries | |
var os = require("os"); | |
var fs = require("fs"); | |
var readline = require("readline"); | |
var cluster = require("cluster"); | |
var express = require("express"); | |
var site = express(); | |
// Var up, bro | |
var i, read; |