Skip to content

Instantly share code, notes, and snippets.

Avatar

Damon Oehlman DamonOehlman

View GitHub Profile
@DamonOehlman
DamonOehlman / README.md
Last active Aug 29, 2015
Research for building an Message Bus Centric Application using Node
View README.md

Message Bus App Architecture

This is some research focused around looking for node modules that support the development of an application that makes heavy use of a central message bus for cross component communication. The process for identifying potential components was simply to start by looking for packages that depend node the node-redis module, as at this this stage we see redis being the mechanism for powering the bus.

Potential Components

MQTT Centric

@DamonOehlman
DamonOehlman / default.conf
Created Apr 17, 2014
Simple nginx configuration for proxying HTTPS traffic to a local port
View default.conf
server {
listen 443;
server_name localhost;
root html;
index index.html index.htm;
ssl on;
ssl_certificate server.crt;
ssl_certificate_key server.key;
View index.js
var quickconnect = require('rtc-quickconnect');
var media = require('rtc-media');
var crel = require('crel');
// create containers for our local and remote video
var local = crel('div', { class: 'local' });
var remote = crel('div', { class: 'remote' });
var media
var peerMedia = {};
View index.js
// require the media capture helper from rtc.io
var media = require('rtc-media');
// capture the local media, letting rtc-media know it can use
// the temasys plugin
var localMedia = media({
plugins: [
require('rtc-plugin-temasys')
]
});
View offset-minkowski-surface-nets.js
var Polygon = require('polygon');
var fc = require('fc');
var Vec2 = require('vec2');
var ndarray = require('ndarray');
var sn = require('surface-nets');
var cwise = require('cwise');
var fill = require('ndarray-fill');
var poly = new Polygon([
@DamonOehlman
DamonOehlman / README.md
Created Jul 10, 2014
IN PROGRESS: Installation of node-webrtc on an Intel Galileo board
View README.md

I'm working from the Intel IOT Developer Kit as a starting point and created an SD image using the provided 200Mb zipped image:

http://iotdk.intel.com/images/iot-devkit-201402201605-mmcblkp0.direct.bz2

This can be installed onto an SD card through decompressing the file and using the dd utility. If you are unfamiliar with the process, then search around for some info as there is plenty out there on how to do this.

Set the Time

The baseline image for the Intel IOT Developer Kit does not include an ntp client so you will need to set this manually for the time being. The format is a little strange (MMDDhhmmYYYY.ss) so something like the following will work:

@DamonOehlman
DamonOehlman / README.md
Last active Aug 29, 2015
IN PROGRESS: Connecting Standard Components to LEGO Technic
@DamonOehlman
DamonOehlman / README.md
Created Aug 5, 2014
Ideas for getting WebRTC running on embedded devices
View README.md
View index.js
var screenshare = require('rtc-screenshare');
var media = require('rtc-media');
screenshare.window(function(err, constraints) {
if (err) {
return console.error('Could not capture window: ', err);
}
media(constraints).render(document.body);
});