Instantly share code, notes, and snippets.

View facebook_registration.rb
background do
click_link_or_button 'Sign up with Facebook'
View devise.rb
# initializers/devise.rb
config.omniauth :facebook, [APP_ID], [APP_SECRET]
config.omniauth :facebook_app1, [APP_ID], [APP_SECRET], :iframe => true, :scope => 'publish_stream,offline_access,email'
config.omniauth :facebook_app2, [APP_ID], [APP_SECRET], :iframe => true, :scope => 'publish_stream,offline_access,email'
View 1.Gemfile
## See http://
gem 'base32-crockford', :require => 'base32/crockford'
View Vim tiny tutor
#Config is there
#Give a go to vimtutor in order to have a little overview of Vim.
#:w (save)
#:q (quit)
#:qa (quit all buffers)
#:q! (quit without saving)
#:wq (save and quit)
View gist:6070841
# To help me importing some CSV
# Using vim (to avoid eval hell)
# can we 'easily' move from something like
# To something like
legacy_venue_id = row[0]
venue_name = row[1]
View Gemfile
gem 'resque', '>= 1.10.0'
gem 'heroku' # You will need the heroku gem for this too.
View helper.rb
def share_with_facebook_url(opts)
# Generates an url that will 'share with Facebook', and can includes title, url, summary, images without need of OG data.
# URL generate will be like
#[title]=We also do cookies&p[url]=[images][0]=[summary]=Super developer company
# For this you'll need to pass the options as
# { :url => "",
View embed2.rb
def try_me
a = 12
View gist:1010363
Search for? :paul or linux
Found 65 documents in total
** Pages: 3 **
*we cannot find anymore information for the moment*
** Interactions: 39 **
Type not provided
Type not provided