Skip to content

Instantly share code, notes, and snippets.

@aurman
aurman / streaming.js
Created November 3, 2015 04:44
streaming.js
var http = require('http');
var https = require('https');
var path = require('path');
var express = require('express');
var cookieParser = require('cookie-parser');
var bodyParser = require('body-parser');
var passport = require('passport');
var NestStrategy = require('passport-nest').Strategy;
var session = require('express-session');
@aurman
aurman / exhalr.groovy
Created September 18, 2014 17:33
Exhalr Device Type Code
metadata {
// Automatically generated. Make future change here.
definition (name: "Exhalr", namespace: "smartthings", author: "SmartThings") {
capability "Actuator"
capability "Switch"
capability "Sensor"
}
// Simulator metadata
simulator {
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug PresenceSensors/subscriptions
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug contactSensors/subscriptions
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug motionSensors Deleted
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug motionSensors added
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug switches added
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug PresenceSensors/subscriptions
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug contactSensors/subscriptions
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug motionSensors Deleted
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug motionSensors added
2e940b50-3f76-432d-bad1-77730c40e01c 10:28:55 AM: debug switches added
@aurman
aurman / wireless-3-way.groovy
Created March 4, 2014 22:22
Wireless 3-Way
/**
* App Name: Wireless 3-Way
*
* Author: chrisb
* Date: 2013-07-16
*
* This app "groups" a set of switches together so that if any one is turned on
* or off, they all will go on or off. This allows them to act as three-way
* without needing wiring between the switches.
*