// 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') | |
] | |
}); |
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([ |
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.
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:
STATUS: In Progress
- http://www.chromium.org/chromium-os/developer-guide
- http://www.chromium.org/chromium-os/developer-guide/beaglebone
STATUS: Tried, Failed, Will Try Again
I hereby claim:
- I am damonoehlman on github.
- I am damon (https://keybase.io/damon) on keybase.
- I have a public key whose fingerprint is 1B42 BE6F C898 1A15 C4EC 60E8 C339 3670 6647 3070
To claim this, I am signing this object:
inputfiles = $(patsubst %.png,dist/%.pdf,$(wildcard *.png)) | |
rebuild: clean build | |
build: prepare $(inputfiles) postbuild | |
dist/%.pdf: | |
@convert $(patsubst dist/%.pdf,%.png,$@) tmp/$@ | |
@gs -dNOPAUSE -dBATCH -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -sOutputFile=$@ tmp/$@ | |
@rm tmp/$@ |
{ | |
"ignore": [ | |
"**/node_modules/**", | |
"**/dist/**", | |
"**/examples/**", | |
"**/test/**", | |
"**/Gruntfile.js", | |
"**/gulpfile.js" | |
] | |
} |
var COLORLIST = ['red', 'blue', 'yellow', 'green', 'pink']; | |
var h = require('hyperscript'); | |
function toggler(value) { | |
return function(evt) { | |
var currentColor = evt.target.innerText; | |
var currentIdx = COLORLIST.indexOf(currentColor); | |
console.log(currentIdx + ' ^ ' + value + ' = ' + (currentIdx ^ value)); | |
evt.target.innerText = COLORLIST[currentIdx ^ value]; |