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
from nose.tools import eq_ | |
from patch import Patch | |
from unittest import TestCase | |
class SampleOld: | |
SETTING = None | |
def __init__(self, msg): |
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
from __future__ import with_statement | |
from types import ClassType, MethodType, TypeType | |
class Patch(object): | |
class Missing: | |
pass | |
def __init__(self, obj, **kwargs): |
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 | |
from __future__ import with_statement | |
import os | |
import re | |
import shutil | |
import subprocess | |
import sys | |
import tempfile | |
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
# paths | |
export PATH="/usr/local/bin:/usr/local/pgsql/bin:/usr/local/git/bin/:/usr/local/redis:$PATH" | |
export MANPATH=/usr/local/man:/usr/local/pgsql/man:/usr/local/git/share/man:$MANPATH | |
# history | |
HISTFILE=$HOME/.zhistory | |
HISTSIZE=100000 | |
SAVEHIST=100000 | |
setopt INC_APPEND_HISTORY | |
setopt HIST_IGNORE_DUPS |
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
function! MakeSession() | |
let b:sessiondir = $HOME . "/.vim/sessions" . getcwd() | |
if (filewritable(b:sessiondir) != 2) | |
exe 'silent !mkdir -p ' b:sessiondir | |
redraw! | |
endif | |
let b:filename = b:sessiondir . '/session.vim' | |
exe "mksession! " . b:filename | |
endfunction | |
function! LoadSession() |