Instantly share code, notes, and snippets.


Keybase proof

I hereby claim:

  • I am rafaelss on github.
  • I am rafaelss ( on keybase.
  • I have a public key ASBtr1KmexLFPodJsn8w_y5yiGGL7EsfBiyYO9JBqIFC0wo

To claim this, I am signing this object:

View 1.rb
class A
B = ["c"].freeze
def d
View a.js
input.on("autocompleteselect", (function(self) {
return function(ev, ui) {
self.organizationId = ui.item.value;
View gist:f3c8074c8e8b7afb5d3f
require "benchmark/ips"
state1 = :initial
state2 = "initial"
Benchmark.ips do |x|"case to_s.to_sym") do
case state1.to_s.to_sym
when :initial
a = 1
View gist:aba61e9108faf11b988b
require "benchmark/ips"
email = nil
Benchmark.ips do |x|'com if') { email.downcase.strip if email }'sem if') { email.to_s.downcase.strip }
View promise.js
// node promise.js
function Promise() {
this.callbacks = [];
this.resolved = false;
this.resolve = function(value) {
if(this.resolved) {
throw "Promise already resolved";
else {
View gist:7548422

I've been working with web development since 2001, the last 4 years using Ruby full-time. Before that I've worked with PHP, Java and .NET.

Currently I work as Ruby developer at Vnda (, using Ruby, Rails, Sinatra and PostgreSQL. Also Javascript, CSS, Redis, Memcached and Solr. Vnda is a SaaS E-commerce Platform, focused on brazilian market, that runs on Amazon AWS.

I'm looking for an oportunity that allows me keep working with Ruby and also learn new stuff and experiment new ways of work.

My GitHub is and my LinkedIn is

View gist:7217245

Estamos a procura de desenvolvedor remoto com foco em front-end para implementar e manter as lojas dos nossos clientes. Precisa saber HTML, CSS e Javascript. Já ter trabalhado com alguma linguagem de template é um plus, ainda mais se essa linguagem for Liquid.

Aqui na Vnda utilizamos Ruby, Rails/Sinatra e PostgreSQL, mas o conhecimento dessas tecnologias não é obrigatório.

Se estiver afim de trocar uma ideia, mande um e-mail para

View gist:5756992
{% assign available_variants = "|" %}
{% for variant in product.variants %}
{% if variant.available %}
{% assign available_variants = available_variants | append: "|" | append: variant.attributes.size %}
{% endif %}
{% endfor %}
{{ available_variants | remove_first: "|" | split: "|" }}