Skip to content

Instantly share code, notes, and snippets.

@addame
addame / devise.fr.yml
Created July 10, 2018 17:23 — forked from qsypoq/devise.fr.yml
French translation of devise.en.yml (version: 3.5.3).
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n
fr:
devise:
confirmations:
confirmed: "Votre compte a été validé."
send_instructions: "Vous allez recevoir les instructions nécessaires à la confirmation de votre compte dans quelques minutes."
send_paranoid_instructions: "Si votre e-mail existe dans notre base de données, vous allez bientôt recevoir un e-mail contenant les instructions de confirmation de votre compte."
failure:
already_authenticated: "Vous êtes déjà connecté"
@addame
addame / grts2.R
Created January 31, 2014 15:24 — forked from jer-shiny/grts2.R
grts2<-function (design, DesignID = "Site", SiteBegin = 1, type.frame = "finite",
src.frame = "shapefile", in.shape = NULL, sp.object = NULL,
att.frame = NULL, id = NULL, xcoord = NULL, ycoord = NULL,
stratum = NULL, mdcaty = NULL, startlev = NULL, maxlev = 11,
maxtry = 1000, shift.grid = TRUE, do.sample = rep(TRUE, length(design)),
shapefile = TRUE, prjfilename = NULL, out.shape = "sample")
{
if (is.null(design))
stop("\nA design list must be provided.")
strata.names <- names(design)
@addame
addame / global.R
Created March 6, 2013 15:39 — forked from jcheng5/global.R
###############################################
##
## Attempt no 2 at building a shiny web app
## for AB Testing use - using global.R
##
## global.R - loading and defining variables for the global environment
##
###############################################
# Pallette used in some charts as a general indicator color for better or worse that the control group
curl -XDELETE 'localhost:9200/test'
# grasp available rules with: jar tvf plugins/analysis-phonetic/commons-codec-*.jar | grep bm
curl -XPUT 'localhost:9200/test' -d '
{
"settings" : {
"index" : {
"analysis" : {
@addame
addame / devise.fr.yml
Created May 1, 2012 21:56 — forked from tadatoshi/devise.fr.yml
I18n French translation for Devise (http://github.com/plataformatec/devise)
#########################################################################################################
# I18n French translation for Devise (http://github.com/plataformatec/devise)
# I18n traduction française pour Devise
#########################################################################################################
fr:
errors:
messages:
not_found: "n'a pas été trouvé(e)"
already_confirmed: "a déjà été confirmé(e)"
{
"from" : 0,
"size" : 10,
"query" : {
"match_all" : {
}
},
"explain" : false,
"facets" : {
"f1" : {
@addame
addame / rails_helper.rb
Created April 28, 2012 21:07 — forked from Amitesh/rails_helper.rb
Accessing Helper modules in rails
Accessing Helper modules in rails
http://www.funonrails.com/2010/12/accessing-helper-modules-in-rails.html
1. Helper methods all the time for views
class ApplicationController < ActionController::Base
helper :all# include all helpers, all the time for views
end
@addame
addame / gist:2406542
Created April 17, 2012 14:58 — forked from lukas-vlcek/gist:1012051
Full search query #BBUZZ 2011
{
"from" : 0,
"query" : {
"filtered" : { "query" : { "query_string" : { "query" : "jboss server" } },
"filter": {
"and" : [
{"range" : { "date" : {"from":"2007-07-25","to":"2010-12-16"}}},
{"terms" : { "_index" : ["weld"]}},
{"terms" : {"mail_list" : ["dev"]}},
{"terms" : {"from.not_analyzed" : [ "Galder Zamarreno <galder.zamarreno@redhat.com>","Pete Muir <pmuir@redhat.com>"]}}
@addame
addame / gist:2362591
Created April 11, 2012 21:08 — forked from lukas-vlcek/gist:1012051
Full search query #BBUZZ 2011
{
"from" : 0,
"query" : {
"filtered" : { "query" : { "query_string" : { "query" : "jboss server" } },
"filter": {
"and" : [
{"range" : { "date" : {"from":"2007-07-25","to":"2010-12-16"}}},
{"terms" : { "_index" : ["weld"]}},
{"terms" : {"mail_list" : ["dev"]}},
{"terms" : {"from.not_analyzed" : [ "Galder Zamarreno <galder.zamarreno@redhat.com>","Pete Muir <pmuir@redhat.com>"]}}
@addame
addame / README.markdown
Created March 20, 2012 01:30 — forked from isc/README.markdown
A micro gem providing an accordion view helper that generates the proper markup for Twitter Bootstrap

In your Gemfile:

gem 'bootstrap-components-helpers', :git => 'git://gist.github.com/2117187.git'

In your views:

= accordion do |accordion|

= accordion.pane 'My first pane' do