Skip to content

Instantly share code, notes, and snippets.

@Chairo
Chairo / fetion.py
Created July 20, 2012 03:02 — forked from liuzhoou/fetion.py
fetion
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import cookielib
import urllib
import urllib2
import re
url_login = 'http://f.10086.cn/im/login/inputpasssubmit1.action'
url_logout = 'http://f.10086.cn//im/index/logoutsubmit.action?t='
@Chairo
Chairo / gist:2849927
Created June 1, 2012 07:29 — forked from zythum/gist:2848881
google收录的敏感词
@Chairo
Chairo / xiami_decode.js
Created May 11, 2012 04:13 — forked from fanzeyi/xiami_decode.js
Xiami URL Decoder
function decode(loca) {
var result = [], url = "";
var line, rows, extra;
loca = loca.trim();
if(loca === "") {
return "";
}
line = Number(loca[0]);
rows = Math.floor((loca.length - 1) / line);
extra = (loca.length - 1) % line;
@Chairo
Chairo / xiami_decode.py
Created May 11, 2012 04:12 — 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