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 | |
set -e | |
# INSTALLATION OPTIONS | |
TEST=yes | |
SRC=yes | |
UNPACK=yes | |
die () { echo "Wrong argument: $@"; exit; } |
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 | |
die () { echo "$@"; exit; } | |
usage () { | |
cat <<USAGE | |
Description: | |
Setup the current hcss track and build to the environment |
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
" Run procesing from the command line | |
function! RunProcessing() | |
let s:fullpath = expand("%:p:h") | |
let s:splitpath = split(s:fullpath, '/') | |
let s:processing_project = s:splitpath[-1] | |
echo "Launching " .s:processing_project | |
execute "!processing-java --sketch=" .s:fullpath. " --output=/tmp/" .s:processing_project. " --run --force &" | |
endfunction |
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
Dungeon Crawl Stone Soup version 0.11.2 (console) character file. | |
Taurus the Sneak (Halfling Assassin) Turns: 3653, Time: 00:46:22 | |
HP 38/39 AC 5 Str 10 XL: 6 Next: 1% | |
MP 5/5 EV 14 Int 11 God: Trog [*.....] | |
Gold 53 SH 0 Dex 18 Spells: 0 memorised, 5 levels left | |
Res.Fire : . . . See Invis. : . a - +2 dagger {=f} | |
Res.Cold : . . . Warding : . w - +0 leather armour |
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
set statusline = | |
" Buffer number | |
set statusline +=[%n] | |
" File description | |
set statusline +=%f\ %h%m%r%w | |
" Filetype | |
set statusline +=%y | |
" Name of the current function (needs taglist.vim) | |
set statusline +=\ [Fun(%{Tlist_Get_Tagname_By_Line()})] | |
" Name of the current branch (needs fugitive.vim) |
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
nnoremap <C-S> :Sscratch<CR> | |
augroup scratch | |
autocmd! | |
autocmd BufEnter __Scratch__ nnoremap <C-S> :q<CR> | |
autocmd BufLeave __Scratch__ nnoremap <C-S> :Sscratch<CR> | |
augroup END |
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
nnoremap q) va) " expand | |
vnoremap q) a) " expand in visual mode (keep expanding) | |
vnoremap q( <ESC>%f(va) " collapse | |
nnoremap q] va] | |
vnoremap q] a] | |
vnoremap q[ <ESC>%f[va] | |
nnoremap q} va} | |
vnoremap q} a} |
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
def elementwise(fn): | |
def newfn(arg): | |
if hasattr(arg,'__getitem__'): # is a Sequence | |
return type(arg)(map(fn, arg)) | |
else: | |
return fn(arg) | |
return newfn | |
@elementwise |
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
# | |
# Python Template Markup Language | |
# Simple Python DSL for HTML and (a little) CSS templating. | |
# | |
# Example: | |
# | |
# from ptml import * | |
# | |
# with html5 as out: | |
# with head: |