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 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); | |
}, | |
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
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) |
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
solution :myapp do | |
cloud :db do | |
mysql :master => 1, :max_slaves => 4 | |
end | |
cloud :web do | |
rails ... | |
nginx ... | |
end | |
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
$ 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: |
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
"use strict"; | |
var Cylon = require("cylon"); | |
Cylon.api("http", {host: "0.0.0.0", ssl: false}); | |
var Green = 0x0000FF, | |
Red = 0xFF0000; | |
var bots = { |
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 Cylon = require("cylon"); | |
Cylon.robot({ | |
name: "test", | |
connections: { | |
loopback: { adaptor: "loopback" } | |
}, | |
devices: { |
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
"use strict"; | |
var Cylon = require("cylon"); | |
// ensure you install the API plugin first: | |
// $ npm install cylon-api-http | |
Cylon.api(); | |
Cylon.robot({ | |
name: "test", |
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
"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', |
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
package main | |
import ( | |
"time" | |
"fmt" | |
"github.com/hybridgroup/gobot" | |
"github.com/hybridgroup/gobot/platforms/firmata" | |
"github.com/hybridgroup/gobot/platforms/gpio" | |
) |
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
Data: { delta: 1578240, | |
theta: 14483712, | |
loAlpha: 3801088, | |
hiAlpha: 1507328, | |
loBeta: 3473408, | |
hiBeta: 2949120, | |
loGamma: 2031616, | |
midGamma: 10420233 } | |
Data: { delta: 1572864, | |
theta: 6094848, |