This file contains 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 | |
import datetime | |
from dateutil.parser import parse | |
# From http://www.huffingtonpost.com/2013/01/01/religious-holidays-2013_n_2372650.html | |
raw_holidays = """ | |
Baha'i Holidays 2013: | |
Jan 20 - World Religion Day | |
Mar 2-20 - Baha'i Fast | |
Mar 20 - Nowruz (Baha'i, Zoroastrian, Iranian New Year) |
This file contains 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
gnome-cups-manager | |
------------------ | |
Once upon a time there was a printer who lived in the woods. He was a | |
lonely printer, because nobody knew how to configure him. He hoped | |
and hoped for someone to play with. | |
One day, the wind passed by the printer's cottage. "Whoosh," said the | |
wind. The printer became excited. Maybe the wind would be his | |
friend! |
This file contains 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.db import models | |
optional = dict(blank=True, null=True) | |
class Foo(models.Model): | |
bar = models.CharField() | |
baz = models.CharField(**optional) |