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
var Cylon = require('cylon');
Cylon.robot({
connection: { name: 'sphero', adaptor: 'sphero', port: '/dev/tty.Sphero-YBW-RN-SPP' },
device: { name: 'sphero', driver: 'sphero' },
setColor: function(color) {
my.sphero.setColor(color);
},
peripheral with UUID d03972a24e55 found
Manufacturer Data = 0005ffffffff643ed1
Service Data =
services and characteristics:
180a (Device Information)
2a23 (System ID)
properties read
value 554ea200007239d0 | 'UN"r9P'
2a26 (Firmware Revision String)
solution :myapp do
cloud :db do
mysql :master => 1, :max_slaves => 4
end
cloud :web do
rails ...
nginx ...
end
$ pool -v -i 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:
"use strict";
var Cylon = require("cylon");
Cylon.api("http", {host: "0.0.0.0", ssl: false});
var Green = 0x0000FF,
Red = 0xFF0000;
var bots = {
var Cylon = require("cylon");
Cylon.robot({
name: "test",
connections: {
loopback: { adaptor: "loopback" }
},
devices: {
"use strict";
var Cylon = require("cylon");
// ensure you install the API plugin first:
// $ npm install cylon-api-http
Cylon.api();
Cylon.robot({
name: "test",
"use strict";
var Cylon = require("cylon");
// ensure you install the API plugin first:
// $ npm install cylon-api-http
Cylon.api("http", {
host: "0.0.0.0", port: 3000, ssl: false,
auth: {
type: 'basic',
package main
import (
"time"
"fmt"
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot/platforms/firmata"
"github.com/hybridgroup/gobot/platforms/gpio"
)
Data: { delta: 1578240,
theta: 14483712,
loAlpha: 3801088,
hiAlpha: 1507328,
loBeta: 3473408,
hiBeta: 2949120,
loGamma: 2031616,
midGamma: 10420233 }
Data: { delta: 1572864,
theta: 6094848,