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
{ | |
"auto_completecommiton_tab": true, | |
"bold_folder_labels": true, | |
"color_scheme": "Packages/Color Scheme - Default/Solarized (Dark).tmTheme", | |
"draw_white_space": "all", | |
"ensure_newline_at_eof_on_save": true, | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", |
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
require 'rails_helper' | |
feature 'authentication' do | |
let!(:user) { create(:user, password: '12345678', password_confirmation: '12345678') } | |
before do | |
visit root_path | |
fill_in :user_email, with: user.email | |
fill_in :user_password, with: '12345678' | |
click_button 'Sign in' |
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
STATES = { | |
REGION_SOUTH => ['PR', 'RS', 'SC'], | |
REGION_SOUTHEAST => ['ES', 'MG', 'RJ', 'SP'], | |
REGION_MIDWEST => ['DF', 'GO', 'MT', 'MS'], | |
REGION_NORTH => ['AC', 'AM', 'AP', 'PA', 'RO', 'RR', 'TO'], | |
REGION_NORTHEAST => ['AL', 'CE', 'BA', 'MA', 'PB', 'PE', 'PI', 'RN', 'SE'] | |
} |
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
--- | |
layout: project | |
title: "Project 1" | |
subtitle: "Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diamsit e nonummy nibh euismod tincidunt ut laoreet magna aliquam." | |
date: 2014-09-05 17:49:49 | |
categories: projects | |
description: "Descrição do projeto no thumbnail com mouse over consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore lorem ipsum sit dolor amet hyperlink aliquam erat volutpat. Ut wisi enim ad minim veniam, veniam, quis nostrud exerci tation aliquip ex ea commodo consequat." | |
authors: ["lionelmessi", "cristianoronaldo", "frankribery"] | |
--- |
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
var App = App || {}; | |
App.ac_appender = { | |
/* | |
* ======================================== | |
* | |
* requires jquery autocomplete | |
* | |
* ======================================== |
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
APT::Periodic::Update-Package-Lists "1"; | |
APT::Periodic::Download-Upgradeable-Packages "1"; | |
APT::Periodic::AutocleanInterval "7"; | |
APT::Periodic::Unattended-Upgrade "1"; |
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
def create_calculations_by_product_ids(ids) | |
actual_product_ids = product_ids | |
destroy_product_ids = (actual_product_ids - ids).uniq | |
calculations.in(product_id: destroy_product_ids).destroy_all | |
new_product_ids = (ids - actual_product_ids).uniq | |
new_products = Product.find(new_product_ids) | |
new_products.each do |product| |
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
# construir um algoritmo que recebe via console a | |
# idade de uma pessoa e retorna algo como: | |
# - maior de idade | |
# - menor de idade | |
# ps. utilize métodos :) | |
puts "idade:" | |
age = gets.chomp |
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
http://docs.mongodb.org/manual/tutorial/install-mongodb-on-ubuntu/ | |
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10 | |
Create a /etc/apt/sources.list.d/10gen.list file using the following command. | |
echo 'deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen' | sudo tee /etc/apt/sources.list.d/10gen.list | |
sudo apt-get update |
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
Performance Driven | |
Key Characteristics: | |
• Goal/Results-driven | |
• Commitment to Results | |
• Personal Effectiveness | |
• Stakeholder Focus | |
You are customer and results-oriented. You know that people have limited time. Words and ideas may be important to you, but you care most about actions. |