Skip to content

Instantly share code, notes, and snippets.

# Rake Quick Reference
# by Greg Houston
# http://ghouston.blogspot.com/2008/07/rake-quick-reference.html
# -----------------------------------------------------------------------------
# Running Rake
# -----------------------------------------------------------------------------
# running rake from the command-line:
# rake --help
;; zeevex whitespace standards WHETHER YOU LIKE IT OR NOT
;; test 2
;; test 3
(require 'whitespace)
(defun activate-trailing-whitespace-nazi ()
"Annoy you with trailing whitespace, and then delete it on save anyway"
(interactive)
(whitespace-mode t)
unique: 31, opcode: LOOKUP (1), nodeid: 1, insize: 48
LOOKUP /newfile
getattr /newfile
unique: 31, error: -2 (No such file or directory), outsize: 16
unique: 31, opcode: LOOKUP (1), nodeid: 1, insize: 48
LOOKUP /newfile
getattr /newfile
unique: 31, error: -2 (No such file or directory), outsize: 16
unique: 31, opcode: STATFS (17), nodeid: 1, insize: 40
statfs /
#
# requires the homebrew `gist` recipe to be installed
#
URL=`pbpaste | gist -o`
echo -n $URL | pbcopy
echo $URL
Usage: gist [options] [filename or stdin] [filename] ...
Filename '-' forces gist to read from stdin.
-p, --[no-]private Make the gist private
-t, --type [EXTENSION] Set syntax highlighting of the Gist by file extension
-o, --[no-]open Open gist in browser
-m, --man Print manual
-v, --version Print version
-h, --help Display this screen
https://gist.github.com/1696496
pbpaste | gist -o
ftp://ftp.gnu.org/pub/gnu/kawa/
;;;###autoload
(defun gist-list ()
"Displays a list of all of the current user's gists in a new buffer."
(interactive)
(message "Retrieving list of your gists...")
(github-with-auth-info login token
(gist-request
(format "https://gist.github.com/api/v1/xml/gists/%s" login)
'gist-lists-retrieved-callback)))
;; There is a global file (~/.emacs.d/eproject.lst)
(defun prj-globalfile ()
(expand-file-name "eproject.lst"
(if (boundp 'user-emacs-directory) user-emacs-directory
"~/.emacs.d/")
))
;; with the list of all projects
(defvar prj-list)