Skip to content

Instantly share code, notes, and snippets.

@martg0
martg0 / pyrss2gen-example.py
Created February 11, 2010 15:57
PyRSS2Gen example
"""
example of the usage of pyrss2gen library.
URL: http://www.dalkescientific.com/Python/PyRSS2Gen.html
"""
import datetime
import PyRSS2Gen
rss = PyRSS2Gen.RSS2(
title = "Andrew's PyRSS2Gen feed",
@martg0
martg0 / memcache-example.py
Created February 11, 2010 15:52
memcache Example
"""
See U{the MemCached homepage<http://www.danga.com/memcached>} for more about memcached.
"""
import memcache
mc = memcache.Client(['127.0.0.1:11211'], debug=0)
mc.set("some_key", "Some value")
value = mc.get("some_key")