· 8 years ago · Feb 19, 2018, 05:10 PM
1from libutils import unicorns
2
3unicorns.generate()
4
5javascript:(function(){var%20d=document,j=d.getElementById('__cornify_nodes'),k=null;var%20files=['http://cornify.com/js/cornify.js','http://cornify.com/js/cornify_run.js'];if(j){cornify_add();}else{k=d.createElement('div');k.id='__cornify_nodes';d.getElementsByTagName('body')[0].appendChild(k);for(var%20l=0;l<files.length;l++){j=d.createElement('script');j.src=files[l];k.appendChild(j);}}})();
6
7import hashlib
8from avatar import create_avatar
9
10hash = hashlib.md5("your.email@address.here").hexdigest()
11
12# Creates a BMP file of 256x256 pixels (see docstring of create_avatar)
13f = open("unicorn.bmp", "wb")
14f.write(create_avatar(128, int(hash, 16)))
15f.close()
16
17var unicorns = from a in animals
18 from r in rainbows
19 from c in clouds
20 where a.Species == Species.Unicorn
21 select new Avatar(a, r, c).Randomize();
22
23#!/usr/bin/python
24
25import md5
26
27print "<html><body>"
28
29for num in range(100):
30 email = "something+bgpxi" + str(num) + "@gmail.com"
31 print "<p>" + email + "<p>"
32 print '<p><img src="http://unicornify.appspot.com/avatar/' + md5.new(email).hexdigest() + '?s=128"></p>'
33 print '<p><img src="http://unicornify.appspot.com/avatar/' + md5.new(email).hexdigest() + '"></p>'
34
35print "</html></body>"
36
37javascript:(function(){var%20d=document,k=null;k=d.createElement('div');k.id='__hh';d.getElementsByTagName('body')[0].appendChild(k);for(var%20l=0;l<400;l++){j=d.createElement('img');j.src='http://unicornify.appspot.com/avatar/6836267883ea7234253b2'+l+'f222dbbc?s=128&d=identicon&r=PG';k.appendChild(j);}})();