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
# 0 is too far away from reasonable numbers | |
set -g base-index 1 | |
set -g renumber-windows on | |
setw -g pane-base-index 1 | |
# Color key (Dracula Theme): | |
# #282a36 Background | |
# #44475a Current Line | |
# #44475a Selection | |
# #f8f8f2 Foreground |
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
Ruby on Rails developer (freelancer/Remote) | |
# Descrição da vaga: | |
Você irá construir API's RESTfull usando RoR, Active Model Serializer, BDD e TDD. | |
# Skills e experiências necessárias: | |
* Experiência com Ruby. | |
* Experiência com Ruby on Rails | |
* Experiência com SOLID. | |
* Experiência com Design Pattern. | |
* Deve ter conhecimento com desenvolvimento de APIs RESTfull. | |
* Experiência com especificação JSON API. |
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
group :development do | |
gem "guard-rspec", "~> 2.5.0" | |
gem "rb-fsevent", "~> 0.9" | |
end | |
group :development, :test do | |
gem "rspec-rails", "~> 2.13.2" | |
gem "factory_girl_rails", "~> 4.2.1" | |
end |
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_relative "hget" | |
# client = FBPublic.new("penaltybr") | |
# client.data # returns the Graph API public data | |
# if you need see response details use: | |
# client.response # returns a Net::HTTPFound instance | |
# if you need an alias to get the api response use: | |
# fb_data = FBPublic.get_data("penaltybr") # returns the Graph API public data |
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
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
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
class ChassisFinder | |
def self.search(code) | |
Customer.joins(possessions: :chassis). | |
where(possessions: { core_chassis: { code: code }}) | |
end | |
end |
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
describe "#full_name" do | |
it "returns concatenated name" do | |
user = create(:user, first_name: "Fabiano", last_name: "Leite") | |
expect(user.full_name).to eq("Fabiano Leite") | |
end | |
end |
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
# spec/support/database_cleaner.rb | |
require 'database_cleaner' | |
RSpec.configure do |config| | |
config.before(:suite) do | |
DatabaseCleaner.clean_with :truncation # Delete leftovers if any | |
DatabaseCleaner.strategy = :transaction | |
end | |
config.before(:each) do |
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
// REQUIRES: | |
// http://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js | |
// http://static.tumblr.com/fpifyru/VCxlv9xwi/writecapture.js | |
// Based on: https://gist.github.com/1395926 | |
$(document).ready(function() { | |
$('.gist').each(function(i) { | |
var file_separator = $(this).text().indexOf('#'); | |
if (file_separator != -1) { | |
var gist_url = $(this).text().slice(0, file_separator); | |
var gist_file = $(this).text().slice(file_separator).replace("#file_", "?file="); |
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
# encoding: utf-8 | |
pt-BR: | |
address_full: "Endereço Completo:" | |
neighborhood: "Bairro" | |
number: "Número:" | |
complement: "Complemento:" | |
zipcode: "CEP:" | |
state: "Estado:" | |
city: "Cidade:" |
NewerOlder