Skip to content

Instantly share code, notes, and snippets.

@Htbaa
Htbaa / .gvimrc
Last active February 13, 2025 13:05
.gvimrc
" NOTE: a separate .vimrc is required for vim-plug: https://gist.github.com/Htbaa/b3c8d46db8936ad69c4c9bf46e55b51b
" Many thanks to https://raw.github.com/nvie/vimrc/master/vimrc
" http://nvie.com/posts/how-i-boosted-my-vim/
"set guifont="Droid Sans Mono:h10:b:cANSI"
"set guifont=Consolas:h10:b:cANSI
set number " always show line numbers
set smartindent
set hlsearch " highlight search terms
@Htbaa
Htbaa / .perltidyrc
Created July 21, 2010 12:13
.perltidyrc
# Perl Best Practices (plus errata) .perltidyrc file
-l=98 # Max line width is 98 cols
-i=4 # Indent level is 4 cols
-ci=4 # Continuation indent is 4 cols
#-st # Output to STDOUT
-se # Errors to STDERR
-vt=2 # Maximal vertical tightness
-cti=0 # No extra indentation for closing brackets
-pt=1 # Medium parenthesis tightness
-bt=1 # Medium brace tightness
@Htbaa
Htbaa / sources.json
Created March 13, 2010 23:17
Maximus sources example
{
"bah":{
"maxunit":{
"versions":{
"dev":{"url":"http://localhost:3000/module/download/bah.maxunit-dev.zip","deps":[]},
"1_02":{"url":"http://localhost:3000/module/download/bah.maxunit-1_02.zip","deps":[]},
"1_03":{"url":"http://localhost:3000/module/download/bah.maxunit-1_03.zip","deps":[]}
},
"desc":null
}
@Htbaa
Htbaa / rest-tstream.bmx
Created March 12, 2010 21:15
rest.mod TStream example
SuperStrict
Import htbaapub.rest
Local request:TRESTRequest = New TRESTRequest
Local stream:TStream = WriteStream("Moose-0.99.tar.gz")
request.SetStream(stream)
Local response:TRESTResponse = request.Call("http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/Moose-0.99.tar.gz", Null, "GET")
CloseStream(stream)