Skip to content

Instantly share code, notes, and snippets.

Working from home

Rémy Coutable rymai

Working from home
Block or report user

Report or block rymai

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
View Gemfile.lock
revision: ee766bac790d38f18b56ac33bfad73b818a0c8f9
solidus_mailchimp_sync (1.0.0.beta06)
deface (~> 1.0)
http (~> 2.0)
solidus_core (>= 1.4, < 3)

Keybase proof

I hereby claim:

  • I am rymai on github.
  • I am rymai ( on keybase.
  • I have a public key whose fingerprint is 2056 CEB5 6891 EFA6 5BE0 DF59 46DF 07E5 CD9E 96AB

To claim this, I am signing this object:

rymai / gist:6620991
Last active Dec 23, 2015 — forked from lucascaton/gist:3605012
RSpec's New Expectation Syntax - migration script
View gist:6620991
# Include this in your spec_helper.rb:
config.expect_with :rspec do |c|
c.syntax = :expect
# Then, run:
find spec -name "*.rb" -exec gsed -i -e "s/\(\s\+\)\(.*\)\.should_not /\1expect(\2).not_to /g" -e "s/\(\s\+\)\(.*\)\.should /\1expect(\2).to /g" -e "s/\(\s\+\)\(.*\)\.should_receive/\1expect(\2).to receive/g" -e "s/\(\s\+\)\(.*\)\.should_not_receive/\1expect(\2).to_not receive/g" "{}" \;
# About RSpec's New Expectation Syntax
rymai / application.js
Created Jan 18, 2013
This is the script I use on that allows you to move from one image to another while in lightbox mode. It requires jQuery ( and Mousetrap ( Demo: Notes: The * files should be pre-compiled by Sprockets (
View application.js
// This code is the automatic conversion to JS of +
// Performed on (click on the "TRY COFFEESCRIPT" tab).
var PhotosCarousel;
PhotosCarousel = (function() {
function PhotosCarousel(lightboxes) {
this.lightboxes = lightboxes;
this.currentIndex = 0;
rymai / Guardfile
Created Jun 5, 2012
Trying to detect a Guard/Listen issue with folder that contains a '$' ( )
View Guardfile
guard 'shell' do
watch(/.+/) { |m| puts m }
rymai / magnifying_glass.css
Created May 30, 2012
SublimeVideo lightbox with magnifying glass using the WordPress plugin
View magnifying_glass.css
a.zoomable {
-webkit-box-shadow:rgba(0,0,0,0.4) 0 4px 10px;
-moz-box-shadow:rgba(0,0,0,0.4) 0 4px 10px;
box-shadow:rgba(0,0,0,0.4) 0 4px 10px;
rymai / Guardfile
Created Oct 11, 2011
Guard::Vagrant + Guard::PhpUnit
View Guardfile
guard :vagrant, :cwd => '/custom/cwd'
guard :phpunit, :vagrant => true do
watch %r{^website/application/(.+)\.php}
watch %r{^website/tests/unit/(.+)\.php}
watch 'website/tests/unit/phpunit.xml'
rymai / gist:1142414
Created Aug 12, 2011
Can't call the lower SQL function
View gist:1142414
NoMethodError: undefined method `with_connection' for ActiveRecord::Base:Class
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/rails-d9d78d4165d1/activerecord/lib/active_record/base.rb:1082:in `method_missing'
from /Users/remy/my_project/vendor/ruby/1.9.1/gems/arel-2.2.0/lib/arel/visitors/to_sql.rb:16:in `accept'
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/base.rb:85:in `quote'
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/predicate_visitor.rb:342:in `quote_for_node'
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/predicate_visitor.rb:101:in `visit_Squeel_Nodes_Predicate'
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/base.rb:97:in `visit'
from /Users/remy/my_project/vendor/ruby/1.9.1/bundler/gems/squeel-788d71821d5b/lib/squeel/visitors/pre
rymai / gist:1114054
Created Jul 29, 2011
Watch any folder, from anywhere (new Guard CLI options, in the next release)!
View gist:1114054

In ~/prison, you put the Guardfile that describe which files to watch for changes and what to execute once a file is modified.

guard 'shell' do
  watch(%r{^.+\.txt$}) { |m| `echo #{File.join(, m[0])}` }

In ~/watch_from_here, you put the Gemfile that list the guards you want to use.

You can’t perform that action at this time.