Skip to content

Instantly share code, notes, and snippets.

View pkqk's full-sized avatar
📯
💨 🎶 🎵 🎶

Adam Sven Johnson pkqk

📯
💨 🎶 🎵 🎶
View GitHub Profile
@pkqk
pkqk / uniq.py
Last active December 25, 2015 09:29 — forked from ntlk/uniq.py
import sys
def process_lines(lines):
last_line = None
for line in lines:
if line != last_line:
sys.stdout.write(line)
last_line = line
process_lines(sys.stdin.readlines())
@pkqk
pkqk / 7books.py
Created November 11, 2010 17:43 — forked from tomcritchlow/7books.py
import cgi
import os
from google.appengine.ext.webapp import template
from google.appengine.api import users
from google.appengine.ext import webapp
from google.appengine.ext.webapp.util import run_wsgi_app
from google.appengine.ext import db
from google.appengine.api import memcache
from google.appengine.api import urlfetch