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
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import sys | |
stopwords = " a to the ltd is for of on will with pty" # not definitive | |
legalchars = "abcdefghijklmnopqrstuvwxyx1234567890" | |
replace = ( | |
(("Ã","Å","Ä","À","Á","Â","å","å","ä","à","á","â"),"a"), | |
(("Ç","Č","ç","č"),"c"), | |
(("É","È","Ê","Ë","Ĕ","è","ê","ë","ĕ","é"),"e"), |
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
set nocompatible | |
syntax on | |
filetype on | |
filetype plugin on | |
filetype indent on | |
set sidescroll=1 | |
set sidescrolloff=3 |
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
import urllib2 | |
import datetime | |
""" | |
Module for implementing BOM services. The BOMForcast class will fetch 7 days | |
of weather temperature and precis data. It also implements a handy iterator for | |
looping through forecast days. | |
See http://www.bom.gov.au/catalogue/data-feeds.shtml for more information on | |
data feeds available. |