99 Commits

Author SHA1 Message Date
Colin Davis
63e9f3f69c package test 1.0 2013-12-04 16:15:01 -05:00
Colin Davis
a23faacfb0 Changed "import Image"->"from PIL import Image"
This is the preferred/more modern syntax, per the Pillow docs.
I had meant to commit this the other day, along with the requirements.txt change.
2013-10-29 02:33:44 -04:00
Colin Davis
f4f6e7f28a swap to more modern lib 2013-10-25 16:05:22 -04:00
Colin Davis
7096eb6cfd Move additional logic into RH obj 2013-08-28 18:08:26 -04:00
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
Colin Davis
e9d3bc8358 Avoid a XSS issue 2013-08-16 12:32:25 -04:00
Colin Davis
bffcbb7161 remove static 2013-03-30 05:40:08 +00:00
Colin Davis
c5ffde1f7a fixes #7 2013-01-30 13:50:14 -05:00
Colin Davis
4e872a8d7c Emergency fix because I'm stupid 2012-11-09 14:04:08 -05:00
Colin Davis
427c3fa257 Cleaned up directoryparam support 2012-11-06 17:43:09 -05:00
Colin Davis
51b061522c Cleaned up directoryparam support 2012-11-06 17:42:26 -05:00
Colin Davis
f598ece342 Cleaned up directoryparam support 2012-11-06 17:37:39 -05:00
Colin Davis
4e5295e2aa Merge pull request #7 from SamSaffron/master
Gravatar hates query strings, it nukes them, so support a second way of passing options
2012-11-06 13:58:25 -08:00
Sam Saffron
f75a7a8520 gravatar hates query strings, support passing in options via the path,
optionally [?&] are replaced with / and = is replaced with _
2012-11-07 08:42:32 +11:00
Colin Davis
c126eef2aa Add requirements.txt via @sprintly 2012-09-24 08:51:42 -04:00
Colin Davis
4ae12a1620 https 2012-09-23 02:56:07 +00:00
Colin Davis
d5eb796f64 Crossdomain.xml 2012-09-16 22:19:19 -04:00
Colin Davis
73b70cd995 add crossdomain.xml for Flash users 2012-09-16 19:54:14 -04:00
Colin Davis
1f15bbd817 oops 2012-07-27 13:26:14 -04:00
Colin Davis
577ea6abac remove tag 2012-07-26 05:16:07 -04:00
Colin Davis
45d950face datauri 2012-07-26 04:56:31 -04:00
Colin Davis
377d14b1a4 template 2012-06-28 19:59:16 +00:00
Colin Davis
f8cc9ef55a https 2012-06-28 15:48:22 -04:00
Colin Davis
165dd3f5dc Merge branch 'master' of https://github.com/e1ven/Robohash 2012-06-28 19:16:30 +00:00
Colin Davis
94a66f60c4 fromsite 2012-06-28 19:16:13 +00:00
Colin Davis
4339104df8 License 2012-04-11 18:14:54 -04:00
Colin Davis
72ed4f9edb sort backgrounds 2012-04-03 12:45:23 -04:00
Colin Davis
8cb8d7dde5 Agnostic URL 2012-04-02 20:15:41 +00:00
Colin Davis
2c993dc734 change some urls 2012-02-03 15:41:38 -05:00
Colin Davis
9b11bbd934 Merge branch 'master' of github.com:e1ven/Robohash 2012-01-03 15:14:08 -05:00
Colin Davis
c6347e8fcf include blue5 2012-01-03 15:13:56 -05:00
Colin Davis
4e60afec3a Include License 2012-01-03 15:12:36 -05:00
Colin Davis
71263bf84a Gravatar change 2011-12-11 02:00:56 +00:00
Colin Davis
8baa4e813e saftey 2011-08-30 23:04:30 -04:00
Colin Davis
fe67f3fc88 Added Hashed Gravatar 2011-08-30 22:47:50 -04:00
Colin Davis
3c1f8c7c17 Gravatar support 2011-08-30 21:57:51 -04:00
Colin Davis
aab3c87d8b Remove unsupported exts 2011-08-30 18:39:55 -04:00
Colin Davis
c7456d95ba fix typo. Thanks jayferd 2011-08-30 18:22:23 -04:00
Colin Davis
7136ee862d wording 2011-08-30 17:29:20 -04:00
Colin Davis
e63cf6c611 swap ignoreext to be default 2011-08-30 16:35:59 -04:00
Colin Davis
e6ffbc129e root 2011-08-19 16:17:01 -04:00
Colin Davis
8df898fcf0 Edited README via GitHub 2011-08-16 18:27:18 -03:00
Colin Davis
154268981b Cleanup 2011-08-08 20:19:14 +00:00
Colin Davis
ce48f9707f Cleanup 2011-08-08 20:19:08 +00:00
Colin Davis
59f302d9b1 This commit has a large rename of files.
Let me explain-

When RH.org fired up, it wasn't sorting the filenames.
Now, that gives us a problem.. It was relying on the ext order of the bits.
Oops. Sorry, I didn't think about that, I released in a hurry.

Anyway, to keep compatibility, I've ensured that the fileorder from RH.org
is now reflected in the files themselves. This was done by naming each one with up to
two sets of numbers

0001#01Body/01.png

What the 0001# before the pound sign means does is ensure the
code is sorted with that gif first, when assigning them.

Anyway, this makes the code messier, but it will be the same everywhere now.
I'll clean up the filenames later, if anyone cares.
Or, you're welcome to!

Renaming them to drop the numbers in the basefilename should be perfectly OK.
Try it ;)
-CPD
2011-08-08 16:10:57 -04:00
Colin Davis
fd2051450e Merge branch 'rename' of github.com:e1ven/Robohash 2011-08-08 16:08:24 -04:00
Colin Davis
a3e74dd64c FileOrderFix 2011-08-08 20:02:33 +00:00
Colin Davis
73d8f59be7 dircurse.sh 2011-08-06 05:51:06 +00:00
Colin Davis
f010c23064 fix bug 2011-07-18 21:47:54 +00:00
Colin Davis
a93c5cb0c9 ABCD 2011-07-16 05:01:26 +00:00