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
" Vim plugin file - openurl | |
" | |
" Last Change: 13 Mar 2013 | |
" Maintainer: Milly | |
" Purpose: Open url or file with default viewer. | |
" Options: | |
" g:openurl_regex - URL match regex (default: empty) | |
" g:openurl_dos_path - Enable DOS path (default: 0) | |
" g:openurl_encoding - Character encoding for URL (default: auto detect) | |
" g:openurl_highlight - Highlight URL (default: 1) |
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
#!/bin/bash | |
# From http://sector-5.net/archives/irssi-python-for-irssi-0-8-15/ | |
cd irssi-python && | |
svn revert -R . && | |
patch -p0 -i ../irssi-python-for-0.8.14.patch | |
sed -i 's/ docs//' Makefile.am && | |
sed -i 's|docs/Makefile||' 'configure.in' && | |
sed -i 's/pyconstants.c/pycore.c/' 'configure.in' && | |
cp /usr/share/autoconf-archive/ac_python_devel.m4 . && | |
libtoolize -f -c && |
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/ruby | |
require 'rubygems' | |
require 'rubygems/commands/fetch_command' | |
class Gem::Commands::FetchCommand | |
def add_version_option_with_fetch_depends | |
add_version_option_without_fetch_depends | |
add_option('-y', '--[no-]dependencies', | |
"Fetch dependent gems") do |value, options| |
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
class SExpressionParser | |
def initialize(expression) | |
@tokens = expression.scan /[()]|\w+|".*?"|'.*?'/ | |
end | |
def peek | |
@tokens.first | |
end | |
def next_token |
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
"\e[1~": beginning-of-line | |
"\e[4~": end-of-line | |
"\e[5~": history-search-backward | |
"\e[6~": history-search-forward | |
"\e[3~": delete-char | |
"\e[2~": quoted-insert | |
"\e[5C": forward-word | |
"\e[5D": backward-word | |
"\e\e[C": forward-word | |
"\e\e[D": backward-word |
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
// Stuart Powers | |
function write_window(content) { | |
top.consoleRef=window.open('', | |
'git-r-done', | |
+',menubar=1' | |
+',toolbar=1' | |
+',status=1' | |
+',scrollbars=1' | |
+',resizable=1'); |
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
import flask | |
class HelloApp(flask.Flask): | |
def __init__(self, import_name): | |
super(HelloApp, self).__init__(import_name) | |
self.route("/hello")(self.hello) | |
def hello(self): | |
return "Hello, world!" |
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
import flask | |
class RoutingData(object): | |
def __init__(self, args, kwargs): | |
super(RoutingData, self).__init__() | |
self.args = args | |
self.kwargs = kwargs | |
def route(*args, **kwargs): | |
def wrap(fn): |
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
#!/bin/sh | |
## | |
# This is a script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# Run in interactive mode with: | |
# $ sh -c "$(curl -sL https://raw.github.com/gist/2108403/hack.sh)" | |
# | |
# or run it without prompt questions: |
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 sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
OlderNewer