Skip to content

Instantly share code, notes, and snippets.

View swifthand's full-sized avatar

Paul Kwiatkowski swifthand

  • GroupRaise.com
  • Houston, TX
View GitHub Profile
@swifthand
swifthand / !signet_oauth2_client_error.md
Last active August 29, 2015 14:18
Demonstration of error in signet gem's OAuth2 Client, wherein the client cannot consume the authorization_uri values it produces. Runs against the current version of the signet gem (0.6.0 at time of writing).

Demonstration of error in signet gem's OAuth2 Client, wherein the client cannot consume the authorization_uri values it produces. Error occurs when run against the current version of the signet gem (0.6.0 at time of writing).

To reproduce error:

$ bundle install
$ bundle exec ruby signet_oauth2_client_error.rb

Fix created and pull request issued. To demonstrate fix, update Gemfile line 3 to:

@swifthand
swifthand / organizer_fundraising_tips.rb
Created December 11, 2013 01:43
Polaroid Preview/Example.
class Emails::OrganizerFundraisingTips
include Polaroid.new(:rsvp_deadline, :meal_page_url)
attr_reader :event
def initialize(event)
@event = event
end
@swifthand
swifthand / midi.txt
Created September 26, 2012 01:15
Parse midi instrument id numbers into #defines for a C header file.
1 Acoustic Grand Piano 33 Acoustic Bass 65 Soprano Sax 97 Rain (FX 1)
2 Bright Acoustic Piano 34 Electric Bass (finger) 66 Alto Sax 98 Sound Track (FX 2)
3 Electric Grand Piano 35 Electric Bass (pick) 67 Tenor Sax 99 Crystal (FX 3)
4 Honky-tonk Piano 36 Fretless Bass 68 Baritone Sax 100 Atmosphere (FX 4)
5 Electric Piano 1 37 Slap Bass 1 69 Oboe 101 Brightness (FX 5)
6 Electric Piano 2 38 Slap Bass 2 70 English Horn 102 Goblins (FX 6)
7 Harpsichord 39 Synth Bass 1 71 Bassoon 103 Echoes (FX 7)
8 Clavi 40 Synth Bass 2 72 Clarinet 104 Sci-fi (FX 8)
9 Celesta 41 Violin 73 Piccolo 105 Sitar
10 Glockenspiel 42 Viola 74 Flute 106 Banjo
@swifthand
swifthand / full_map.html
Created September 19, 2012 09:40
Downloads and then pieces together the images from XKCD 1110 "Click and Drag", uses on Ruby 1.9.X and jQuery 1.8. Has not been tested in Internet Explorer :P
<!--
Happy exploring, Ladies n' Gents.
And props as always to Mr. Munroe for his fantastic comic.
- Paul Kwiatkowski
-->
<html lang="en">
<head>