Skip to content

Instantly share code, notes, and snippets.

@kineticac
Created August 25, 2009 06:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kineticac/174515 to your computer and use it in GitHub Desktop.
Save kineticac/174515 to your computer and use it in GitHub Desktop.
- begin
- bitly = Bitly.new(BITLY_USERNAME, BITLY_API_KEY)
- url = bitly.shorten(fb_feud_link)
- short_url = url.short_url
- rescue
- short_url = fb_feud_link
- end
+ short_url = fb_feud_link
- bitly = Bitly.new(BITLY_USERNAME, BITLY_API_KEY)
+ # bitly = Bitly.new(BITLY_USERNAME, BITLY_API_KEY)
a_photo_link = request.protocol + request.host + port + feud.a_photo.url(:thumb)
b_photo_link = request.protocol + request.host + port + feud.b_photo.url(:thumb)
- a_photo_link = bitly.shorten(a_photo_link).short_url
- b_photo_link = bitly.shorten(b_photo_link).short_url
+ # a_photo_link = bitly.shorten(a_photo_link).short_url
+ # b_photo_link = bitly.shorten(b_photo_link).short_url
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment