problem: existing JS interpeters take up too much RAM to run on tiny chips
solutions:
# Ubuntu 14.10 | |
uname -a | |
## Linux box 3.16.0-41-lowlatency #55-Ubuntu SMP PREEMPT Sun Jun 14 18:59:55 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux | |
cat /etc/issue | |
## Ubuntu 14.10 \n \l | |
# Latest Docker development version | |
docker -v | |
## Docker version 1.7.0-dev, build 6a7a757 |
var five = require('johnny-five') | |
var board = new five.Board() | |
board.on('ready', function () { | |
var servo = new five.Servo(9) | |
board.repl.inject({ | |
servo: servo | |
}) |
var sys = require("sys"); | |
var exec = require('child_process').exec; | |
var five = require('johnny-five'); | |
var board = new five.Board(); | |
function puts(err, stdout, stderr) { sys.puts(stdout) }; | |
board.on('ready', function() { | |
console.log("board ready"); | |
var button = new five.Button(5); |
problem: existing JS interpeters take up too much RAM to run on tiny chips
solutions:
{ | |
// http://eslint.org/docs/rules/ | |
"ecmaFeatures": { | |
"arrowFunctions": false, // enable arrow functions | |
"binaryLiterals": false, // enable binary literals | |
"blockBindings": false, // enable let and const (aka block bindings) | |
"classes": false, // enable classes | |
"defaultParams": false, // enable default function parameters | |
"destructuring": false, // enable destructuring |
function component(fn){ | |
class C extends React.Component { | |
render(){ | |
return fn(this.props, this.context) | |
} | |
} | |
C.displayName = fn.displayName || fn.name | |
C.propTypes = fn.propTypes | |
C.contextTypes = fn.contextTypes | |
return C |
import React from 'react'; | |
function animateIn(Component){ | |
return class DecoratedComponent extends React.Component { | |
componentWillEnter(){ | |
// Do some swanky animation | |
} | |
render(){ | |
// Inherit all props |
Vegas is the last place I ever expected to visit. And yet, I wound up tucking myself into the corner of the Wireless Village for three days, absorbing excellent talks on the state of wireless hackery. Though I hadn't planned to try any of the challenges, I got drawn into @dntlookbehindu's (aka Russ) "SDR Roulette".
Russ purchased a dog collar to analyze the wireless communication between remote
<?xml version='1.0' encoding='utf-8'?> | |
<?grc format='1' created='3.7.8'?> | |
<flow_graph> | |
<timestamp>Tue Aug 25 19:04:21 2015</timestamp> | |
<block> | |
<key>options</key> | |
<param> | |
<key>author</key> | |
<value></value> | |
</param> |