View 1.rb
class A
B = ["c"].freeze
def d
B.include?("c")
end
end
View a.js
input.on("autocompleteselect", (function(self) {
return function(ev, ui) {
self.organizationId = ui.item.value;
self._enableContinue();
}
})(this));
View gist:f3c8074c8e8b7afb5d3f
require "benchmark/ips"
state1 = :initial
state2 = "initial"
Benchmark.ips do |x|
x.report("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|
x.report('com if') { email.downcase.strip if email }
x.report('sem if') { email.to_s.downcase.strip }
end
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 (vnda.com.br), 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 http://github.com/rafaelss and my LinkedIn is http://linkedin.com/in/rafaelss

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 reis@vnda.com.br.

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: "|" }}
View gist:5224882
{
"auto_complete": false,
"bold_folder_labels": true,
"color_scheme": "Packages/RailsCasts Colour Scheme/RailsCastsColorScheme.tmTheme",
"detect_indentation": true,
"draw_white_space": "all",
"ensure_newline_at_eof_on_save": true,
"font_face": "Droid Sans Mono",
"font_size": 14,
"highlight_line": true,