Skip to content

Instantly share code, notes, and snippets.


Jerome Lefeuvre jeromelefeuvre

View GitHub Profile
View .gitconfig
cm = "!f() { git commit -m \"$*\"; }; f"
co = checkout
ci = commit
rb = rebase
br = branch
fe = fetch
pu = pull
pr = pull --rebase
cp = cherry-pick
jeromelefeuvre / export_jira.rb
Last active Aug 29, 2015
Jira issues to markdown
View export_jira.rb
#!/usr/bin/env ruby
require 'rubygems'
require 'pp'
gem "jiralicious"
rescue Gem::LoadError
pp 'Please run: gem install jiralicious'
jeromelefeuvre / .rspec_parallel
Last active Aug 28, 2018
Merge all Parallel Specs files in one
View .rspec_parallel
--format html --out tmp/parallel_specs/report<%= ENV['TEST_ENV_NUMBER'] %>.html
jeromelefeuvre / has_yaml_export.rb
Created Jun 21, 2012
Permit to export object with relation as yaml
View has_yaml_export.rb
module Extensions
module HasYamlExport
extend ActiveSupport::Concern
# include class methods here
module ClassMethods
# Get options for relations
# :all => true # Add fields
# :only => [:field1, :field2] # Add only fields here
jeromelefeuvre / has_paperclip_url_upload.rb
Created Jun 14, 2012
Module for active Paperclip Url Upload
View has_paperclip_url_upload.rb
# In your model after declaring your attachments, add:
# include HasPaperclipUrlUpload
# Thanks to
require 'open-uri'
module HasPaperclipUrlUpload
def self.included(base)
base.attachment_definitions.collect{|key, values| key}.each do |key|
jeromelefeuvre / I18nFilter
Created Jan 11, 2012
Translate filter for liquid
View I18nFilter
# -*- encoding : utf-8 -*-
require File.expand_path(File.dirname(__FILE__) + '/../../spec_helper')
include I18nHelper
describe I18nFilters do
include I18nFilters
before do
@client = Factory(:client)
@front_office = FrontOffice.create(Factory.attributes_for(:front_office, :use_templates => true, :internationalization => true))
jeromelefeuvre / _mixins.scss
Created May 5, 2011 — forked from garyharan/_mixins.scss
Useful scss mixins (rounded corners, gradients, text-field, button)
View _mixins.scss
@mixin box-shadow($top, $left, $blur, $color, $inset: false) {
@if $inset {
-webkit-box-shadow:inset $top $left $blur $color;
-moz-box-shadow:inset $top $left $blur $color;
box-shadow:inset $top $left $blur $color;
} @else {
-webkit-box-shadow: $top $left $blur $color;
-moz-box-shadow: $top $left $blur $color;
box-shadow: $top $left $blur $color;
You can’t perform that action at this time.