- bundler
- aavkontakte
- AbsoluteRenamer
- accessible_attributes
- accumulators
- active_diigo
- activerecord-mysql2legacydb-adapter
- active_record_shards
- activerecord-simpledb-adapter
- activerecord-table_version
This file contains hidden or 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
#!/usr/bin/ruby | |
require 'fileutils' | |
require 'find' | |
usage_args = ['--usage', '--help', '-u', '-h'] | |
if ARGV.length.eql? 0 or ARGV.length.eql? 1 and usage_args.include? ARGV[0] | |
puts "Usage: #{__FILE__} string_to_strip [directory]" | |
exit 0 | |
end |
This file contains hidden or 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
require "rubygems" | |
require "rbench" | |
def single_quoted_string | |
'aaa' + 'bbb' | |
end | |
def double_quoted_string | |
"aaa" + "bbb" | |
end |
This file contains hidden or 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
require 'twitter' | |
user = "sferik" | |
query = /rimm/i | |
(1..16).each do |page| | |
Twitter.user_timeline(user, :page => page, :count => 200).each do |tweet| | |
puts tweet.id.to_s + ": " + tweet.text if query.match(tweet.text) | |
end | |
end |
This file contains hidden or 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
function for_each_ruby { | |
for ruby in `rvm list strings` | |
do | |
echo "rvm use $ruby; $1;" | |
done | |
} | |
default_gems=`cat ~/.rvm/gemsets/default.gems | tr '\n' ' '` | |
alias install_default_gems=`for_each_ruby "yes | gem install $default_gems"` | |
alias update_all_gems=`for_each_ruby "yes | gem update; yes | gem cleanup"` |
This file contains hidden or 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
class StatusesController < ApplicationController | |
before_filter :authenticate | |
def create | |
@tweet = Twitter.update(params[:text]) | |
end | |
private | |
def authenticate |
This file contains hidden or 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
#!/usr/bin/env ruby | |
require 'rubygems' | |
require 'rubygems/remote_fetcher' | |
file = "Marshal.#{Gem.marshal_version}.Z" | |
# uri = URI.parse "http://gems.rubyforge.org/#{file}" | |
# data = Gem::RemoteFetcher.fetcher.fetch_path uri | |
data = File.read(file) |
This file contains hidden or 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
Day Job: Fellow at Code for America | |
Open Source contribution: lots of gems: rails_admin, omniauth, multi_xml, multi_json, faraday, twitter, simple_oauth, oauth2, octokit, and many more. | |
Tell me about your experience with Ruby/Rails: I started using Rails in 2006, shortly after version 1 was released. I then switched to primarily using Merb in 2008 and released my first Open Source project on GitHub: MerbAdmin. I then switched back after Rails 3 was released and oversaw the porting of MerbAdmin to Rails 3 as a Ruby Summer of Code mentor. | |
How do you use GitHub: GitHub is my life. | |
Favorite luchador(es): I must confess, I know almost nothing about lucha libre. |
This file contains hidden or 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
source 'http://rubygems.org' | |
gem 'sinatra' | |
gem 'nokogiri' | |
gem 'multi_xml' | |
gem 'slim' |
- agilezen
- flexmls_api
- freckly
- gowalla
- gstock
- mad_mimi
- mlb
- octokit
- open311
- t