Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am philbirt on github.
  • I am philbirt (https://keybase.io/philbirt) on keybase.
  • I have a public key ASAsT79Mg2BBKtXzJEFuOFsTSb8o4dcaewMD3yEO0_HKdQo

To claim this, I am signing this object:

@philbirt
philbirt / gist:3270819
Created August 6, 2012 05:00
Random file from directory tree
files = [os.path.join(path, filename)
for path, dirs, files in os.walk(dir)
for filename in files]
return random.choice(files)