Fetch a goroutine dump from the pprof endpoint
curl -q http://myapp.com:/debug/pprof/goroutine?debug=2 > goroutine.dump
version: 0.50.0 | |
type: DeclarativeSource | |
check: | |
type: CheckStream | |
stream_names: | |
- Mailboxes | |
streams: | |
- type: DeclarativeStream | |
name: Mailboxes | |
primary_key: |
App.StorageService = Ember.Object.extend({ | |
persistence: window.localStorage, | |
namespace: 'ember-storage-service', | |
init: function() { | |
var callback = this._handleStorageEvent.bind(this); | |
$(window).on('storage', callback); | |
}, | |
I hereby claim:
To claim this, I am signing this object:
init: function() { | |
var callback = this._handleStorageEvent.bind(this); | |
$(window).on('storage', callback); | |
} | |
_handleStorageEvent: function(event) { | |
var storageEvent = event.originalEvent; | |
var storageKey = storageEvent.key; | |
var tokens = storageKey.split(':'); |
// takes array and returns hash keyed by property | |
const indexBy = (array, property) => array.reduce((hash, item) => { | |
hash[item[property]] = item | |
return hash; | |
}, {}) | |
const get = async function (url) { | |
// force https on Star Wars API | |
const httpsUrl = url.replace('http://', 'https://') | |
const response = await fetch(httpsUrl) |
# Description: | |
# Messing around with the Spotify API. https://developer.spotify.com/web-api/ | |
# | |
# Commands: | |
# hubot spotify (album|track|artist|playlist) <query> - Searches Spotify for the query and returns the embed link | |
# | |
# Author: | |
# catkins (2015) | |
# |
# Description: | |
# Messing around with the Spotify API. https://developer.spotify.com/web-api/ | |
# | |
# Commands: | |
# hubot spotify (album|track|artist|playlist) <query> - Searches Spotify for the query and returns the embed link | |
# | |
# Author: | |
# catkins (2015) | |
# |
{ | |
"name": "emberfire", | |
"main": "emberfire.js", | |
"dependencies": { | |
"firebase": "2.1.x" | |
}, | |
"ignore": [ | |
"**/.*", | |
"src", | |
"lib", |
/*! | |
* EmberFire is the officially supported adapter for using Firebase with | |
* Ember Data. The DS.FirebaseAdapter provides all of the standard DS.Adapter | |
* methods and will automatically synchronize the store with Firebase. | |
* | |
* EmberFire 0.0.0 | |
* https://github.com/firebase/emberfire/ | |
* License: MIT | |
*/ | |
!function(){"use strict";if(void 0!==window.DS){var a=Ember.Namespace.create({VERSION:"0.0.0"});Ember.libraries&&Ember.libraries.registerCoreLibrary("EmberFire",a.VERSION),DS.Store.reopen({push:function(a,b,c){var d=this._super(a,b,c),e=this.adapterFor(d.constructor);return e.recordWasPushed&&e.recordWasPushed(this,a,d),d},recordWillUnload:function(a){var b=this.adapterFor(a.constructor);b.recordWillUnload&&b.recordWillUnload(this,a)}}),DS.Model.reopen({unloadRecord:function(){return this.store.recordWillUnload(this),this._super()}});var b=Ember.RSVP.Promise,c=Ember.EnumerableUtils.map,d=Ember.EnumerableUtils.forEach,e=Ember.String.fmt,f=function(a,c,d,e){var f=d||[];return new b(function(b,d){var g=funct |