This file contains 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
""" | |
Script to download all the books in a humble bundle. | |
May work for other resources, but don't have anything to test against. | |
To use, run from the directory you want to download the books in. | |
Pass the "game" key as the first argument (look in the URL of your normal download page). | |
To restrict to certain formats, pass them as extra positional arguments on the command line. | |
Example: | |
python humble_bundle_download abcdef12345 mobi pdf |
This file contains 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
from IPython.parallel import Client | |
rc = Client() | |
dview = rc[:] | |
lview = rc.load_balanced_view() | |
with dview.sync_imports(): | |
import numpy | |
from sklearn import svm |