Skip to content

Instantly share code, notes, and snippets.

View c-spencer's full-sized avatar

Chris Spencer c-spencer

View GitHub Profile
@superfeedr
superfeedr / notifier.js
Created August 18, 2011 21:50
Chrome Application Airbrake Notifier
/**
CONFIGURATION:
// Set your Airbrake API key here [REQ]
AirbrakeNotifier.setKey("XXXX");
// Set the environment. [OPT]
AirbrakeNotifier.setEnvironment("development");
// Set the app version [OPT]
AirbrakeNotifier.setAppVersion("1.3.3.7");
@c-spencer
c-spencer / yield.html
Created December 7, 2011 01:27
Using yield/generators to flatten async callbacks.
<!DOCTYPE html>
<html>
<head>
<title>Yield is Fun</title>
</head>
<script type="application/javascript;version=1.7">
function __genLoop(generator, callback, onend) {
if (callback && typeof callback === 'function') {
try {
@krisselden
krisselden / README.md
Last active July 28, 2021 15:44
Trace Chrome Deopts

trace-deopt.sh

How to use

./trace-deopt.sh http://localhost:4200

Wait until your page renders.