Skip to content

Instantly share code, notes, and snippets.

View mdboop's full-sized avatar
🐐

Matthew Brooks mdboop

🐐
View GitHub Profile

Pigeon peas

Ingredients:

  • 2 cans peas
  • 1 can coconut milk
  • 1 can cubed pumpkin (fresh is better)
  • 1 onion
  • 1 pack bacon
  • ketchup (or other sugar)
  • pepper sauce (or other pepper)
  • Worcester sauce (for browning)
@whiteinge
whiteinge / rxjs-spinner-poc.js
Created March 2, 2016 05:56
Render a spinner while waiting for an ajax response using RxJS
// Central xhr progress tracker. Used for both a global
// activity indicator as well as granular spinners within in a page.
var Progress$ = new Rx.Subject();
// Make an xhr call and make a tag to track the progress ticks.
var users$ = Rx.DOM.ajax({
method: 'GET',
url: 'https://api.github.com/users',
responseType: 'json',
progressObserver: Rx.Observer.create(