Installing nvm:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
- Restart terminal
- Install & use latest:
nvm install node && nvm use node
Installing python 2:
sudo apt install python-minimal
Installing nvm:
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install node && nvm use node
Installing python 2:
sudo apt install python-minimal
This document is research for the selection of a communication platform for robot-net.
The purpose of this component is to enable rapid, reliable, and elegant communication between the various nodes of the network, including controllers, sensors, and actuators (robot drivers). It will act as the core of robot-net to create a standardized infrastructure for robot control.
Requirements:
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Jed Schmidt <http://jed.is> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
const ListComponentMap = L => C => M => Ch => (<div>{ | |
( typeof L === 'number' ? | |
((L) => { | |
let arr = new Array(L); | |
for (let k = 0; k < arr.length; k++) (arr[k] = k + 1); | |
return arr; })(L) | |
: L ) | |
.map((i, n) => | |
<C key={n} {...typeof M === 'function' ? M(i, n) : M }> | |
{typeof Ch === 'function' ? Ch(i, n) : Ch} |
Summary:
.set()
, .get()
, .has()
methodspbf
.toBuffer()
and .parseBuffer()
methodsReferences:
https://github.com/mapbox/pbf
https://developer.mozilla.org/en-US/docs/Web/API/Geolocation/getCurrentPosition
var options = {
enableHighAccuracy: true,
timeout: 5000,
maximumAge: 0
};
var n = new Notification('Connected', { body: 'Well done mate'} ); | |
setTimeout(() => n.close(), 3000); | |
Notification.permission; | |
Notification.requestPermission().then(console.log).catch(console.error); | |
// https://developer.mozilla.org/en-US/docs/Web/API/notification |
// only covers a small subset of the Map api! | |
// haven't debugged yet! | |
class BigMap { | |
constructor(iterable) { | |
if(iterable) throw new Error("haven't implemented construction with iterable yet"); | |
this._maps = [new Map()]; | |
this._perMapSizeLimit = 14000000; | |
this.size = 0; | |
} |