Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
Recent releases have been pre-built using cross-compilers and this script and are downloadable below.
If you have found these packages useful, give me a shout out on twitter: @adammw
Open Apple menu -> System Preferences -> Bluetooth and disable Bluetooth on Mac as well as any other nearby Macs or devices which will try to pair with and confuse the controller.
Reset PS3 controller by inserting paperclip into pinhole near L2 button.
Connect PS3 controller to Mac with USB cable.
Enable Bluetooth.
These instructions should be deprecated at this point. | |
Start following https://github.com/TooTallNate/node/tree/pi for a more straightforward node installation on the pi. | |
---- | |
These instructions work for the Raspberry Pi running Raspbian (hard float), and include a working NPM: | |
1. Install Raspbian - http://www.raspbian.org/PiscesImages |
If you prefer VirtualBox or aren't running OS X, here are some instructions and a script to help you get started with SmartOS under VirtualBox. If you use VirtualBox, skip the first section and read the section on how to get the Node.js SmartMachine up and running.
The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Wed, 21 Sep 2022 till Thu, 21 Sep 2023.
Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:
githubUsers
.filter(user => user.followers > 1000)
/* | |
In a child process, each of the stdio streams may be set to | |
one of the following: | |
1. A new file descriptor in the child, dup2'ed to the parent and | |
exposed to JS as a Stream object. | |
2. A copy of a file descriptor from the parent, with no other | |
added magical stuff. | |
3. A black hole - no pipe created. |
var sio = require('socket.io-client'); | |
var socket = sio.connect('http://play.codestre.am/?id=' + '3Y'); | |
console.log('connecting...'); | |
socket.on('connect', function () { | |
console.log('connected.'); | |
}); | |
socket.on("frames", function (frames) { | |
process.stdout.write("\x1b[2J\x1b[1;1H"); | |
var loop = function () { |
var fg = { | |
30: 'fg-black' | |
, 31: 'fg-red' | |
, 32: 'fg-green' | |
, 33: 'fg-yellow' | |
, 34: 'fg-blue' | |
, 35: 'fg-magenta' | |
, 36: 'fg-cyan' | |
, 37: 'fg-white' |
var FS = require('fs'); | |
var EventEmitter = require('events').EventEmitter; | |
// http://www.mjmwired.net/kernel/Documentation/input/joystick-api.txt | |
function parse(buffer) { | |
var event = { | |
time: buffer.readUInt32LE(0), | |
number: buffer[7], | |
value: buffer.readInt16LE(4) | |
} |