Skip to content

Instantly share code, notes, and snippets.

View rodrigoflores's full-sized avatar

Rodrigo Flores rodrigoflores

View GitHub Profile

Integers

1 + 1
2 * 2
5 / 3
5 % 3
5 ** 2
@caroluehbepersonal
@brunorosa.sapo
@giannfs_personal
@josuepersonal
@vinirega
@prof.sanchez
@rafacharcovpersonal
@robertopersona
@thaisdearauj
@_aricarmona
@rodrigoflores
rodrigoflores / simple-form.pt-BR.yml
Created August 31, 2011 14:35
pt-BR Simple Form
pt-BR:
simple_form:
"yes": 'Sim'
"no": 'Não'
required:
text: 'obrigatório'
mark: '*'
# You can uncomment the line below if you need to overwrite the whole required html.
# When using html, text and mark won't be used.
# html: '<abbr title="required">*</abbr>'

Sobre Finagle

Comunicacao entre 2 pontos:

HTTP

Thrift

MySQL

Memcached

Kafka

Colaboracao de N partes 1 servico acessa N outros servicos para responder uma requisicao;

E se uma dessas partes falha ?

img {
display: block;
}
.left {
float: left;
}
.right {
float: right;
@rodrigoflores
rodrigoflores / dabblet.css
Created April 28, 2013 17:11
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
h2 {
position: relative;
line-height: 100px;
font-weight: normal;
font-size: 80px;
width: 1000px;
height: 100px;
@rodrigoflores
rodrigoflores / conflict.js
Created October 9, 2012 01:08
Evitando conflitos
(function($) {
})(jQuery);
@rodrigoflores
rodrigoflores / colon.js
Created October 9, 2012 00:35
colon presence
var object = {
name : "john"
}
// Error
(function(){
})();
@rodrigoflores
rodrigoflores / klass_test.rb
Created July 23, 2012 12:39
Assert Linear
require 'minitest/autorun'
require 'minitest/benchmark'
load 'lib/klass.rb'
class TestKlass < MiniTest::Unit::TestCase
describe "linear" do
it "is linear" do
assert_performance_linear 0.9999 do |n| # n is a range value
Klass.linear(n)
@rodrigoflores
rodrigoflores / dabblet.css
Created July 5, 2012 19:36
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
h5 {
height: 50px;
}