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
# -*- shell-script -*- | |
# For more information, see the following URL. | |
# http://zsh.sourceforge.net/Doc/Release/User-Contributions.html#Accessing-On_002dLine-Help | |
HELPDIR=~/.zsh_help | |
function init-help () { | |
[ -n "`alias run-help`" ] && unalias run-help | |
autoload run-help |
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
;; htmlutil - Some useful tools for working with HTML text and HTTP URLs | |
; This module provides tools for escaping HTML text, with HTML | |
; entities for special characters; and for escaping strings to be | |
; safely included into URLS; and back. | |
;; Primary commands: | |
; html-escape-str - Escape (quote) a character for HTML | |
; html-unescape-str - Un-escape an HTML entity string | |
; url-quote-str - Quote special characters in a URL string |
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
-W | |
-Wextra | |
-Wmissing-field-initializers | |
-Wignored-qualifiers | |
-Winitializer-overrides | |
-Wsemicolon-before-method-body | |
-Wmissing-method-return-type | |
-Wsign-compare | |
-Wunused-parameter | |
-W#pragma-messages |
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
######################### | |
# .gitignore file for Xcode4 / OS X Source projects | |
# | |
# Version 2.0 | |
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects | |
# | |
# 2013 updates: | |
# - fixed the broken "save personal Schemes" | |
# | |
# NB: if you are storing "built" products, this WILL NOT WORK, |
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
(when (and (eq system-type 'darwin) (eq window-system nil)) | |
(defun open-os-x-terminal () | |
(shell-command "open -a /Applications/Utilities/Terminal.app")) | |
(add-hook 'edit-server-start-hook 'open-os-x-terminal)) |
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
(defun ac-words-dictionary-enable () | |
"Add /usr/share/dict/words to `ac-dictionary-files' for this buffer." | |
(make-local-variable 'ac-dictionary-files) | |
(add-to-list 'ac-dictionary-files "/usr/share/dict/words" t) | |
(add-to-list 'ac-sources 'ac-source-dictionary t)) | |
(dolist (hook '(magit-log-edit-mode-hook | |
git-commit-mode-hook log-edit-mode-hook | |
textile-mode-hook markdown-mode-hook gfm-mode-hook | |
org-mode-hook text-mode-hook)) |
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
vagrant@precise64:/flycheck$ cask exec ert-runner -p javascript | |
Loading /flycheck/flycheck... | |
Running 4 tests (2013-12-18 17:06:15+0000) | |
Test flycheck-define-checker/javascript-gjslint backtrace: | |
format(nil) | |
apply(format nil) | |
(s-concat (apply (quote format) (nconc (list format-string) args)) " | |
(ert-runner-print (s-concat (apply (quote format) (nconc (list forma | |
(let (ad-return-value) (setq ad-return-value (with-no-warnings (appl | |
message(nil) |
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
(defun helm-window-init () | |
(let* ((wins (cdr (window-list))) | |
(mapping (mapcar | |
(lambda (w) (cons (buffer-name (window-buffer w)) w)) | |
wins))) | |
(if (> (length wins) 1) | |
;; There are more than 2 windows in this frame. | |
(setq helm-window-list-cache mapping) | |
;; There are 2 or fewer windows in this frame. | |
(call-interactively 'other-window) |
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
for gist title |
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
Warning: Could not retrieve fact fqdn | |
Warning: Config file /etc/puppet/hiera.yaml not found, using Hiera defaults | |
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install haskell-platform' returned 100: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) | |
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? | |
Error: /Stage[main]/Flycheck::Haskell/Package[haskell-platform]/ensure: change from purged to latest failed: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install haskell-platform' returned 100: E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable) | |
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it? | |
Error: Could not update: Execution of '/usr/bin/apt-get -q -y -o DPkg::Options::=--force-confold install haskell-platform' returned 100: E: Could not get lock /var/lib/dp |