Skip to content

Instantly share code, notes, and snippets.

View bmalloy's full-sized avatar

Brendan Malloy bmalloy

  • ibstudios
  • United States
View GitHub Profile
@chrismdp
chrismdp / gist:2768532
Created May 22, 2012 11:40
Paypal IPN integration in about 30 lines of Sinatra.
diff --git a/app/account.rb b/app/account.rb
index a108685..c89ad34 100644
--- a/app/account.rb
+++ b/app/account.rb
@@ -1,4 +1,22 @@
+require 'open-uri'
+
module Sol
+ class Url
+ def self.get(url)