Skip to content

Instantly share code, notes, and snippets.

View tauren's full-sized avatar

Tauren Mills tauren

View GitHub Profile
@tauren
tauren / webrtc.js
Created February 17, 2017 20:01
Using RxJS for WebRTC icecandidate handling via WebSocket signaling server
// Create WebRTC peer and setup event handlers
let peer = new RTCPeerConnection(iceConfig)
// Subject for the websocket signalling server
let socketSubject = Observable.webSocket({
// deserialize each binary message received
resultSelector: e => deserialize(e.data)
})
// Filter for only icecandidate messages
.filter(msg => msg && msg.header && msg.header.event === 'icecandidate' && msg.body && msg.body.candidate)
@tauren
tauren / neutrino-custom.js
Last active March 14, 2017 20:35
Neutrino customization script WIP
'use strict';
// TODO: Upgraded to neutrino@beta (v5). Make sure to upgrade to final release version
// which should be available mid March. Here are some links on what has changed and
// how to update old config to new:
// https://github.com/mozilla-neutrino/neutrino-dev/blob/v5.0.0-beta/docs/upgrading-neutrino.md
// https://github.com/mozilla-neutrino/neutrino-dev/pull/86#issue-211140309
const merge = require('deepmerge');
const webpack = require('webpack')

Keybase proof

I hereby claim:

  • I am tauren on github.
  • I am tauren (https://keybase.io/tauren) on keybase.
  • I have a public key ASB200ndWK4x0QjPxs9kLdZjlfhL5edNlQY4xJ8YyBByrwo

To claim this, I am signing this object:

Wide screen

Name Power Events Alerts Last Motion Watch Edit   Delete  
Camera 1 On   25     4 3 min ago [Play] [Edit] [Delete]
Camera 2 On   13     6 1 min ago   [Play] [Edit] [Delete]

Narrow screen

| Name | Power | Activity | Last Motion | Actions |