Skip to content

Instantly share code, notes, and snippets.

View rymai's full-sized avatar
🙌
Working from home

Rémy Coutable rymai

🙌
Working from home
View GitHub Profile
@rymai
rymai / Guardfile
Created June 5, 2012 21:48
Trying to detect a Guard/Listen issue with folder that contains a '$' ( https://github.com/guard/guard/issues/287 )
guard 'shell' do
watch(/.+/) { |m| puts m }
end
@rymai
rymai / application.js
Created January 18, 2013 09:59
This is the script I use on http://everyday.rymai.me that allows you to move from one image to another while in lightbox mode. It requires jQuery (http://jquery.com) and Mousetrap (http://craig.is/killing/mice). Demo: http://everyday.rymai.me Notes: The *.js.coffee files should be pre-compiled by Sprockets (https://github.com/sstephenson/sprockets
// This code is the automatic conversion to JS of photos_carousel.js.coffee + application.js.coffee.
// Performed on http://coffeescript.org (click on the "TRY COFFEESCRIPT" tab).
var PhotosCarousel;
PhotosCarousel = (function() {
function PhotosCarousel(lightboxes) {
this.lightboxes = lightboxes;
this.currentIndex = 0;
this.setupObservers();
@rymai
rymai / gist:6620991
Last active December 23, 2015 10:19 — forked from lucascaton/gist:3605012
RSpec's New Expectation Syntax - migration script
# Include this in your spec_helper.rb:
config.expect_with :rspec do |c|
c.syntax = :expect
end
# 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

Keybase proof

I hereby claim:

  • I am rymai on github.
  • I am rymai (https://keybase.io/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
rymai / Gemfile.lock
Created October 5, 2018 11:43
Gemfile.lock
GIT
remote: https://github.com/jtapia/solidus_mailchimp_sync.git
revision: ee766bac790d38f18b56ac33bfad73b818a0c8f9
specs:
solidus_mailchimp_sync (1.0.0.beta06)
deface (~> 1.0)
http (~> 2.0)
solidus_core (>= 1.4, < 3)
solidus_support