Skip to content

Instantly share code, notes, and snippets.

View zankich's full-sized avatar

Adrian Zankich zankich

View GitHub Profile
adrian@Landstander:~/clutch$ rake spec:unit
/home/adrian/.rvm/gems/ruby-1.8.7-p370@clutch/gems/taskmapper-trac-0.6.0/lib/taskmapper-trac.rb:8: warning: already initialized constant VERIFY_PEER
BSON::BSON_CODER.update_max_bson_size is deprecated and now a no-op. It will be removed in v2.0.
./spec/unit/../../clutch.rb:94: undefined method `init' for KM:Class (NoMethodError)
from /home/adrian/.rvm/gems/ruby-1.8.7-p370@clutch/gems/sinatra-1.2.6/lib/sinatra/base.rb:1211:in `configure'
from (__DELEGATE__):3:in `send'
from (__DELEGATE__):3:in `configure'
from ./spec/unit/../../clutch.rb:58
from ./spec/unit/unit_spec_helper.rb:2:in `require'
from ./spec/unit/unit_spec_helper.rb:2
class Game
def initialize()
@score = 0
@frame = []
@frame_number = 0
@first = true
end
def roll(number_of_pins)
if @first
@frame.push(number_of_pins)
class CodeBreaker
def evaluate_guess(colors)
[]
end
end
# run this script when your beaglebone black is connected to your computer through the usb port in order to ssh
# the root password is 'artoo'
#!/bin/bash
bbb="192.168.15.1"
host="192.168.15.2"
sudo ifconfig usb0 $host
# Configure IP forwarding on HOST
sudo iptables -A POSTROUTING -t nat -j MASQUERADE
#!/bin/sh
git filter-branch --env-filter '
an="$GIT_AUTHOR_NAME"
am="$GIT_AUTHOR_EMAIL"
cn="$GIT_COMMITTER_NAME"
cm="$GIT_COMMITTER_EMAIL"
if [ "$GIT_COMMITTER_EMAIL" = "your@email.to.match" ]
@zankich
zankich / bbb_ubuntu.md
Last active August 29, 2015 13:57
Beaglebone Black Ubuntu 13.10 Install instructions

####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

####Arduino blink

//blink.js
var Cylon = require('cylon');

####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');
@zankich
zankich / main.go
Last active August 29, 2015 13:58
Exported/Unexported functions and fields
Your project layout should be
./main.go
./myProject/myProject.go
then run the program with
$ go run main.go
If you comment out lines 11 and 12 of main.go, then the program will execute correctly
package main
import (
"github.com/hybridgroup/gobot"
"github.com/hybridgroup/gobot-firmata"
"github.com/hybridgroup/gobot-gpio"
"github.com/hybridgroup/gobot-sphero"
"time"
)