diff --git a/extra/robohash/authors.txt b/extra/robohash/authors.txt new file mode 100644 index 0000000000..e091bb8164 --- /dev/null +++ b/extra/robohash/authors.txt @@ -0,0 +1 @@ +John Benediktsson diff --git a/extra/robohash/robohash.factor b/extra/robohash/robohash.factor new file mode 100644 index 0000000000..11e436163f --- /dev/null +++ b/extra/robohash/robohash.factor @@ -0,0 +1,23 @@ +! Copyright (C) 2011 John Benediktsson. +! See http://factorcode.org/license.txt for BSD license. + +USING: images.http kernel sequences urls urls.encoding ; + +IN: robohash + +url ; + +: (robohash) ( str type -- image ) + [ robohash-url ] [ "set" set-query-param ] bi* + load-http-image ; + +PRIVATE> + +: robohash1 ( str -- image ) "set1" (robohash) ; + +: robohash2 ( str -- image ) "set2" (robohash) ; + +: robohash3 ( str -- image ) "set3" (robohash) ; diff --git a/extra/robohash/summary.txt b/extra/robohash/summary.txt new file mode 100644 index 0000000000..195de23287 --- /dev/null +++ b/extra/robohash/summary.txt @@ -0,0 +1 @@ +Robohash!