This file contains hidden or 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
# -*- coding: utf-8 -*- | |
# Estas cedulas fueron emitidas por la JCE, pero no cumplen con el | |
# digito verificador, por lo cual deben ser verificadas por separado. | |
import csv | |
import cPickle | |
__author__ = 'eneldoserrata' | |
excepcionesCedulas = ['00000000018', '11111111123', '00100759932', '00105606543', '00114272360', '00200123640', |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>WebSocket Client</title> | |
<style> | |
#output { | |
border: solid 1px #000; | |
} | |
</style> | |
</head> |
This file contains hidden or 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
{% load mytemplatetags %} | |
<img src="{% get_thumbail_from_media 'my-image-inside-media-folder.png' '100x75' format='PNG' %}"/> |
This file contains hidden or 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
import os | |
import re | |
import argparse | |
app_path = os.path.split(os.path.split(__file__)[0])[0] | |
PROJECT_ROOT = os.path.abspath(app_path) | |
regexps = [ | |
(r'class=(["\'] *?)row-fluid(.*?["\']+)', r'class=\1row\2'), | |
(r'class=(["\'] *?)brand(.*?["\']+)', r'class=\1navbar-brand\2'), |
This file contains hidden or 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
from django.template import Library | |
register = Library() | |
@register.filter | |
def add_classes(widget, classes): | |
widget.field.widget.attrs['class'] = classes | |
return widget |