Skip to content

Instantly share code, notes, and snippets.

View deadprogram's full-sized avatar
💭
Currently available for work. Let's talk!

Ron Evans deadprogram

💭
Currently available for work. Let's talk!
View GitHub Profile
@deadprogram
deadprogram / Gemfile
Last active December 20, 2015 07:29
Artoo driving a Sphero using a Pebble
source "http://rubygems.org"
gem 'artoo', '~> 1.0.0.rc3'
gem 'artoo-sphero', '~> 1.0.0.rc2'
gem 'artoo-pebble', '~> 1.0.0.rc2'
gem 'foreman'
@deadprogram
deadprogram / Gemfile
Last active April 10, 2026 21:31
AT&T Developer Program - Example OAuth2 Ruby Client
source :rubygems
gem 'rack', "~> 1.3.6"
gem 'sinatra'
gem 'json'
gem 'oauth2'
require 'artoo'
connection :sphero, :adaptor => :sphero, :port => '127.0.0.1:4560'
device :sphero, :driver => :sphero
def contact(*args)
@contacts ||= 0
@contacts += 1
puts "Contact #{@contacts}"
end
@deadprogram
deadprogram / gist:5558767
Last active December 17, 2015 05:38
Difference encountered between Minitest 4.6 -> Minitest 5.0 and must_be_kind_of and Mocha
@robot.default_connection.adaptor.class.must_equal Artoo::Adaptors::Loopback # => true like expected
@robot.default_connection.adaptor.must_be_kind_of Artoo::Adaptors::Loopback # => throws error like:
NoMethodError: undefined method `assert_kind_of' for nil:NilClass
(eval):8:in `must_be_kind_of'
1) Error:
Artoo::Connection#test_0001_Artoo::Connection#connect:
NoMethodError: undefined method `assert_kind_of' for nil:NilClass
(eval):8:in `must_be_kind_of'
/home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/calls.rb:25:in `public_send'
/home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/calls.rb:25:in `dispatch'
/home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/calls.rb:67:in `dispatch'
/home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/actor.rb:328:in `block in handle_message'
/home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/tasks.rb:42:in `block in initialize'
/home/ron/.rvm/gems/ruby-2.0.0-p0@artoo/gems/celluloid-0.14.0/lib/celluloid/tasks/task_fiber.rb:9:in `block in create'
########################################################
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
LIRCD_ARGS="--uinput"
# Don't start lircmd even if there seems to be a good config file
# START_LIRCMD=false
# Don't start irexec, even if a good config file seems to exist.
$ CC=/usr/bin/gcc rvm install rbx --debug
rbx - install
Searching for binary rubies, this might take some time.
Remote file does not exist https://rvm.io/binaries/osx/10.6/i386/rbx-head.tar.bz2
Remote file does not exist http://jruby.org.s3.amazonaws.com/downloads/rbx-head.tar.bz2
Remote file does not exist http://binaries.rubini.us/osx/10.6/i386/rbx-head.tar.bz2
rvm_remote_server_url3 not found
No remote file name found
No binary rubies available for: osx/10.6/i386/rbx-head.
Continuing with compilation. Please read 'rvm mount' to get more information on binary rubies.
$ rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11525 100 11525 0 0 7751 0 0:00:01 0:00:01 --:--:-- 92943
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1619k 100 1619k 0 0 233k 0 0:00:06 0:00:06 --:--:-- 388k
Upgrading the RVM installation in /Users/ron/.rvm/
$ cat /Users/ron/.rvm/log/rbx-head/configure.log
[2013-02-26 14:44:39] env
current path: /Users/ron/.rvm/src/rbx-head
command(8): env /Users/ron/.rvm/wrappers/ruby-1.9.2-p180/ruby ./configure --prefix=/Users/ron/.rvm/rubies/rbx-head --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --with-gcc=clang --without-tcl --without-tk
Usage: configure [options]
Configure settings
--log-file NAME Write log to file NAME
--rake NAME Use NAME as 'rake' during build
--tar NAME Use NAME as 'tar'
ron@Ron-Evanss-MacBook-Pro ~
$ rvm get head
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11525 100 11525 0 0 11317 0 0:00:01 0:00:01 --:--:-- 220k
Downloading RVM from wayneeseguin branch master
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1619k 100 1619k 0 0 353k 0 0:00:04 0:00:04 --:--:-- 520k