Skip to content

Instantly share code, notes, and snippets.

Avatar

Baby Goat mikeyb

View GitHub Profile
@paudirac
paudirac / devices.js
Last active Jun 29, 2017
Mithril demonstration.
View devices.js
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
View -
asdfasdf