Skip to content

Instantly share code, notes, and snippets.

View christianblais's full-sized avatar

Christian Blais christianblais

View GitHub Profile
[diff]
algorithm = patience
[protocol]
version = 2
[user]
name = Christian Blais
email = christ.blais@gmail.com
[push]
default = current
[alias]
require 'benchmark'
require 'i18n'
I18n.enforce_available_locales = false
I18n.default_locale = :en
module I18n
class TranslatedString < ::String
end
end
puts("Hello, world!")
@christianblais
christianblais / rtlizer_regex_benchmark.rb
Created January 19, 2016 23:37
RTLizer regex benchmark
require 'benchmark/ips'
css = <<-CSS
@media (a: 1) {
.class { }
.class { }
.class {}
}
CSS