YR2TRQQAEELAEJLABFCOMUZRYEQE5Q5NIGQFQHQKB7MWM63JZUPQC
result = tempfile.NamedTemporaryFile(delete=False, dir='/Users/edwlan/sandbox/unsorted', prefix='pythonsnippets_', suffix='.py')
result = tempfile.NamedTemporaryFile(delete=False, dir=os.path.join(os.environ['HOME'], 'sandbox','unsorted'), prefix='pythonsnippets_', suffix='.py')
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin:/Users/edwlan/.rvm/gems/ruby-1.9.2-p180/bin:/Users/edwlan/.rvm/gems/ruby-1.9.2-p180@global/bin:/Users/edwlan/.rvm/rubies/ruby-1.9.2-p180/bin:/Users/edwlan/.rvm/bin:/opt/local/bin:/sbin/usr/sbin:/Users/edwlan/.cabal/bin:/Users/edwlan/bin:/Developer/usr/bin
export PATH=/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X11/bin:/opt/local/bin:/sbin/usr/sbin:$PATH
PROMPT_COMMAND='echo -ne "\033]0;${USER}@${HOSTNAME}: ${PWD}\007"'
HOSTNAME=`hostname -f`
PROMPT_COMMAND='echo -ne "\033]0;${USER}@$HOSTNAME: ${PWD}\007"'
cmdtermtitle() {
echo -ne "\033]0;${USER}@$HOSTNAME: $1\007"
}
if [[ $TERM != "linux" ]]; then
# add-zsh-hook preexec cmdtermtitle
fi
termtitle() {
npwd=${PWD/#$HOME/\~}
echo -ne "\033]0;${USER}@$HOSTNAME: ${npwd}\007"
}
if [[ $TERM != "linux" ]]; then
add-zsh-hook precmd termtitle
fi
export PAGER="/bin/sh -c \"unset PAGER;col -b -x | \
vim -R -c 'set ft=man nomod nolist' -c 'map q :q<CR>' \
-c 'map <SPACE> <C-D>' -c 'map b <C-U>' \
-c 'nmap K :Man <C-R>=expand(\\\"<cword>\\\")<CR><CR>' -\""
#export PAGER="/bin/sh -c \"unset PAGER;col -b -x | \
#vim -R -c 'set ft=man nomod nolist' -c 'map q :q<CR>' \
#-c 'map <SPACE> <C-D>' -c 'map b <C-U>' \
#-c 'nmap K :Man <C-R>=expand(\\\"<cword>\\\")<CR><CR>' -\""
export PAGER="less"
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._-]=** r:|=**'
zstyle ':completion:*' matcher-list 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._]=** r:|=**' 'm:{[:lower:][:upper:]}={[:upper:][:lower:]} r:|[._]=** r:|=**'
source $1*/bin/activate
env=$1
if [[ $env == "" ]]; then
counter=1
typeset -A choices
unset choice
for x in `ls`; do
echo $counter\) $x
choices[$counter]=$x
(( counter++ ))
done
echo -n "your choice? "
choice=-1
read choice
if [[ $choice == "" ]]; then
return
fi
env=$choices[$choice]
echo "you chose $env"
fi
source $env/bin/activate
export PERL_LOCAL_LIB_ROOT="/Users/edwlan/perl5";
export PERL_MB_OPT="--install_base /Users/edwlan/perl5";
export PERL_MM_OPT="INSTALL_BASE=/Users/edwlan/perl5";
export PERL5LIB="/Users/edwlan/perl5/lib/perl5/darwin-thread-multi-2level:/Users/edwlan/perl5/lib/perl5";
export PATH="/Users/edwlan/perl5/bin:$PATH";
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export CPATH=$CPATH:$HOME/include
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/lib
export VIMCLOJURE_SERVER_JAR="$HOME/lib/vimclojure/server-2.3.6.jar"
set_colors()
{
local base03="002b36"
local base02="073642"
local base01="586e75"
local base00="657b83"
local base0="839496"
local base1="93a1a1"
local base2="eee8d5"
local base3="fdf6e3"
local yellow="b58900"
local orange="cb4b16"
local red="dc322f"
local magenta="d33682"
local violet="6c71c4"
local blue="268bd2"
local cyan="2aa198"
local green="859900"
echo -en "\e]P0${base02}" #black
echo -en "\e]P8${base03}" #brblack
echo -en "\e]P1${red}" #red
echo -en "\e]P9${orange}" #brred
echo -en "\e]P2${green}" #green
echo -en "\e]PA${base01}" #brgreen
echo -en "\e]P3${yellow}" #yellow
echo -en "\e]PB${base00}" #bryellow
echo -en "\e]P4${blue}" #blue
echo -en "\e]PC${base0}" #brblue
echo -en "\e]P5${magenta}" #magenta
echo -en "\e]PD${violet}" #brmagenta
echo -en "\e]P6${cyan}" #cyan
echo -en "\e]PE${base1}" #brcyan
echo -en "\e]P7${base2}" #white
echo -en "\e]PF${base3}" #brwhite
clear #for background artifacting
}
if [ "$TERM" = "linux" ]; then
set_colors
fi
unset -f set_colors
# vim: set filetype=sh:
set nocompatible
"NeoBundle Scripts-----------------------------
if has('vim_starting')
set nocompatible " Be iMproved
" Required:
set runtimepath+=$HOME/.vim/bundle/neobundle.vim/
endif
" Required:
call neobundle#begin(expand("$HOME/.vim/bundle"))
" Let NeoBundle manage NeoBundle
" Required:
NeoBundleFetch 'Shougo/neobundle.vim'
" My Bundles here:
NeoBundle 'vim-voom/VOoM'
NeoBundle 'vim-scripts/VimClojure'
NeoBundle 'scrooloose/nerdcommenter'
NeoBundle 'kien/rainbow_parentheses.vim'
NeoBundle 'kovisoft/slimv'
NeoBundle 'scrooloose/syntastic'
NeoBundle 'godlygeek/tabular'
NeoBundle 'ytsunetsune/unite-outline-euslisp'
NeoBundle 'Shougo/unite-outline'
NeoBundle 'Shougo/unite.vim'
NeoBundle 'bling/vim-airline'
NeoBundle 'guns/vim-clojure-static'
NeoBundle 'altercation/vim-colors-solarized'
NeoBundle 'tpope/vim-fireplace'
NeoBundle 'tpope/vim-fugitive'
NeoBundle 'Blackrush/vim-gocode'
NeoBundle 'Twinside/vim-haskellFold'
NeoBundle 'ivanov/vim-ipython'
NeoBundle 'groenewege/vim-less'
NeoBundle 'terryma/vim-multiple-cursors'
NeoBundle 'vim-pandoc/vim-pandoc'
NeoBundle 'tpope/vim-repeat'
NeoBundle 'tpope/vim-surround'
NeoBundle 'christoomey/vim-tmux-navigator'
NeoBundle 'sjl/gundo.vim'
NeoBundle 'jmcantrell/vim-virtualenv'
NeoBundle 'vim-scripts/pydoc.vim'
" Required:
call neobundle#end()
" Required:
filetype plugin indent on
" If there are uninstalled bundles found on startup,
" this will conveniently prompt you to install them.
NeoBundleCheck
"End NeoBundle Scripts-------------------------
autocmd FileType pandoc set linebreak tw=110 noexpandtab nosmartindent autoindent
autocmd FileType pantondoc set linebreak tw=110 noexpandtab nosmartindent autoindent
autocmd FileType markdown set linebreak tw=110 noexpandtab nosmartindent autoindent
let g:snips_author="Edward Langley"
let g:pandoc_no_empty_implicits=1
let g:pandoc_use_hard_wraps = 1
"let g:pandoc_auto_format = 1
python << EOS
def FmtTable(line1,line2):
import vim, string
inputSeparator='|'
outputSeparator="|"
cb=vim.current.buffer.range(int(line1)-1,int(line2))
colLen=[]
# first we collect col lengths and calculate the longest
for line in cb[1:]:
spLine=line.split(inputSeparator)
for i in range(len(spLine)):
try:
if len(spLine[i]) > colLen[i]:
colLen[i] = len(spLine[i])
except IndexError:
colLen.append(len(spLine[i]))
tmpBuf=[]
# Then we fill the cols with spaces
for line in cb[1:]:
spLine=line.split(inputSeparator)
newLine=outputSeparator.join([spElt.ljust(colLen[i]) for i, spElt in enumerate(spLine)]) + outputSeparator
tmpBuf.append(newLine)
cb[1:]=tmpBuf[:]
EOS
"python << EOS
"def FmtTable(line1,line2):
" import vim, string
" inputSeparator='|'
" outputSeparator="|"
" cb=vim.current.buffer.range(int(line1)-1,int(line2))
" colLen=[]
" # first we collect col lengths and calculate the longest
" for line in cb[1:]:
" spLine=line.split(inputSeparator)
" for i in range(len(spLine)):
" try:
" if len(spLine[i]) > colLen[i]:
" colLen[i] = len(spLine[i])
" except IndexError:
" colLen.append(len(spLine[i]))
" tmpBuf=[]
" # Then we fill the cols with spaces
" for line in cb[1:]:
" spLine=line.split(inputSeparator)
" newLine=outputSeparator.join([spElt.ljust(colLen[i]) for i, spElt in enumerate(spLine)]) + outputSeparator
" tmpBuf.append(newLine)
" cb[1:]=tmpBuf[:]
"EOS
set undodir=~/.vim/undodir
set undofile
set undolevels=10000
set undoreload=100000
set foldlevel=9
set hidden
map <leader>f :Unite file<CR>i
map <leader>q :Unite buffer<CR>i
map <F7> :Unite outline i
imap <F7> :Unite outline i
map <C-g> :Unite outline i
imap <C-g> :Unite outline i
if &term =~ "xterm\\|rxvt"
" use an orange cursor in insert mode
let &t_SI = "\<Esc>]12;blue\x7"
" use a red cursor otherwise
let &t_EI = "\<Esc>]12;yellow\x7"
silent !echo -ne "\033]12;yellow\007"
" reset cursor when vim exits
autocmd VimLeave * silent !echo -ne "\033]112\007"
" use \003]12;gray\007 for gnome-terminal
endif
" Pantondoc
let g:pantondoc_handled_filetypes = ["markdown", "rst", "textile"]
let g:pantondoc_enabled_modules = ["formatting", "folding",
\"bibliographies", "completion", "externals", "metadata",
\"menu", "executors", "motions"]
let g:pantondoc_formatting_settings = "h"
let g:lisp_rainbow=1
let g:slimv_disable_clojure=1
let g:vimclojure#HighlightBuiltins = 1
let g:vimclojure#ParenRainbow = 1
set laststatus=2
" airline
"
let g:airline_theme="murmur"
" split settings
"
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
set splitbelow
set splitright
let g:syntastic_python_checkers = ['python']
if filereadable(".vim.custom")
so .vim.custom
endif