Skip to content

Instantly share code, notes, and snippets.

@matthewmueller
matthewmueller / index.js
Last active October 28, 2016 07:16
Basic scaffolding for monorepos
/**
* Module dependencies
*/
/**
* Export `__NAME__`
*/
/**
* Styling
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) :
(global.vcom = factory());
}(this, (function () {
var commonjsGlobal = typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@matthewmueller
matthewmueller / index.html
Last active January 11, 2018 09:41
HTML Starter Template for rock-solid Web Apps
<!--
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 July 6, 2016 09:37
Simple Graph.ql server for tying in the Stripe + Diffbot services
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
SMALL
MEDIUM
LARGE
}
@matthewmueller
matthewmueller / graphql.js
Last active July 6, 2016 09:41
Simple Graph.ql server for tying in the Stripe + Diffbot services
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
small
medium
large
}
@matthewmueller
matthewmueller / graphql.js
Created July 6, 2016 09:37
Simple Graph.ql server for tying in the Stripe + Diffbot services
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
SMALL
MEDIUM
LARGE
}
@matthewmueller
matthewmueller / graphql.js
Created July 6, 2016 09:37
Simple Graph.ql server for tying in the Stripe + Diffbot services
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
SMALL
MEDIUM
LARGE
}
@matthewmueller
matthewmueller / graphql.js
Created July 6, 2016 09:37
Simple Graph.ql server for tying in the Stripe + Diffbot services
let Graph = require('graph.ql')
module.exports = Graph(`
scalar Date
enum Size {
SMALL
MEDIUM
LARGE
}
function context (msg) {
console.log('context', msg)
}
function hi () {
this('message')
}