Skip to content

Instantly share code, notes, and snippets.

@tinytang
tinytang / xiami_decode.py
Created April 30, 2012 03:17 — forked from dndx/xiami_decode.py
Xiami URL Decoder
import urllib2
def xiami_decode(s):
s = s.strip()
if not s:
return False
result = []
line = int(s[0])
rows = len(s[1:]) / line
extra = len(s[1:]) % line
@tinytang
tinytang / proxy.pac
Created November 25, 2011 03:09 — forked from ayanamist/proxy.pac
My Pac File for Auto Proxy
var PROXY = {};
PROXY.direct = "DIRECT";
PROXY.goagent = "PROXY 127.0.0.1:8087";
PROXY.vps = "PROXY 127.0.0.1:8123";
PROXY.edu = "PROXY 127.0.0.1:4080";
PROXY.adblock = "PROXY 127.0.0.1:8080";
PROXY.acc = PROXY['goagent'];
var DEFAULT = PROXY['direct'];
var ADBLOCK = {