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
$ rake gitnesse:info
/Users/ron/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/rake.rb:30: warning: already initialized constant RAKEVERSION
WARNING: Possible conflict with Rake extension: String#ext already exists
WARNING: Possible conflict with Rake extension: String#pathmap already exists
/Users/ron/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/rake.rb:402: warning: already initialized constant EMPTY_TASK_ARGS
/Users/ron/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/rake.rb:450: warning: already initialized constant EMPTY
/Users/ron/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/rake.rb:962: warning: already initialized constant RUBY
/Users/ron/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/rake.rb:1031: warning: already initialized constant LN_SUPPORTED
/Users/ron/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/rake.rb:1240: warning: already initialized constant ARRAY_METHODS
/Users/ron/.rvm/rubies/ruby-1.9.2-p320/lib/ruby/1.9.1/rake.rb:1243: warning: already initialized constant MUST_DEFINE
class WishList
include Enumerable
attr_accessor :wishes
def initialize
@wishes=[]
end
def each &block
@wishes.each_with_index {|item, index| block.call("#{index}, #{item}")}
$ bundle install
Using rake (0.8.7)
Using chunky_png (1.2.5)
Using fssm (0.2.7)
Using sass (3.1.12)
Using compass (0.11.5)
Using ffi (1.0.10)
Using thor (0.14.6)
Using guard (0.8.7)
Using guard-shell (0.1.1)
@deadprogram
deadprogram / gist:1870245
Created February 20, 2012 17:42
KidsCodeCamp Sample Event Description
We Want YOU For KidsCodeCamp!
Did you ever want to make a videogame, program a robot, or create a web site? Now you can!
Come to KidsCodeCamp, a free one-day event to learn how to use computers and technology to make things that do whatever you want.
KidsCodeCamp in PLACE will take place on DATE at YYY location from START TIME to END TIME.
Here is how it works:
1. Local volunteers will run classes intended for a particular age group (elementary, middle, or high-school age kids). Each class is from 1 to 2 hours long.
@deadprogram
deadprogram / forth.rb
Created January 15, 2012 20:02 — forked from krainboltgreene/forth.rb
Forth interpreter in 64 lines of Ruby
#!/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 = []
@deadprogram
deadprogram / Procfile
Created January 9, 2012 23:20
Python Sample Application for AT&T Alpha API Foundry
web: python hi.py
@deadprogram
deadprogram / Gemfile
Created January 9, 2012 03:24
Ruby Sample Application for AT&T Alpha API Foundry
source :rubygems
gem 'rack', "~> 1.3.6"
gem 'sinatra'
gem 'json'
gem 'oauth2'
@deadprogram
deadprogram / hello.js
Created January 9, 2012 03:14
Node.js Sample Application for AT&T Alpha API Foundry
var express = require('express');
var OAuth = require('oauth').OAuth2;
var app = express.createServer();
var _foundryConsumerKey = "YOURFOUNDRYKEY";
var _foundryConsumerSecret = "YOURFOUNDRYSECRET";
var _redirectUri = "http://hello-att-foundry-node.heroku.com/auth/callback";
var consumer = new OAuth(_foundryConsumerKey,
@deadprogram
deadprogram / Gemfile
Created January 5, 2012 05:18
Hello AT&T Foundry Service
source :rubygems
gem 'rack', "~> 1.3.6"
gem 'sinatra'
gem 'json'
gem 'omniauth'
gem 'omniauth-github'
ii appmenu-qt 0.1.2-0ubuntu1 appmenu support for Qt
ii libdbusmenu-qt2 0.8.2-0ubuntu2 a Qt library that implements the DBusMenu spec
ii libqt4-core 4:4.7.2-0ubuntu6 transitional package for Qt 4 core non-GUI runtime libraries
ii libqt4-dbus 4:4.7.2-0ubuntu6 Qt 4 D-Bus module
ii libqt4-declarative 4:4.7.2-0ubuntu6 Qt 4 Declarative module
ii libqt4-designer 4:4.7.2-0ubuntu6 Qt 4 designer module
ii libqt4-dev 4:4.7.2-0ubuntu6 Qt 4 development files
ii libqt4-help 4:4.7.2-0ubuntu6 Qt 4 help module
ii libqt4-network 4:4.7.2-0ubuntu6 Qt 4 network module
ii libqt4-ope