Skip to content

Instantly share code, notes, and snippets.

View jpablobr's full-sized avatar

Pablo Barrantes jpablobr

View GitHub Profile
@fujin
fujin / ruby.el
Created March 15, 2013 22:36 — forked from chrisroberts/gist:5173018
Fix the fucking indentation rules for ruby-mode
(setq ruby-deep-indent-paren nil)
(defadvice ruby-indent-line (after unindent-closing-paren activate)
(let ((column (current-column))
indent offset)
(save-excursion
(back-to-indentation)
(let ((state (syntax-ppss)))
(setq offset (- column (current-column)))
(when (and (eq (char-after) ?\))
(not (zerop (car state))))
@mremolt
mremolt / spec_performance.txt
Created May 26, 2011 07:49
Some suggestions on spec performance
Referencing http://twitter.com/#!/refinerycms/status/73536619038261248
Depends, do you want to speed up single test runs/running one spec file or speeding up the whole suite?
Speeding up a single test == shorten init time
-------------------------
Reduce the number of requires:
When running on 1.9.2, require is an extremely costly operation. @xshay is currently working on this, should be better in 1.9.3.