Skip to content

Instantly share code, notes, and snippets.

View dmendiza's full-sized avatar
🏠
Working from home

Douglas Mendizábal dmendiza

🏠
Working from home
  • Middletown, CT
View GitHub Profile
@dmendiza
dmendiza / gist:6709874
Created September 26, 2013 04:30
Show the active python version in pyenv before every prompt
# Show the version inline
export PROMPT_COMMAND='echo -n [py:$(pyenv version-name)]'
# Show the version name in light blue on previous line
export PROMPT_COMMAND='echo -e "\033[0;36m[py:$(pyenv version-name)]\033[0m"'
@dmendiza
dmendiza / gist:1128953
Created August 6, 2011 02:51
Pretty print code
<link rel="stylesheet" type="text/css" href="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.css" />
<script src="http://google-code-prettify.googlecode.com/svn/trunk/src/prettify.js"></script>
<body onload="prettyPrint()">
@dmendiza
dmendiza / .hgignore
Created May 27, 2011 23:36
Mercurial Ignore
#########################
# Mercurial Ignore File
#########################
# Global syntax patterns
syntax: glob
# directories
bin/
obj/