Skip to content

Instantly share code, notes, and snippets.

View kunev's full-sized avatar
🐻
I break things to see how they (don't) work | I pass the butter

Evgeni Ku kunev

🐻
I break things to see how they (don't) work | I pass the butter
View GitHub Profile
@kunev
kunev / bg_spell_check.vim
Created November 13, 2011 21:21
Turn on Bulgarian spell check in vim
setlocal spell spelllang=bg
@kunev
kunev / gist:1189922
Created September 2, 2011 21:08
verbose function call snooping
import inspect
def print_args(func):
argspec = inspect.getargspec(func)
expected_arguments, expected_varargs = argspec.args, argspec.varargs
def rslt(*args, **kwargs):
print 'Calling {0}\n\tArguments: {1}\n\tKeyword arguments: {2}'.format(func.__name__, args, kwargs)
return_val = func(*args, **kwargs)
print '\n\tReturned value: {0}'.format(return_val)
@kunev
kunev / pyServer.sh
Created August 25, 2011 14:36
Easy file sharing with commandline python
python -c 'import SimpleHTTPServer; SimpleHTTPServer.test()'