Colin Davis b9e8e8b60d The main purpose of the change was to port Robohash to Python3.
I took the opportunity to go back and fix a few things that I should have done better the first time.

+ Port to work with both Python2 and Python3
+ Port to run with newest Tornado-
+ Dynamically read in list of sets from filedir (this won't be slow, since we run out of a ramdisk in prod)
+ Break Robohash object out into it's own class, so we can call it from other programs without going through HTTP
+ Allow /set_set3/ style parameters anywhere in the URL
+ DataURI as PNG instead of jpg - I'll make this configurable in a future version.
2013-08-28 02:32:29 -04:00
2013-01-30 13:50:14 -05:00
2011-08-08 20:19:08 +00:00
2012-01-03 15:12:36 -05:00
2012-04-11 18:14:54 -04:00
2012-04-02 20:15:41 +00:00

RoboHash, the source code for the site RoboHash.org
OK, I'll admit I'm a crappy programmer.
Compounding this, I wrote this code initially to be internal-only. It's ugly, and could be a LOT nicer.
Sorry about that.

What it basically does is copy/paste the various robot pictures, using bits from the SHA hash.
It's not perfect, and not entirely secure, but it gives a good gut-check to "Hey, this sha is wrong"

The RoboHash images are available under the CC-BY-3.0 license.
Set 1 artwork created by Zikri Kader
Set 2 artwork created by Hrvoje Novakovic.
Set 3 artwork created by Julian Peter Arias.

The Python Code is available under the MIT/Expat license

Copyright (c) 2011, Colin Davis


Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Description
RoboHash.org
Readme 117 MiB
Languages
JavaScript 32.7%
Python 24.8%
CSS 22.8%
HTML 18.9%
Dockerfile 0.6%
Other 0.2%