Skip to content

Instantly share code, notes, and snippets.

Adrien Coquio bobbus

Block or report user

Report or block bobbus

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@bobbus
bobbus / ar_hasmany_through_order_bug.rb
Last active Aug 29, 2015
AR bug when order on has_many :through
View ar_hasmany_through_order_bug.rb
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
@bobbus
bobbus / README.md
Last active Apr 13, 2017 — forked from scottatron/README.md
Dragonfly and ImageOptim setup
View README.md

This runs provides an .optim job for dragonfly and also adds the .optim job into .thumb

This requires you have the 'image_optim' gem and it's dependencies.

@bobbus
bobbus / ar_circular_destroy_bug.rb
Last active Jan 2, 2016
AR bug with circular destroy
View ar_circular_destroy_bug.rb
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
View ar_association_named_record_bug.rb
unless File.exists?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
@bobbus
bobbus / ember-data.js
Created Jan 22, 2013
ember data 001ba0cbd8ef0bccf1ff15
View ember-data.js
(function() {
window.DS = Ember.Namespace.create({
// this one goes to 11
CURRENT_API_REVISION: 11
});
})();
View ember-668783a.js
// Version: v1.0.0-pre.2-311-g668783a
// Last commit: 668783a (2013-01-06 21:10:55 -0800)
(function() {
/*global __fail__*/
/**
Ember Debug
View .gemspec
Gem::Specification.new do |gem|
gem.name = 'minimal_gem'
gem.version = '0.0.1'
gem.date = Date.today.to_s
gem.summary = "an awesome gem"
gem.description = "extended description"
gem.authors = ['Me']
gem.email = 'me@example.com'
View sitemap_s3_publisher.rb
begin
require 'aws/s3'
rescue LoadError => e
e.message << " (You may need to install the aws-s3 gem)"
raise e
end
class SitemapS3Publisher
def generate
sitemap.create
You can’t perform that action at this time.