Skip to content

Instantly share code, notes, and snippets.

View mdobson's full-sized avatar
😺
Petting a cat

Matthew Dobson mdobson

😺
Petting a cat
View GitHub Profile
[
{
"id": "1234567890",
"displayName": "abc123",
"created":"1481917061",
"updated":"1481917061",
"createdBy":"mdobs",
"updatedBy":"mdobs",
"scopeId": "ABCDEF",
"uri": "file:///tmp/F1ERRO/0c9853d1ad9b7ec9f7d16ed16ada1be4/archive/369a01f320f926cd8ffac5dfda83b1d8a2129ab3.zip",
scopes:
  3cef180d:
    proxies:
      edgemicro_hello:
        revision: '15'
        proxy_name: 'default'
        base_path: '/iloveapis'
        target_name: 'default'
        url: 'http://mocktarget.apigee.net/'
var util = require('util');
var zetta = require('zetta');
var DeviceRegistry = module.exports = function(path) {
zetta.DeviceRegistry.call(this, { path: path, collection: 'devices' });
};
util.inherits(DeviceRegistry, zetta.DeviceRegistry);
@mdobson
mdobson / app.js
Last active August 29, 2015 14:07 — forked from 13protons/app.js
module.exports = function(server) {
var buttonQuery = server.where({type: 'button'});
server.observe([buttonQuery], function(button){
button.on('click', function(b){
//This will log undefined because there are no inputs to this transition
//You can use dot notation to access properties on devices
//console.log(b);
console.log(button.b);
<alps version="1.0">
<link rel="help" href="https://github.com/RESTFest/2014-Greenville/wiki/Hack%20Day" />
<!-- semantic descriptors (data elements) -->
<descriptor id="todo" type="semantic">
<descriptor id="id" type="semantic" />
<descriptor id="Title" type="semantic" />
<descriptor id="DateDue" type="semantic" />
<descriptor id="Notes" type="semantic" />
<descriptor id="dateCreated" type="semantic" />
@mdobson
mdobson / setup-statsd.sh
Created September 14, 2012 12:39 — forked from jasonroelofs/setup-statsd.sh
Turn an Ubuntu 10.10 EC2 into a StatsD/Graphite server
# install git
sudo apt-get install g++ curl libssl-dev apache2-utils
sudo apt-get install git-core
# download the Node source, compile and install it
git clone https://github.com/joyent/node.git
cd node
./configure
make
sudo make install
# install the Node package manager for later use
@mdobson
mdobson / gist:3148039
Created July 20, 2012 01:14 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt