examine gmail box

FPNP p241

Read more

list gmail box in twisted python

FPNP, page 236

Read more

gmail, login, python, twisted

as title. FPNP page 228.

Read more

python download url data

To download something in python, it is good to use urllib2.Request other than urllib2.urlopen. the reason is, the former can handle 302 redirection automatically. the core part of che code is as below.

Read more

download wallpapers from interfacelift.com

in Python. Customize the 'wait' and 'resolution' variables to satisfy your needs.

Read more

一条命令下载整个Douban Album

主要是为了练习命令行。

Read more

阶乘和排列组合

代码如下:

Read more

javascript: 显示/隐藏某内容

从其他同事的脚本上看来的代码,记下,省得自己写同样的代码。功能如题。

Read more

python 检测变量类型

如题。

Read more

python: email date format

emai中的时间格式转换。先提取时间字段,转成tuple,变秒,再格式化。其中提取时间字段这部分,由于Email的日期格式多样,因此不能用统一的日期格式,需要Utils的相关模块来猜测提取。至于提取之后的格式化,则有成法可依。

Read more