Created
July 20, 2014 06:17
-
-
Save built/5517fc6ff2ac45d5bff6 to your computer and use it in GitHub Desktop.
Revisions
-
built created this gist
Jul 20, 2014 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,9 @@ to_image_name = "{.user_name}-{}-{}.png".format # to_image_name is now a *function*. # Use it later like so: to_image_name(user, 32, 32) # Which results in a string like: 'jsmith-32-32.png'