Skip to content

Instantly share code, notes, and snippets.

View tiagoamx's full-sized avatar

Tiago Vilardi tiagoamx

View GitHub Profile
@tiagoamx
tiagoamx / pyenv+virtualenv.md
Created December 26, 2016 04:37 — forked from eliangcs/pyenv+virtualenv.md
Cheatsheet: pyenv, virtualenvwrapper, and pip

Cheatsheet: pyenv, virtualenvwrapper, and pip

Installation (for Mac OS)

Install pyenv with brew

brew update
brew install pyenv
@tiagoamx
tiagoamx / Forms_django.html
Last active December 1, 2016 18:47
Form Dinamico django horinzontal span6
{% if form.non_field_errors %}
<div class="alert alert-error">
{% for error in form.non_field_errors %}
{{error}}
{% endfor %}
</div>
{% endif %}
<form class="form-horizontal" action="{{ form_action }}" method="post"
enctype="multipart/form-data" id="form-novo-movimento" name="form-novo-movimento">
//@author @tiagoamx
// Clear the contents of the iframe after being loaded
$("#iframeid").contents().find("body").html("");
@tiagoamx
tiagoamx / gist:b97c8b725202e169be92
Created August 19, 2014 12:20
Remover acentuação em python.
import string
def remove_accents(data):
return ''.join(x for x in unicodedata.normalize('NFKD', data) if x in string.ascii_letters).lower()