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
/usr/bin/python /home/nic/PycharmProjects/famepoints/example.py | |
scrobbling page 0... | |
scrobbling page 1... | |
scrobbling page 2... | |
scrobbling page 3... | |
scrobbling page 4... | |
scrobbling page 5... | |
scrobbling page 6... | |
scrobbling page 7... | |
scrobbling page 8... |
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
print "\tCover Image..." | |
picture_page = "http://stunjelly.com/cover/?" + urllib.urlencode({"title": bundle["name"], "author": bundle["author"]}) | |
opener1 = urllib2.build_opener() | |
page1 = opener1.open(picture_page) | |
my_picture = page1.read() | |
filename_img = os.path.join(directory, "OEBPS", "Images", "stunjelly-cover.jpg") | |
fout = open(filename_img, "w+") | |
fout.write(my_picture) | |
fout.close() |
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 random | |
#################### | |
# THE RULES | |
# 1. Play Roulette once a week for 3 hours for a year | |
# 2. Bring 500 | |
# 3. Play Minimum bet on two tables on red | |
# 4a. If red continue to play minimum bet | |
# 4b. If black double bet (continue to double until red) | |
# 4c. If unable to double bet, reset bet to minimum |
NewerOlder