This file contains hidden or 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
| (defvar erc-all-connectors ()) | |
| (setq erc-all-connectors (list | |
| (defun erc-twitter () | |
| "Connect to localhost's ticrd for Twitter" | |
| (interactive) | |
| (erc :server "localhost" | |
| :port 6668 | |
| :nick "sshirokov" | |
| :password "yeah_right")) |
This file contains hidden or 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
| ;; -*-Mode: emacs-lisp-*- | |
| (setq browse-url-browser-function 'browse-url-generic | |
| browse-url-generic-program "chromium-browser") |
This file contains hidden or 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
| ;; Gist loader | |
| (let ((default-directory "~/.emacs.d/elisp/gists/")) | |
| (normal-top-level-add-subdirs-to-load-path) | |
| load-path) | |
| ;; Load gists | |
| (load "chromium") ;; http://gist.github.com/223188 |
This file contains hidden or 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
| diff ~/tmp/ri-ruby.el ~/.emacs.d/elisp/ri-ruby.el | |
| 81a82,83 | |
| > (defun ri-get-ruby-script () (expand-file-name ri-ruby-script)) | |
| > | |
| 88c90 | |
| < ri-ruby-program ri-ruby-script)) | |
| --- | |
| > ri-ruby-program (ri-get-ruby-script))) |
This file contains hidden or 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
| (defadvice rinari-console (after rinari-console-prompt-fix first (&rest ignore) activate) | |
| "Change the prompt" | |
| (let ((pattern "^>> ") | |
| (inferior-ruby-first-prompt-pattern nil) | |
| (inferior-ruby-prompt-pattern nil)) | |
| (with-current-buffer "*ruby*" | |
| (set (make-local-variable 'inferior-ruby-first-prompt-pattern) pattern) | |
| (set (make-local-variable 'inferior-ruby-prompt-pattern) pattern)))) |
This file contains hidden or 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
| deb http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main | |
| deb-src http://ppa.launchpad.net/chromium-daily/ppa/ubuntu karmic main |
This file contains hidden or 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
| gem_cmd = ENV["GEM_CMD"] || 'sudo gem' | |
| STDIN.map { |l| l.strip }.each { |l| | |
| gem, versions = l.split(' ', 2) | |
| versions = versions.gsub(/[\(\)]/, '').split(', ') | |
| versions.each { |version| | |
| cmd = "#{gem_cmd} install #{gem} -v #{version}" | |
| puts cmd if ENV["PRETEND"] or ENV["ECHO"] | |
| system cmd unless ENV["PRETEND"] |
This file contains hidden or 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] | |
| grep-property = "!f() { git grep --cached -E \"[a-z0-9]+\\.$1\\.{0,1} *(<<|=){0,1}[ \\n;]{1,}\"; };f" |
This file contains hidden or 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
| (setf swank:*communication-style* :sigio) ;; :spawn takes a crap when loading lispbuilders-sdl from SLIME |
This file contains hidden or 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
| function __trace_prefix(prefix, args) { | |
| if(window.console === undefined) return undefined; | |
| else return window.console.log.apply(window.console, $.merge([prefix], args)); | |
| } | |
| function debug_log() { return __trace_prefix("DEBUG:", arguments); } |