Skip to content

Instantly share code, notes, and snippets.

View reidab's full-sized avatar
🚠

Reid Beels reidab

🚠
View GitHub Profile

Keybase proof

I hereby claim:

  • I am reidab on github.
  • I am reidab (https://keybase.io/reidab) on keybase.
  • I have a public key whose fingerprint is B95E D99C FA32 5789 E8A5 11C7 7C70 8F08 C58D 1328

To claim this, I am signing this object:

# require 'rubygems'
# require 'fastercsv'
require 'csv'
ATTENDEE_CSV = 'Attendees.csv'
BADGE_CSV_OUTPUT = 'Badges.csv'
AttendeeStruct = Struct.new(:first_name,
:last_name,
:company,
@reidab
reidab / ocw_routes
Created August 21, 2014 00:54
The output of `rake routes` for OpenConferenceWare
Routes for OpenConferenceWare::Engine:
sign_in GET /sign_in(.:format) open_conference_ware/authentications#sign_in
sign_out GET /sign_out(.:format) open_conference_ware/authentications#sign_out
/auth/:provider/callback(.:format) open_conference_ware/authentications#create
auth_failure GET /auth/failure(.:format) open_conference_ware/authentications#failure
authentications POST /authentications(.:format) open_conference_ware/authentications#create
speakers_event GET /events/:id/speakers(.:format) open_conference_ware/events#speakers
stats_event_proposals GET /events/:event_id/proposals/stats(.:format) open_conference_ware/proposals#stats
event_proposals GET /events/:event_id/proposals(.:format) open_conference

Keybase proof

I hereby claim:

  • I am reidab on github.
  • I am reidab (https://keybase.io/reidab) on keybase.
  • I have a public key whose fingerprint is 8948 5DCA D6CA A1C8 A540 0E25 ED1F 4391 D763 A47D

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@reidab
reidab / tab.sh
Created January 3, 2009 01:27
A simple bash/applescript combo to open a new terminal tab in the current directory.
#!/bin/bash
osascript \
-e 'tell application "Terminal" to activate' \
-e 'tell application "System Events" to tell process "Terminal"' \
-e 'keystroke "t" using command down' \
-e "keystroke \"cd `pwd`\nclear\n\"" \
-e 'end tell'
# I'm typing out the cd command using system events because I use visor and it doesn't play nicely with window IDs
# if you're not using visor, you should be able to get away with using
class Eggplant
def initialize
@eaten = false
end
def eat
if @eaten
puts "You have already eaten this."
else
puts "OM NOM NOM."
@reidab
reidab / gist:98009
Created April 19, 2009 10:12
Exports issues from a Google Code project.
require 'open-uri'
require 'csv'
require 'rubygems'
require 'hpricot'
module GoogleCode
class IssueReader
DEBUG = true
CSV_COLUMNS = %w(ID Type Component Status Priority Summary Modified Milestone Owner Stars Opened Closed BlockedOn Blocking Blocked MergedInto Reporter Cc)
@reidab
reidab / import_imap_registrations.rb
Created April 19, 2009 05:40
Parses new registration emails for Open Source Bridge and adds attendees to a Campaign Monitor list
require 'net/imap'
require 'rubygems'
require 'hpricot'
require 'yaml'
require 'campaign_monitor'
require 'facets/enumerable/mash'
require 'facets/file/write'
CAMPAIGN_MONITOR_API_KEY = ''
@reidab
reidab / require_fight.rb
Created May 4, 2009 04:25
Popularity contest for things being required in ruby code (and gems being config'd in rails projects)
require 'rubygems'
require 'hpricot'
require 'open-uri'
required_things = Hash.new(0)
['require','config.gem'].each do |require_type|
counter = 1
while counter < 1000 do