Skip to content

Instantly share code, notes, and snippets.

@fmoralesc
fmoralesc / pipelines.py
Created October 20, 2011 03:23
Shell Pipelines for Python
from subprocess import Popen, PIPE
import re
import glob
import shlex
class Pipeline(object):
def __init__(self, descriptor=None):
self.steps = []
if descriptor:
for step in descriptor.split("|"):
anonymous
anonymous / xbl.py
Created October 3, 2011 02:24
Python script to get Xbox Live friends
#!/usr/local/bin/python
import urllib
import urllib2
import re
import json
import htmlentitydefs
import cookielib
LOGIN,PASSWD = "yourlogin@someemail.com", "yourpassword"