Note: I've split these libraries along functional/reactive lines, but that's merely for convenience. The FRP libraries are more or less functional by definition.
/* | |
A quick demo of the power of the `reduce()` higher-order function. | |
In this demo, `reduce()` has been used to replicate several of its | |
higher-order cousins: `map()`, `filter()`, and `find()`. The point is | |
to show that `reduce()` is a functional multi-tool. If you have | |
`reduce()``, you're on your way to some functional bliss. | |
For each example, the native version of the higher-order function is | |
shown before the reduce version. The native versions are much more |
I was trying to get the Arduino IDE to work inside a Docker container on OS X. I was able to get the IDE working (see Getting X11 GUI applications to work on OS X with Docker), but I could not figure out how to make the USB port for the Arduino visible.
I first tried to directly map hardware serial port into the Docker container, doing something like this:
https://www.opencontainers.org/
- App Container (appc) spec
- rkt — run app containers on Linux. Ref implementation for appc
- Johnny 5 — JavaScript robotics, for both host-based and on-device programming
These three projects are related, offering similar APIs and platform support across multiple languages. The Go version is getting active updates. The JavaScript and Ruby versions havent seen updates in quite a while.
The bridge has a UART serial port interface that can be used to access the console. This serial port is the key to accessing the bridge and making our own changes.
The serial interface is a simple, three-pin port on the bridge. To access it, you have to remove the bridge's case. Looking at the top surface of the bridge circuit board (the side with all of the chips on it), you'll see the word Serial and a box stenciled around three holes to the right and above the Ethernet port.
The pinout for the serial port is, from left to right: RX, TX, Ground.
nestat -lntu
list open TCP & UDP ports
cat /dev/null > ~/.bash_history && history -cw && exit
completely erase command history and exit current shell (logout)
who && ps -dN | grep pts/
and kill -9 [pid]