Skip to content

Instantly share code, notes, and snippets.

View Knack's full-sized avatar

Paco Benavent Knack

View GitHub Profile
@jherdman
jherdman / README.md
Last active January 11, 2022 05:49 — forked from ankane/README.md
A Gem loading benchmark script

Benchmark Bundler

Because loading gems can take longer than you think

$ curl -fsSL https://gist.github.com/jherdman/5025684/raw/a3ccd4b5308723245706b4ae315845fe951b4473/benchmark.rb | ruby
............................................................[DONE]

Gem                            Time(sec)     Pct %
--------------------------------------------------
@kaievns
kaievns / gist:1200232
Created September 7, 2011 10:28
RJS substitute for right-rails
#
# RJS handler was kicked out of Rails 3.1 along with Prototype
# so, here is a little substitute coz we use it here and there
#
# Just save it in some file in the `config/initializers`
#
module ActionView
module Template::Handlers
class RJS
# Default format used by RJS.