Skip to content

Instantly share code, notes, and snippets.

View rafaelss's full-sized avatar

Rafael Souza rafaelss

View GitHub Profile
require "bundler/inline"
gemfile do
source "https://rubygems.org"
ruby "2.7.3"
gem "liquid", "5.0.1", require: false
gem 'liquid-c', github: 'Shopify/liquid-c', ref: 'fb25228', require: false
end
on:
pull_request:
types: [closed]
branches:
- master
jobs:
docker:
runs-on: ubuntu-latest
if: github.event.pull_request.merged
steps:

Keybase proof

I hereby claim:

  • I am rafaelss on github.
  • I am rafaelss (https://keybase.io/rafaelss) on keybase.
  • I have a public key ASCd2EJ1XfWuHMOjtefN-c8M2Gq-iPERLwP7-dhpxwRRiQo

To claim this, I am signing this object:

https://hooks.slack.com/services/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

Keybase proof

I hereby claim:

  • I am rafaelss on github.
  • I am rafaelss (https://keybase.io/rafaelss) on keybase.
  • I have a public key ASBtr1KmexLFPodJsn8w_y5yiGGL7EsfBiyYO9JBqIFC0wo

To claim this, I am signing this object:

class A
B = ["c"].freeze
def d
B.include?("c")
end
end
@rafaelss
rafaelss / a.js
Last active September 1, 2015 18:13
input.on("autocompleteselect", (function(self) {
return function(ev, ui) {
self.organizationId = ui.item.value;
self._enableContinue();
}
})(this));
<?php
phpinfo();
?>
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
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