Skip to content

Instantly share code, notes, and snippets.

@petergerard
petergerard / keybase.md
Created May 3, 2018 02:25
keybase proof

Keybase proof

I hereby claim:

  • I am petergerard on github.
  • I am petergerard (https://keybase.io/petergerard) on keybase.
  • I have a public key ASCI6Kp2SGYD-ovg_qLNY149tQmT5XcW1eWuki6R0Jp7DQo

To claim this, I am signing this object:

Verifying I am +petergerard on my passcard. https://onename.com/petergerard
/*
* twitter-entities.js
* This function converts a tweet with "entity" metadata
* from plain text to linkified HTML.
*
* See the documentation here: http://dev.twitter.com/pages/tweet_entities
* Basically, add ?include_entities=true to your timeline call
*
* Based off existing code from Wade Simmons
* Licensed under the MIT license
@petergerard
petergerard / watermark.rb
Created February 25, 2011 05:50
paperclip_processor for watermarking that works with rails 3 and paperclip 2.3.8
# from http://github.com/ng/paperclip-watermarking-app
# with modifications from http://exviva.posterous.com/watermarking-images-with-rails-3-and-papercli
# and even more modifications to ensure works with paperclip 2.3.8 and rails 3.0.3
#
# Note: In rails 3 paperclip processors are not automatically loaded.
# You must add the following above your model class definition:
#
# require 'paperclip_processors/watermark'
module Paperclip