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
" copy all this into a vim buffer, save it, then... | |
" source the file by typing :so % | |
" Now the vim buffer acts like a specialized application for mastering vim | |
" There are two queues, Study and Known. Depending how confident you feel | |
" about the item you are currently learning, you can move it down several | |
" positions, all the way to the end of the Study queue, or to the Known | |
" queue. | |
" type ,, (that's comma comma) |
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
# Usage: | |
# [sudo] gem install mechanize | |
# ruby tumblr-photo-ripper.rb | |
require 'rubygems' | |
require 'mechanize' | |
# Your Tumblr subdomain, e.g. "jamiew" for "jamiew.tumblr.com" | |
site = "doctorwho" |
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 toggle-transparency () | |
"Toggles the transparency of the current frame" | |
(interactive) | |
(let ((alpha-value 85)) | |
(cond | |
((equal (frame-parameter nil 'alpha) nil) ; case 1 | |
(set-frame-parameter (selected-frame) 'alpha '(alpha-value alpha-value))) ; action 1 | |
((= alpha-value (car (frame-parameter nil 'alpha))) ; case 2 | |
(set-frame-parameter (selected-frame) 'alpha '(100 100))) ; action 2 | |
(t ; default case |
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 test-search-forward-replace-match () | |
(interactive) | |
(save-excursion | |
(with-current-buffer (current-buffer) | |
(goto-char (point-min)) | |
(search-forward "test" nil t) | |
(replace-match "it works")))) |
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
javascript:(function()%7Bvar%20e%3Dwindow.location.href%3Bvar%20t%3De.indexOf(%22%3F%22)%3Bif(e.indexOf(%22utm_%22)%3Et)%7Bvar%20n%3De.replace(%2F(%5B%3F%26%5Dutm_(source%7Cmedium%7Cterm%7Ccampaign%7Ccontent)%3D%5B%5E%26%23%5D%2B)%2Fig%2C%22%22)%3Bif(n.charAt(t)%3D%3D%3D%22%26%22)%7Bn%3Dn.substr(0%2Ct)%2B%22%3F%22%2Bn.substr(t%2B1)%7Dif(n!%3De)%7Bhistory.replaceState(null%2Cnull%2Cn)%7D%7D%7D)(); |
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
;; PACKAGE: DASH | |
(use-package dash | |
:defer t | |
:ensure t) | |
(defun my-where-is (definition count &optional length) | |
"Return COUNT key sequences that invoke the command DEFINITTION as a string. | |
If COUNT is 0 then all key sequences will be returned. | |
The optional LENGTH argument limits the returned string to LENGTH number of chars. |
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
----------------------------------------------------- | |
-- WordPress Journal | |
----------------------------------------------------- | |
-- Created by Graham English | |
-- http://integral.grahamenglish.net | |
-- http://consulting.grahamenglish.net | |
-- http://www.grahamenglish.net/blog | |
----------------------------------------------------- | |
-- Released under the Creative Commons Attribution, ShareAlike license. | |
----------------------------------------------------- |
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
# | |
# bash completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names |
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
#!/usr/bin/env python | |
""" | |
This small script takes the URL to one of your Pownce Export XML-files | |
and downloads it including (as far as I can tell) all your files into a | |
folder, which you can specify with the -o option:: | |
$ python pownce-files.py <url_to_export> | |
Requirements: Python >= 2.5, < 3.0 | |
""" |
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
export PATH=/Users/patrick/Applications:/usr/local/git/bin:/usr/local/bin:/usr/local/sbin:/usr/bin:/opt/local/bin:/opt/local/sbin:/usr/local/mysql/bin:./cake/console:/Applications/xampp/xamppfiles/htdocs/cake_1.2_rc2/cake/console:$PATH | |
export TERM=xterm-color | |
export CLICOLOR=true | |
export LSCOLORS=exfxcxdxbxegedabagacad | |
export LC_CTYPE=en_US.UTF-8 | |
export EDITOR="mate -w" | |
export CVSEDITOR="mate -w" | |
export SVN_EDITOR="mate -w" | |
export PKG_CONFIG_PATH="/Library/Frameworks/Mono.framework/Versions/1.9.1/lib/pkgconfig:/opt/local/lib/pkgconfig" |
OlderNewer