Skip to content

Instantly share code, notes, and snippets.

@williame
Created September 19, 2012 07:17
Show Gist options
  • Save williame/3748144 to your computer and use it in GitHub Desktop.
Save williame/3748144 to your computer and use it in GitHub Desktop.
size=[14,48,25,33]
tilesize=2048
map_size=[(size[1]+size[3])*tilesize,(size[0]+size[2])*tilesize]
print '<html><head><title>',",".join("%s"%i for i in map_size),'</title></head><body><table cellspacing="0" cellpadding="0">'
for ns in "ns":
for y in range(48):
print "<tr>"
for x in range(25):
for ew in "ew":
print '<td><img src="http://imgs.xkcd.com/clickdrag/%d%s%d%s.png"/>'%(y,ns,x,ew)
print "</table></body></html>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment