Problems with current KR:
- Qt
- Manual builds
- Duplication
- Non-intuitive UI
- This gist has more
pool :poolpartyrb do | |
plugin_directory "plugins" | |
cloud :app do | |
# Configuration | |
configure { :maximum_instances => 1, :keypair => "name" } | |
minimum_instances 1 | |
<list-entries type="array"> | |
<list-entry> | |
<created-at type="datetime"> | |
2008-11-07T19:39:42+00:00 | |
</created-at> | |
<created-by-id type="integer"> | |
9 | |
</created-by-id> | |
<domain> | |
cnn.com |
#!/usr/bin/env ruby | |
def pop; $stack.pop || raise(StackUnderflow); end | |
def push(expression); $stack << expression; end | |
def unary; -> { push(yield pop) }; end | |
def binary; -> { push(yield pop, pop) }; end | |
def unary_boolean; -> { push(if yield pop then 1 else 0 end) }; end | |
def binary_boolean; -> { push(if yield pop, pop then 1 else 0 end) }; end | |
def swap; $stack[-2,2] = $stack[-2,2].reverse; end | |
$stack = [] |
Problems with current KR:
####Installation instructions
$ npm install cylon cylon-gpio cylon-i2c cylon-firmata cylon-sphero cylon-leapmotion
####Arduino blink
//blink.js
var Cylon = require('cylon');
/* | |
* 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: 'sphero', adaptor: 'sphero', port: '/dev/tty.Sphero-YBW-RN-SPP' }, | |
device: { name: 'sphero', driver: 'sphero' }, | |
setColor: function(color) { | |
my.sphero.setColor(color); | |
}, | |
var Cylon = require('cylon'); | |
Cylon.api({ | |
host: '0.0.0.0', | |
port: '7000', | |
ssl: false | |
}); | |
Cylon.robot({ | |
name: 'drenerdo', |
First go to the Gobot Intel Edison Readme (https://github.com/hybridgroup/gobot/tree/master/platforms/intel-iot/edison#how-to-install) and follow the getting started guide. Your Edison has already been updated to the latest firmware version,
so you can skip that part! You will not need to download the Intel XDK, you only need to go through the steps detailing how to connect through the serial interface and then configure your edison.
Find the box called "Base Shield" and open that up and place the grove "Base Shield" onto your Intel Edison. This will allow you to use the Grove connectors shields and cables!
#!/bin/bash | |
# | |
# run this script on your linux host computer to connect to the bbb and forward your internet. | |
# be sure to replace "enp0s20u1" with the appropriate usb device for your bbb, which can be found | |
# by doing an "ifconfig" on your host computer. | |
# | |
sudo -- sh -c 'echo 1 > /proc/sys/net/ipv4/ip_forward' | |
sudo iptables -A POSTROUTING -t nat -j MASQUERADE |