Add cats.

This commit is contained in:
Robohash 2017-07-22 15:10:41 -04:00
parent d76ffc3752
commit 0f2285f0aa
69 changed files with 159 additions and 113 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 292 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 535 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 254 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 317 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 305 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 359 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 303 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 313 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 394 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 381 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 280 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 562 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 298 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 294 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 127 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 104 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 58 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 99 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 75 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 89 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 53 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 52 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 46 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 166 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 130 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 171 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 137 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 91 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 77 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 249 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 102 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 119 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 195 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

View File

@ -352,6 +352,37 @@ function submitform()
<div class="hr"></div> <div class="hr"></div>
<!-- *************************************************************************
****************************** GALLERY3 SECTION *****************************
************************************************************************** -->
<!-- start of content section -->
<div class="content_section">
<p>By appending ?set=set4 to our URLs, we can hydroponically grow beautiful kittens. </p>
<ul class="gallery">
{% set c1 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set4" %}
{% set c2 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set4" %}
{% set c3 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set4" %}
{% set c4 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set4" %}
{% set c5 = ''.join(random.choice(string.ascii_uppercase + string.digits) for x in range(3)) + ".png?set=set4" %}
<li><a href="//robohash.org/{{c1}}" rel="prettyPhoto[gallery1]"
title="{{random.choice(catquotes)}}" class="fade"><img src="//robohash.org/{{c1}}&size=150x150" width="150" height="150" /></a></li>
<li><a href="//robohash.org/{{c2}}" rel="prettyPhoto[gallery1]"
title="{{random.choice(catquotes)}}" class="fade"><img src="//robohash.org/{{c2}}&size=150x150" width="150" height="150" /></a></li>
<li><a href="//robohash.org/{{c3}}" rel="prettyPhoto[gallery1]"
title="{{random.choice(catquotes)}}" class="fade"><img src="//robohash.org/{{c3}}&size=150x150" width="150" height="150" /></a></li>
<li><a href="//robohash.org/{{c4}}" rel="prettyPhoto[gallery1]"
title="{{random.choice(catquotes)}}" class="fade"><img src="//robohash.org/{{c4}}&size=150x150" width="150" height="150" /></a></li>
<li><a href="//robohash.org/{{c5}}" rel="prettyPhoto[gallery1]"
title="{{random.choice(catquotes)}}" class="fade"><img src="//robohash.org/{{c5}}&size=150x150" width="150" height="150" /></a></li>
</ul>
</div><!-- end of content section -->
<div class="hr"></div>
@ -517,7 +548,6 @@ function submitform()
Put either the email, or the hashed version, in your image where the string normally goes -<br><br> Put either the email, or the hashed version, in your image where the string normally goes -<br><br>
For example: https://robohash.org/colin@robohash.org?gravatar=yes<br> or https://robohash.org/620050a4db5104bae758cd75171d64ca?gravatar=hashed For example: https://robohash.org/colin@robohash.org?gravatar=yes<br> or https://robohash.org/620050a4db5104bae758cd75171d64ca?gravatar=hashed
</p><p> </p><p>
<p>Both traditional and new Stealthy (https) robots are available.</p>
<p>We've also conditioned our robots to accept commands either via params or directories-<br> For instance https://robohash.org/set_set3/bgset_bg1/3.14159?size=500x500 <p>We've also conditioned our robots to accept commands either via params or directories-<br> For instance https://robohash.org/set_set3/bgset_bg1/3.14159?size=500x500
<p>Finally, the <a href="https://github.com/e1ven/Robohash">Blueprints are available</a> to build your own robotic <p>Finally, the <a href="https://github.com/e1ven/Robohash">Blueprints are available</a> to build your own robotic
factory.</p> factory.</p>
@ -548,7 +578,8 @@ function submitform()
<!-- start of footer left --> <!-- start of footer left -->
<div id="footer_left" style="margin-top:60px;"> <div id="footer_left" style="margin-top:60px;">
<p> <p>
Robohash contains robots created by Zikri Kader (set1), Hrvoje Novakovic (set2), and Julian Peter Arias (set3). Robohash contains robots created by Zikri Kader (set1), Hrvoje Novakovic (set2), and Julian Peter Arias (set3).<br>
Cats are created by <a href="https://framagit.org/Deevad/cat-avatar-generator/tree/master">David Revoy</a>.
<br> <br>
<p> <p>
You are free to embed under the terms of the CC-BY license. <br> Example wording might be "Robots lovingly delivered by You are free to embed under the terms of the CC-BY license. <br> Example wording might be "Robots lovingly delivered by

View File

@ -168,10 +168,10 @@ class MainHandler(tornado.web.RequestHandler):
quotes = ["But.. I love you!", quotes = ["But.. I love you!",
"Please don't leave the site.. When no one's here.. It gets dark...", "Please don't leave the site.. When no one's here.. It gets dark...",
"Script error on line 148", "Script error on line 148",
"'Don't trust the other robots. I'm the only trustworthy one.", "Don't trust the other robots. I'm the only trustworthy one.",
"My fuel is the misery of children. And Rum. Mostly Rum.", "My fuel is the misery of children. And Rum. Mostly Rum.",
"When they said they'd give me a body transplant, I didn't think they meant this!", "When they said they'd give me a body transplant, I didn't think they meant this!",
"Subject 14 has had it's communication subroutines deleted for attempting suicide.", "Subject 14 has had it's communication subroutines deleted for attempting self-destruction.",
"I am the cleverest robot on the whole page.", "I am the cleverest robot on the whole page.",
"Oil can", "Oil can",
"I am fleunt in over 6 million forms of communishin.", "I am fleunt in over 6 million forms of communishin.",
@ -207,8 +207,19 @@ class MainHandler(tornado.web.RequestHandler):
("The robots are all so.. Normal!","Joanna Eberhart, Beta tester"), ("The robots are all so.. Normal!","Joanna Eberhart, Beta tester"),
("Man shouldn't know where their robots come from.","Dr. N. Soong, FutureBeat")] ("Man shouldn't know where their robots come from.","Dr. N. Soong, FutureBeat")]
catquotes = [("I can haz.. What she's hazing."),
("I'm not grumpy, I'm just drawn that way."),
("Hakuna Mañana."),
("I'm 40% poptart."),
("You're desthpicable."),
("I've never trusted toadstools, but I suppose some must have their good points."),
("We're all mad here - Particularly you."),
("Longcat is.. Descriptively named."),
("It is fun to have fun, but you have to know meow."),
("Who knows the term man-cub but not baby?")]
random.shuffle(drquotes) random.shuffle(drquotes)
self.write(self.render_string('templates/root.html',ip=ip,robo=random.choice(robo),drquote1=drquotes[1],drquote2=drquotes[2],quotes=quotes)) self.write(self.render_string('templates/root.html',ip=ip,robo=random.choice(robo),drquote1=drquotes[1],drquote2=drquotes[2],quotes=quotes,catquotes=catquotes))
class ImgHandler(tornado.web.RequestHandler): class ImgHandler(tornado.web.RequestHandler):
""" """
@ -309,7 +320,11 @@ class ImgHandler(tornado.web.RequestHandler):
if args.get('set',r.sets[0]) in r.sets: if args.get('set',r.sets[0]) in r.sets:
roboset = args.get('set',r.sets[0]) roboset = args.get('set',r.sets[0])
elif args.get('set',r.sets[0]) == 'any': elif args.get('set',r.sets[0]) == 'any':
roboset = r.sets[r.hasharray[1] % len(r.sets) ] # Add ugly hack.
# Adding cats, per issue-17, but I don't want to change existing hashes.
# so we'll ignore that set for the 'any' config.
roboset = r.sets[r.hasharray[1] % (len(r.sets)-1) ]
else: else:
roboset = r.sets[0] roboset = r.sets[0]