Skip to content

Instantly share code, notes, and snippets.

@phektus
phektus / simplecometclient.py
Created September 4, 2012 05:14 — forked from aparrish/simplecometclient.py
simple python comet client
import email.utils # for rfc2822 formatted current timestamp
import requests
class CometClient(object):
def __init__(self, last_modified=None):
if last_modified is None:
self.last_modified = email.utils.formatdate()
else:
self.last_modified = last_modified
@phektus
phektus / hack.sh
Created April 1, 2012 13:20 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#