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 cmdtermtitlefitermtitle() {npwd=${PWD/#$HOME/\~}echo -ne "\033]0;${USER}@$HOSTNAME: ${npwd}\007"}if [[ $TERM != "linux" ]]; thenadd-zsh-hook precmd termtitlefi
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=$1if [[ $env == "" ]]; thencounter=1typeset -A choicesunset choicefor x in `ls`; doecho $counter\) $xchoices[$counter]=$x(( counter++ ))doneecho -n "your choice? "choice=-1read choiceif [[ $choice == "" ]]; thenreturnfienv=$choices[$choice]echo "you chose $env"fisource $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 scriptingexport GOPATH=$HOME/goexport PATH=$PATH:$GOPATH/binexport CPATH=$CPATH:$HOME/includeexport LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/libexport 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}" #blackecho -en "\e]P8${base03}" #brblackecho -en "\e]P1${red}" #redecho -en "\e]P9${orange}" #brredecho -en "\e]P2${green}" #greenecho -en "\e]PA${base01}" #brgreenecho -en "\e]P3${yellow}" #yellowecho -en "\e]PB${base00}" #bryellowecho -en "\e]P4${blue}" #blueecho -en "\e]PC${base0}" #brblueecho -en "\e]P5${magenta}" #magentaecho -en "\e]PD${violet}" #brmagentaecho -en "\e]P6${cyan}" #cyanecho -en "\e]PE${base1}" #brcyanecho -en "\e]P7${base2}" #whiteecho -en "\e]PF${base3}" #brwhiteclear #for background artifacting}if [ "$TERM" = "linux" ]; thenset_colorsfiunset -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 autoindentautocmd FileType pantondoc set linebreak tw=110 noexpandtab nosmartindent autoindentautocmd FileType markdown set linebreak tw=110 noexpandtab nosmartindent autoindentlet g:snips_author="Edward Langley"let g:pandoc_no_empty_implicits=1let g:pandoc_use_hard_wraps = 1"let g:pandoc_auto_format = 1
python << EOSdef FmtTable(line1,line2):import vim, stringinputSeparator='|'outputSeparator="|"cb=vim.current.buffer.range(int(line1)-1,int(line2))colLen=[]# first we collect col lengths and calculate the longestfor 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 spacesfor line in cb[1:]:spLine=line.split(inputSeparator)newLine=outputSeparator.join([spElt.ljust(colLen[i]) for i, spElt in enumerate(spLine)]) + outputSeparatortmpBuf.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/undodirset undofileset undolevels=10000set undoreload=100000set foldlevel=9set hiddenmap <leader>f :Unite file<CR>imap <leader>q :Unite buffer<CR>imap <F7> :Unite outline iimap <F7> :Unite outline imap <C-g> :Unite outline iimap <C-g> :Unite outline iif &term =~ "xterm\\|rxvt"" use an orange cursor in insert modelet &t_SI = "\<Esc>]12;blue\x7"" use a red cursor otherwiselet &t_EI = "\<Esc>]12;yellow\x7"silent !echo -ne "\033]12;yellow\007"" reset cursor when vim exitsautocmd VimLeave * silent !echo -ne "\033]112\007"" use \003]12;gray\007 for gnome-terminalendif" Pantondoclet 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=1let g:slimv_disable_clojure=1let g:vimclojure#HighlightBuiltins = 1let g:vimclojure#ParenRainbow = 1set 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 splitbelowset splitrightlet g:syntastic_python_checkers = ['python']if filereadable(".vim.custom")so .vim.customendif