Skip to content

Instantly share code, notes, and snippets.

Matthew Mueller matthewmueller

Block or report user

Report or block matthewmueller

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@matthewmueller
matthewmueller / index.html
Last active Jan 11, 2018
HTML Starter Template for rock-solid Web Apps
View index.html
<!--
What?
HTML Starter Template for rock-solid Web Apps
Where?
Get the latest template here: https://gist.github.com/matthewmueller/cb33e2c5f6834511cd45f17b59271052
@matthewmueller
matthewmueller / graphql.js
Created Jul 6, 2016
Simple Graph.ql server for tying in the Stripe + Diffbot services
View graphql.js
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
SMALL
MEDIUM
LARGE
}
@matthewmueller
matthewmueller / graphql.js
Last active Jul 6, 2016
Simple Graph.ql server for tying in the Stripe + Diffbot services
View graphql.js
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
small
medium
large
}
@matthewmueller
matthewmueller / graphql.js
Created Jul 6, 2016
Simple Graph.ql server for tying in the Stripe + Diffbot services
View graphql.js
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
SMALL
MEDIUM
LARGE
}
@matthewmueller
matthewmueller / graphql.js
Created Jul 6, 2016
Simple Graph.ql server for tying in the Stripe + Diffbot services
View graphql.js
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
SMALL
MEDIUM
LARGE
}
@matthewmueller
matthewmueller / graphql.js
Created Jul 6, 2016
Simple Graph.ql server for tying in the Stripe + Diffbot services
View graphql.js
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
SMALL
MEDIUM
LARGE
}
View context.js
function context (msg) {
console.log('context', msg)
}
function hi () {
this('message')
}
View graph.ql.md

One thing you could do is have something like, say Film.js:

exports.toString = `
  type Film {
    characters(): [Character]
  }
`

exports.characters = function (film, args) { ... }
View index.js
var Debug = require('redux-debug')
var debug = require('debug')
var assign = require('object-assign')
var thunk = require('redux-thunk')
var Redux = require('redux')
function store_enhancer (options) {
return function (next) {
return function (reducer, initial_state) {
@matthewmueller
matthewmueller / lazy-load-redux-action.js
Last active Oct 9, 2015
Non-working lazy-load redux action. The reason it doesn't work is because webpack cannot resolve dynamic paths (without assistance). Makes sense to create a loader like `react-proxy-loader` that will generate this. Then you can stick this in middleware and be done.
View lazy-load-redux-action.js
/**
* Module Dependencies
*/
var relative = require('path').relative
/**
* Action
*/
You can’t perform that action at this time.