3 posts tagged “code”
to make up for lack of tuesday jazz
i took a bit of time out to write a script to pull down new music from music websites, so i can listen to things while on the train & find new stuff w/o having to flip through the interwebs in a browser
anyway, it seems i'm a bit rusty in python... not done much since last fall, really.
as such, it took me 2 hours...
but here we go, all comes down to single loop:
for i in range(2,20):
url = "http://this.bigstereo.net/page/"+`i`
savelinks(getPage(url))
full source code here.
//The object 'photon follows a photon's life from its creation in some
// emission region of the model space, through scattering processes,
// until either its absorption or detection. All necessary routines
// and parameters are defined here, including the procedures for
// electron scattering or scattering off a generalized dust
// grain. Some features are marked with a symbol (*) denoting that
// they are not used by the program at its current state but that they
// are reserved for future purposes or diagnostic reasons.
source