Skip to content

Instantly share code, notes, and snippets.

View mikeyb's full-sized avatar

Baby Goat mikeyb

View GitHub Profile
@paudirac
paudirac / devices.js
Last active June 29, 2017 04:02
Mithril demonstration.
var m = require('mithril');
var devices = {};
devices.controller = function() {
let url = "http://localhost:8989/devices";
return {
devices: m.request({method: "GET", url: url }),
remove: function(name) {
return m.request({ method: "DELETE", url: `${url}/${name}` });
}
anonymous
anonymous / -
Created May 1, 2015 15:30
asdfasdf