John Mair banister

View pry_gist.rb
1 2 3 4 5 6 7 8 9 10
class Blah
def add(x, y)
x + y
end
end
# => nil
class Symbol
def call(*args, &block)
->(o) { o.send(self, *args, &block) }
end
View git aliases
1 2 3 4 5 6 7 8 9 10
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
View gist:7772063
1 2 3 4 5 6 7 8 9 10
[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'
View init.el
1 2 3 4 5 6 7 8 9
(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)
View break-and-run.rb
1 2 3 4 5 6
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
View init.el
1 2 3 4 5 6 7 8 9 10
;; 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
View init.el
1 2 3 4 5 6 7 8 9 10
;; 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))))
View init.el
1 2 3 4 5 6 7 8 9
(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))))
View init.el
1
(global-set-key (kbd "C-i") (lambda () (interactive) (save-excursion (forward-line -1) (goto-char (point-at-bol)) (skip-syntax-forward "-") (current-column))))
View init.el
1 2 3 4 5 6 7 8 9 10
(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)
Something went wrong with that request. Please try again.