Skip to content

Instantly share code, notes, and snippets.

@kallam
kallam / bugle-rss.xml
Last active July 28, 2024 22:39
Modified version of the original Bugle RSS feed with broken links replaced with episodes hosted on http://gamesplusone.com/thebugle/
<?xml version="1.0"?>
<rss xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd" version="2.0">
<channel>
<title>The Bugle - Audio Newspaper For A Visual World</title>
<description> John Oliver and Andy Zaltzman, fully-qualified Grand Masters of Satirical Jabber, bridge the watery rift through the healing medium of topical podcastery.</description>
<itunes:subtitle> John Oliver and Andy Zaltzman, fully-qualified Grand Masters of Satirical Jabber, bridge the watery rift through the healing medium of topical podcastery.</itunes:subtitle>
<itunes:category text=""/>
<itunes:author>Times Online</itunes:author>
<itunes:image href="http://extras.thetimes.co.uk/public/podcastimages/700X700_thebugle.jpg"/>
<itunes:owner>
@kallam
kallam / parse_fasta.py
Last active August 29, 2015 14:16
Parse fasta file
sequences = []
sequence = {}
text = ""
f = open("in.txt", "r")
for line in f:
if line[0] == '>':
if text != "":
sequence["text"] = text
sequences.append(sequence)
@kallam
kallam / gae_kickstart.py
Created October 16, 2013 18:15
Code snippet for setting up Jinja2 on Google App Engine for Python. Templates are accessed from /templates/
import webapp2
import jinja2
import os
import re
jinja_environment = jinja2.Environment(autoescape=True,
loader=jinja2.FileSystemLoader(os.path.join(os.path.dirname(__file__),
'templates')))
# Base page handler