Skip to content

Instantly share code, notes, and snippets.

View dvcolgan's full-sized avatar
🦆

David Colgan dvcolgan

🦆
View GitHub Profile
@Bondifrench
Bondifrench / pubsub.js
Created July 9, 2015 03:15
Pub/Sub, Observer pattern with Mithril/Javascript
https://jsfiddle.net/3p90n4mn/2/
https://github.com/jasonmayes/mdl-component-design-pattern
https://github.com/Satyam/malt
https://github.com/dvcolgan/superflux
http://mithril.js.org/components.html#the-observer-pattern
@simenbrekken
simenbrekken / CategoryActions.js
Last active May 9, 2020 16:25
Category Actions
'use strict';
var createAsyncActions = require('./createAsyncActions')
var CategoryAPI = require('../api/CategoryAPI')
var CategoryActions = createAsyncActions({
create: function(category) {
CategoryAPI
.create(category)