This file contains hidden or 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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. |
This file contains hidden or 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
gem 'socialization' | |
gem 'friendly_id', '~> 5.0.0' | |
gem 'bootstrap-sass' | |
gem 'searchkick' | |
gem 'kaminari' | |
gem 'bootstrap-kaminari-views' | |
gem 'devise' | |
gem 'devise-async' | |
gem 'paperclip' | |
gem 'shareable' |
This file contains hidden or 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
# MySQL. Versions 5.0+ are recommended. | |
# | |
# Install the MYSQL driver | |
# gem install mysql2 | |
# | |
# Ensure the MySQL gem is defined in your Gemfile | |
# gem 'mysql2' | |
# | |
# And be sure to use new-style password hashing: | |
# http://dev.mysql.com/doc/refman/5.0/en/old-client.html |
This file contains hidden or 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
pt-BR: | |
date: | |
abbr_day_names: | |
- Dom | |
- Seg | |
- Ter | |
- Qua | |
- Qui | |
- Sex | |
- Sáb |
This file contains hidden or 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
# Additional translations at https://github.com/plataformatec/devise/wiki/I18n | |
# Este arquivo deve ser colocado em config/locales/devise.pt-BR.yml | |
pt-BR: | |
devise: | |
confirmations: | |
confirmed: "Sua conta foi confirmada com sucesso." | |
send_instructions: "Você receberá um email para confirmar sua conta em alguns minutis." | |
send_paranoid_instructions: "Caso seu endereço de email já exista em nossa base, você receberá um email com instruções sobre como ativar sua conta." | |
failure: |
This file contains hidden or 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
# sudo nano /opt/nginx/conf/nginx.conf | |
worker_processes 2; | |
worker_rlimit_nofile 100000; | |
events { | |
worker_connections 768; | |
use epoll; | |
multi_accept on; |
This file contains hidden or 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
class Midia | |
attr_accessor :valor | |
attr_reader :titulo | |
def initialize(titulo, valor, categoria) | |
@titulo = titulo | |
@valor = valor | |
@categoria = categoria | |
end |
This file contains hidden or 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
class Midia | |
attr_accessor :valor | |
attr_reader :titulo | |
def initialize(titulo, valor, categoria) | |
@titulo = titulo | |
@valor = valor | |
@categoria = categoria | |
end |
This file contains hidden or 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
task :countries => :environment do | |
agent = Mechanize.new { |agent| agent.user_agent_alias = 'Linux Mozilla' } | |
page = agent.get('http://www.flightradar24.com/data/airports/') | |
countries = page.search('#countriesList a').map { |link| [link.attributes['title'].value ,link['href'] ] } | |
countries.each do |country| | |
@country = Country.new(name: country[0], url: country[1]) | |
@country.save! | |
end | |
This file contains hidden or 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
/* Inicio Typeahead */ | |
.twitter-typeahead .tt-hint{ | |
display: block; | |
height: 34px; | |
padding: 6px 12px; | |
font-size: 14px; | |
line-height: 1.428571429; | |
border: 1px solid transparent; |