Skip to content

Instantly share code, notes, and snippets.

View deadprogram's full-sized avatar
💭
Upcoming availability for work.

Ron Evans deadprogram

💭
Upcoming availability for work.
View GitHub Profile
@deadprogram
deadprogram / 1_sphero_color.rb
Created February 7, 2014 16:28
Artoo example code for the LARubyConf 2013 Robot Hackathon
require 'artoo'
connection :sphero, :adaptor => :sphero, :port => '127.0.0.1:4560'
device :sphero, :driver => :sphero
work do
every(3.seconds) do
if @color == :green
@color = :blue
else

Insert cool title here...

Problems with current KR:

Backend stuff

@deadprogram
deadprogram / README.md
Last active August 29, 2015 13:56
Test Driver Robotics with Cylon.js

How to install:

You will need to be using the HEAD of the 'tdr' branch of Cylon.js itself.

sudo npm install sinon-chai -g
sudo npm install mocha -g
npm install cylon-firmata

####Installation instructions

  • You will need node.js as well as satisfying the dependencies listed here
  • Once you have the required dependencies met, you can install the required node modules with
    $ npm install cylon cylon-gpio cylon-i2c cylon-firmata cylon-sphero cylon-leapmotion
  • Install the leap motion software (and SDK too if you want, but the SDK is not needed for cylon.js)

####Arduino blink

//blink.js
var Cylon = require('cylon');
var Cylon = require('cylon');
Cylon.robot({
connection: {
name: 'voodoospark',
adaptor: 'voodoospark',
accessToken: 'XXX',
deviceId: 'YYY',
module: 'spark'
},
/*
* Firmata is a generic protocol for communicating with microcontrollers
* from software on a host computer. It is intended to work with
* any host computer software package.
*
* To download a host software package, please clink on the following link
* to open the download page in your default browser.
*
* http://firmata.org/wiki/Download
*/
var Cylon = require('cylon');
Cylon.robot({
connection: [{ name: 'rapiro', adaptor: 'rapiro', port: '/dev/ttyAMA0' },
{ name: 'speech', adaptor: 'speech', voice: 'en-f3' }],
devices: [{name: 'rapiro', driver: 'rapiro', connection: 'rapiro'},
{name: 'mouth', driver: 'speech', connection: 'speech'}],
work: function(my) {
var walking = false ;
=begin rdoc
PoolParty plugin to install and configure mysql on any instance designated as a database instance.
Written by Ron Evans (http://deadprogrammersociety.com)
Features of the current plugin:
- Installs current Mysql
- Does live database backup to S3 once every hour
- If the instance goes down, will automatically bring up another one, and restore latest backup
ron-evanss-macbook-pro-15:mysql-plugin-test-app ron$ pool -v start
-- PoolParty cloud: MySql Plugin Test App
On ami-4bb05422
Minimum instances: 1
Maximum instances: 4
Polling every: 30.seconds
Keypair: mysql-test
Access key: 0CT2X9HAFADR370JWN02
size: m1.small
Monitors available: