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
# Edit: Changes inspired by comments from HN users jules and anthonyb | |
import os | |
for i in range(1,20): | |
os.system("wget http://s3.amazonaws.com/bearwithclaws.baconfile.com/hackermonthly-issue%03d.zip" % i) |
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 an overly complicated method I threw together to do something I could have easily done by | |
tallying on paper or something similar. That's not how I roll. | |
The method below will calculate the numerical position of a spreadsheet column based on its alphabetic | |
representation. I use a lot of VBA and Excel formulas at work that need this information to function | |
properly and I got tired to counting these columns manually - a real chore when you start getting into | |
columns represented by multiple characters. | |
NOTE: Excel is kind of inconsistent with its numbering format. Depending on what you're trying to |
NewerOlder