This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Blah | |
def add(x, y) | |
x + y | |
end | |
end | |
# => nil | |
class Symbol | |
def call(*args, &block) | |
->(o) { o.send(self, *args, &block) } | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
alias.unstage=reset HEAD -- | |
alias.br=branch | |
alias.co=checkout | |
alias.ci=commit | |
alias.last=log -1 -p HEAD | |
alias.fi=diff --name-only | |
alias.di=diff | |
alias.st=status -s --untracked=no | |
alias.dc=diff --cached | |
alias.rmc=rm --cached |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[10] pry(main)> | |
~CORE (feature/multiple-enrollments ✘)✭ ᐅ bundle exec cap production db:clone_to_local | |
triggering load callbacks | |
* 2013-12-03 17:13:19 executing `production' | |
triggering start callbacks for `db:clone_to_local' | |
* 2013-12-03 17:13:19 executing `multistage:ensure' | |
* 2013-12-03 17:13:19 executing `db:clone_to_local' | |
* 2013-12-03 17:13:19 executing `db:dump_to_local' | |
* 2013-12-03 17:13:19 executing `db:database_creds' | |
pg_dump: unrecognized option `--exclude-table-data=subscriptions' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'load-path "~/.emacs.d/") | |
(add-to-list 'load-path "~/.emacs.d/ruby-dev/") | |
(add-to-list 'load-path "~/.emacs.d/themes/") | |
(add-to-list 'custom-theme-load-path "~/.emacs.d/themes/") | |
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/") t) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pry.commands.command "break-and-run" do | |
method_name = arg_string.split("(").first | |
run "break #{method_name}" | |
input = StringIO.new arg_string | |
Pry.start(target, :input => input) | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; ensure tabs are specially colored, since they mess up things in | |
;; langs like coffeescript | |
(defface extra-whitespace-face | |
'((t (:background "pale green"))) | |
"Used for tabs and such.") | |
(defvar my-extra-keywords | |
'(("\t" . 'extra-whitespace-face))) | |
;; coffeescript specific hooks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; coffeescript specific hooks | |
(defun coffee-init () | |
(font-lock-add-keywords nil my-extra-keywords) | |
(define-key coffee-mode-map | |
(kbd "M-i") 'indent-relative) | |
(define-key coffee-mode-map | |
(kbd "M-j") (lambda () (interactive) (forward-line 1) (indent-relative))) | |
(define-key coffee-mode-map | |
(kbd "C-j") (lambda () (interactive) (newline) (let ((col (save-excursion (forward-line -1) (beginning-of-line) (skip-syntax-forward "-")))) (indent-to col)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun coffee-init () | |
(font-lock-add-keywords nil my-extra-keywords) | |
(define-key coffee-mode-map | |
(kbd "M-i") 'indent-relative) | |
(define-key coffee-mode-map | |
(kbd "M-j") (lambda () (interactive) (forward-line 1) (indent-relative))) | |
(define-key coffee-mode-map | |
(kbd "C-j") (lambda () (interactive) (newline) (let ((col (save-excursion (forward-line -1) (beginning-of-line) (skip-syntax-forward "-")))) (indent-to col)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(global-set-key (kbd "C-i") (lambda () (interactive) (save-excursion (forward-line -1) (goto-char (point-at-bol)) (skip-syntax-forward "-") (current-column)))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(add-to-list 'load-path "~/.emacs.d/") | |
(add-to-list 'load-path "~/.emacs.d/ruby-dev/") | |
(autoload 'turn-on-ruby-dev "ruby-dev" nil t) | |
(add-hook 'ruby-mode-hook 'turn-on-ruby-dev) | |
(require 'package) | |
(add-to-list 'package-archives | |
'("marmalade" . "http://marmalade-repo.org/packages/") t) | |
(add-to-list 'package-archives | |
'("melpa" . "http://melpa.milkbox.net/packages/") t) |