problem: existing JS interpeters take up too much RAM to run on tiny chips
solutions:
| 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 |
| { | |
| // 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 |
problem: existing JS interpeters take up too much RAM to run on tiny chips
solutions:
| 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); |
| 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 | |
| }) |
| # 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 tr = require('through2') | |
| function write(buffer, encoding, next) { | |
| try { | |
| this.push(buffer.toUpperCase()) //buffer needs .toString() | |
| } catch (e) { | |
| this.emit('error', e) | |
| } | |
| next() | |
| } |
Dear NodeSchoolers,
Hi!
I'm { Gareth: https://twitter.com/gyaresu }
I'll be one of the mentors helping out on International NodeBots day and I must say, I'm REALLY EXCITED!
Teaching is the best way to learn, and I love hanging out with people who are brave enough to learn new things. So thanks!
| { | |
| "plugins": [ | |
| "react" | |
| ], | |
| "ecmaFeatures": { | |
| "jsx": true | |
| }, | |
| // I want to use babel-eslint for parsing! | |
| "parser": "babel-eslint", | |
| "env": { |
Short version: I strongly do not recommend using any of these providers. You are, of course, free to use whatever you like. My TL;DR advice: Roll your own and use Algo or Streisand. For messaging & voice, use Signal. For increased anonymity, use Tor for desktop (though recognize that doing so may actually put you at greater risk), and Onion Browser for mobile.
This mini-rant came on the heels of an interesting twitter discussion: https://twitter.com/kennwhite/status/591074055018582016