|Code Listing by Simon Brunning|
This function will split and (optionally) validate UK postcodes.
Each item has an equal chance of being picked. The iterator is processed only once, and only the selected items are stored, making this function memory efficient.
This is based on idea from Richard Papworth's recipe that picks a random...
os.walk is a very nice replacement for os.path.walk, which I never did feel comfortable with. There's one very common pattern of usage, though, which still benefits from a simple helper-function; locating all files matching a given file-name...
Here's a script to save all Word documents in and below a given directory to text.
The story behind this one is that I was building a database conversion utility, converting both schema and data from one database engine to another. Thing was, the target database only allows 10 characters in its table and column names. I stripped...
All files and free downloads are copyright of their respective owners. We do not provide any hacked, cracked, illegal, pirated version of scripts, codes, components downloads. All files are downloaded from the publishers website, our file servers or download mirrors. Always Virus check files downloaded from the web specially zip, rar, exe, trial, full versions etc. Download links from rapidshare, depositfiles, megaupload etc not published.