Skip to content

Instantly share code, notes, and snippets.

Avatar

Rafael Souza rafaelss

View GitHub Profile
View not_working.rb
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
View gigalixir.yml
on:
pull_request:
types: [closed]
branches:
- master
jobs:
docker:
runs-on: ubuntu-latest
if: github.event.pull_request.merged
steps:
View keybase.md

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:

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

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:

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