Skip to content

Instantly share code, notes, and snippets.

View e-schultz's full-sized avatar

Evan Schultz e-schultz

View GitHub Profile
@e-schultz
e-schultz / misc.md
Last active September 3, 2015 12:17
ES6 Fiddles

Cheap currying,

let logger = store => next => action => {
// middleware
}

// becomes

var logger = function logger(store) {

The setup:

  • Basic angular application
  • Has an iframe that is dynamically added to the page, and a dynamic src
  • Page when it loads, goes to a SSO provider
  • Upon logging in - gets redirected to a new page
  • New page sends a postMessage to the parent frame
  • Parent frame then updates the location.path, then does a window.location.reload

The problem:

@e-schultz
e-schultz / gist:5c3ed30a3d305f6fd327
Created January 29, 2015 12:47
Routers and lists and things
  • In the Content setup for 'Dashboard', pretty much moved the actions / list / etc to live under the 'tab'
 dashboard: {
          id: 'dashboard',
          title: 'Dashboard',

          tabs: [{
            label: 'Analytics',
            tab: 'analytics',
var koastServer = require('koast');
var config = require('config');
var koast = koastServer(); // by defualt, loads config, but could pass in manually formed {} config object
koast.whenReady().then(function() // some way of letting us know config is done
{
})
@e-schultz
e-schultz / linkdump.md
Created October 1, 2014 22:01
Various links / resources I've found useful