Mailing List App
- Web UI
- Create lists
- View mails
- Per-list config
- Recipients
- Signatures
- Temporary blocks on recipients
- Attachment handling (disallowreplace with url)
<html> | |
<head> | |
<title>untitled</title> | |
<style> | |
#calendar { | |
border: 1px solid grey; | |
width: 310px; | |
background-color: #5C9DB7; | |
border-radius: 5px; | |
-moz-border-radius: 5px; |
from MySQLdb.cursors import SSDictCursor | |
def iterate_query(query, connection, arraysize=1): | |
c = connection.cursor(cursorclass=SSDictCursor) | |
c.execute(query) | |
while True: | |
nextrows = c.fetchmany(arraysize) | |
if not nextrows: | |
break |
def substrings(s): | |
length = len(s) | |
for i in range(length): | |
for ii in range(i, length): | |
yield s[i:ii+1] |
""" | |
$ pip install pygments | |
""" | |
import sys | |
from pprint import pformat | |
from pygments import highlight | |
from pygments.lexers import PythonLexer | |
from pygments.formatters import TerminalFormatter |
Mailing List App
alpha2 | alpha3 | numeric | name | |
---|---|---|---|---|
AF | AFG | 004 | Afghanistan | |
AX | ALA | 248 | Åland Islands | |
AL | ALB | 008 | Albania | |
DZ | DZA | 012 | Algeria | |
AS | ASM | 016 | American Samoa | |
AD | AND | 020 | Andorra | |
AO | AGO | 024 | Angola | |
AI | AIA | 660 | Anguilla | |
AQ | ATA | 010 | Antarctica |
CREATE TABLE `currency` ( | |
`code` varchar(4) NOT NULL, | |
`name` varchar(64) NOT NULL, | |
`major_symbol` char(3) DEFAULT NULL, | |
`minor_symbol` char(3) DEFAULT NULL, | |
PRIMARY KEY (`code`) | |
) DEFAULT CHARSET=utf8; | |
INSERT INTO `currency` (`code`,`name`,`major_symbol`,`minor_symbol`) | |
VALUES |
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://earth.google.com/kml/2.2"> | |
<Document> | |
<name>Greenway.kml</name> | |
<Style id="sh_ylw-pushpin"> | |
<IconStyle> | |
<scale>1.3</scale> | |
<Icon> | |
<href>http://maps.google.com/mapfiles/kml/pushpin/ylw-pushpin.png</href> | |
</Icon> |
# -*- coding: utf-8 -*- | |
""" | |
# Pull latest 24 hour data every x hours | |
# 46 locations, 402,960 data points per year | |
marine.find({'location':'aberporth'}) | |
marine.find({'location':'aberporth', 'day':19, 'month':3, 'year':2011}) | |
marine.find({'location':'aberporth', 'datetime': datetime(19, 3, 2011, 21, 0)}) | |
marine.find({'datetime': datetime(19, 3, 2011, 21, 0)}) |
# -*- coding: utf-8 -*- | |
"""Port of the Zalgo translator at http://eeemo.net/ | |
To invoke the hive-mind representing chaos. | |
Invoking the feeling of chaos. | |
With out order. | |
The Nezperdian hive-mind of chaos. Zalgo. | |
He who Waits Behind The Wall. | |
ZALGO |