NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| package main | |
| import ( | |
| "crypto/aes" | |
| "crypto/cipher" | |
| "crypto/rand" | |
| "encoding/base64" | |
| "fmt" | |
| "io" | |
| ) |
| import ( | |
| "fmt" | |
| "log" | |
| "os" | |
| "sort" | |
| ) | |
| // askForConfirmation uses Scanln to parse user input. A user must type in "yes" or "no" and | |
| // then press enter. It has fuzzy matching, so "y", "Y", "yes", "YES", and "Yes" all count as | |
| // confirmations. If the input is not recognized, it will ask again. The function does not return |
| # http://www.christopherirish.com/2012/03/21/how-to-set-the-timezone-on-ubuntu-server/ | |
| sudo dpkg-reconfigure tzdata |
| _.paginate = function(arr, size) { | |
| var pages = []; | |
| arr = _.clone(arr); | |
| size = size || this.length; | |
| while (arr.length) { | |
| pages.push(arr.splice(0, size)); | |
| } |
NOTE: This post now lives (and kept up to date) on my blog: http://hakunin.com/rails3-load-paths
Do nothing. All files in this dir are eager loaded in production and lazy loaded in development by default.
| # Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
| # Utilize-o em 'config/locales/', com o nome de 'devise.pt-BR.yml'. | |
| # Em 'config/application.rb', utilize => config.i18n.default_locale = :'pt-BR' | |
| pt-BR: | |
| devise: | |
| confirmations: | |
| confirmed: "Sua conta foi confirmada com sucesso." | |
| send_instructions: "Você receberá um e-mail para confirmar sua conta em alguns minutos." |
| import java.sql.*; | |
| public class TestOracle { | |
| public static void main(String[] args) { | |
| String sql; | |
| /* | |
| * O driver JDBC do Oracle está disponível no seguinte endereço: | |
| * http://www.oracle.com/technetwork/database/features/jdbc/index-091264.html |