npm install johnny-five
- Plug in Logitech Gamepad to linux laptop
- plug in tinyduino with lightring shield.
- run
sudo node move.js
- move the gamepad to see lights move.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// /srv/www/ivarvong.com/public_html/allenhall/timelapse | |
var util = require('util') | |
, exec = require('child_process').exec | |
, child; | |
function pad(num) { | |
if (num < 10) { | |
return "0" + num; | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "rakeup", | |
"version": "0.0.1", | |
"author": "Fabrizio Codello", | |
"engines": { | |
"node": "0.6.x" | |
}, | |
"private": true, | |
"dependencies": { | |
"http-agent": "0.1.x", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var msg = JSON.stringify( state ); | |
var getUTF8Size = function( str ) { | |
var sizeInBytes = str.split('') | |
.map(function( ch ) { | |
return ch.charCodeAt(0); | |
}).map(function( uchar ) { | |
// The reason for this is explained later in | |
// the section “An Aside on Text Encodings” | |
return uchar < 128 ? 1 : 2; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Reads accel data and logs to serial. then flashes lights. When x is level, it goes faster. | |
#include <Wire.h> | |
#define BMA250_I2CADDR 0x18 | |
#define BMA250_RANGE 0x03 // 0x03 = 2g, 0x05 = 4g, 0x08 = 8g, 0x0C = 16g | |
#define BMA250_BW 0x08 // 7.81Hz (update time of 64ms) | |
int AccelX; | |
int AccelY; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Tabella | |
@SERVER@-@DATABASE@-@TABLE@-%Y%m%d-%H%M%S | |
Database | |
@SERVER@-@DATABASE@-%Y%m%d-%H%M%S | |
Server | |
@SERVER@-%Y%m%d-%H%M%S |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
CMD="$1" | |
RATE="$2" | |
DELAY="$3" | |
if [ "$RATE" = "" ] ; then | |
RATE=500 | |
fi | |
if [ "$DELAY" = "" ] ; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* @file | |
* Contains \Drupal\example_module\Controller\ExampleModuleController. | |
*/ | |
// THIS FILE BELONGS AT /example_module/src/Controller/ExampleModuleController.php | |
namespace Drupal\example_module\Controller; |
IMPORTANT! Remember to check out the wiki page at https://github.com/bebraw/jswiki/wiki/Game-Engines for the most up to date version. There's also a "notes" column in the table but it simply does not fit there... Check out the raw version to see it.
This table contains primarily HTML5 based game engines and frameworks. You might also want to check out these pages: [[Feature Matrix|Game-Engine-Feature-Matrix]], [[Game Resources]].
Name | Latest Release | Size (KB) | License | Type | Unit Tests | Docs | Repository | Notes |
---|---|---|---|---|---|---|---|---|
ActionJS | no | github | AS3 like in Javascript | |||||
Akihabara | 1.3.1 (2011/05) | 453 | GPL2, MIT | Classic Repro | no | API | github | Inten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2012 Sindre Sorhus <http://sindresorhus.com> | |
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 |
OlderNewer