Skip to content

Instantly share code, notes, and snippets.

@joelcogen
joelcogen / Readme.md
Last active January 16, 2016 12:58
CS:GO
@joelcogen
joelcogen / application.js
Last active December 17, 2015 17:49
Rails as a single-page app dev environment
//= require jquery_ujs
//= require turbolinks (if you are using Rails 4)
@joelcogen
joelcogen / Gemfile
Created March 7, 2012 12:32
Add Ogone payment to your Rails app with active_merchant
gem 'activemerchant'
@joelcogen
joelcogen / dynamic_queues.rb
Created October 26, 2011 19:11
Resque unleashed
# Typical enqueuing
Resque.enqueue(WorkerClass, object.to_json)
class WorkerClass
@queue = 'working queue'
def self.perform(json_object)
#...
end
end
@joelcogen
joelcogen / rails2_feature.feature
Created September 27, 2011 14:44
JS confirm dialog testing with Cucumber, Capybara, Rails 2 and 3
Then I expect to click "OK" on a confirmation box saying "Are you sure?"
And I press "Delete"
And the confirmation box should have been displayed
$ git commit --allow-empty
$ mv .bzrignore .gitignore
$ git checkout master
$ bzr fast-export ../project_bzr | git fast-import
@joelcogen
joelcogen / bzr_to_git_1.sh
Created October 27, 2010 13:44
Howto: convert a bzr repository to git, part 1/5
$ git init project_git
$ cd project_git