This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# List of nationalities taken from Gist and Gem converted to yaml and translated: | |
# - https://github.com/JomaMinoza/nationality | |
# - http://www.codegist.net/code/rails-nationality-select/ | |
# - https://gist.github.com/marijn/274449 | |
# - https://gist.github.com/clawfire/5170433 (fr) | |
# | |
# Country: | |
# - https://github.com/stefanpenner/country_select | |
# - https://github.com/hexorx/countries/ | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# system | |
alias tc='ne ~/.bash_aliases' | |
alias tcs='source ~/.bash_aliases' | |
alias s='shutdown -h now' | |
alias ..='cd ..' | |
# editors | |
# Emacs | |
alias e='emacs -nw' | |
alias ne='emacs -nw' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ chmod +x ./proxy_list_fetcher.rb | |
$ ./proxy_list_fetcher.rb | head | |
180.94.88.58 8080 Afghanistan fast HTTPS High +KA | |
187.87.155.2 8080 Brazil fast HTTPS High +KA | |
120.132.132.119 8080 China medium HTTPS High +KA | |
210.211.109.244 8081 Viet Nam fast HTTP Low | |
216.244.71.143 3128 United States medium HTTPS High +KA | |
190.237.224.22 8080 Peru slow HTTPS High +KA |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# app/views/devise_custom_mailer/confirmation_instructions.html.haml | |
%p | |
= t('devise.mailer.welcome', :email => @resource.email) | |
%p= t('devise.mailer.confirmation_instructions.msg') | |
%p= link_to t('devise.mailer.confirmation_instructions.link'), confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) | |
%br | |
- if @resource.tmp | |
%p | |
= t('devise.mailer.confirmation_instructions.password_instruction', :password => @resource.tmp) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pifleo | |
# Site: http://letmediscover.wordpress.com/ | |
# | |
1. Avoir une idée | |
2. Imaginer les première fonctionnalités / extrait de comportements | |
3. Construire le schéma de BDD | |
4. Lister les gems principales | |
5. Lister les models | |
6. Préparer les commandes de scaffolding | |
+ références |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Keep code struture in models consistent | |
# Inspired by http://rails-bestpractices.com/posts/75-keep-code-struture-in-models-consistent | |
# One example: (From top to bottom) | |
associations | |
scopes | |
class methods | |
validates | |
callbacks | |
instance methods |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# How To: Allow users to sign in using their username or email address | |
# https://github.com/plataformatec/devise/wiki/How-To:-Allow-users-to-sign-in-using-their-username-or-email-address |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-# app/views/devise/mailer/confirmation_instructions.html.haml | |
%p | |
= t('devise.mailer.welcome', :email => @resource.email) | |
%p= t('devise.mailer.confirmation_instructions.msg') | |
%p= link_to t('devise.mailer.confirmation_instructions.link'), confirmation_url(@resource, :confirmation_token => @resource.confirmation_token) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
# routes translation | |
# https://github.com/kwi/i18n_routing | |
gem 'i18n_routing' |