This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Emtpy. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib2 | |
url = "http://download.thinkbroadband.com/10MB.zip" | |
file_name = url.split('/')[-1] | |
u = urllib2.urlopen(url) | |
f = open(file_name, 'wb') | |
meta = u.info() | |
file_size = int(meta.getheaders("Content-Length")[0]) | |
print "Downloading: %s Bytes: %s" % (file_name, file_size) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** This is high-level function. | |
* It must react to delta being more/less than zero. | |
*/ | |
function handle(delta) { | |
if (delta < 0) | |
…; | |
else | |
…; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<link rel="stylesheet" type="text/css" href="http://x.libdd.com/farm1/23fcf3/8571658f/D7C90.css"></link> | |
<script type="text/javascript" src="http://x.libdd.com/farm1/23fcf3/d40262ff/932EF.js"></script> | |
</head> | |
<body onload="prettyPrint()"> | |
自定义css | |
/* Pretty printing styles. Used with prettify.js. */ | |
/* Vim sunburst theme by David Leibovic */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import os | |
import itertools | |
import mimetypes | |
import mimetools | |
import urllib | |
import urllib2 | |
import cgi | |
try: |