Commit graph

84 commits

Author SHA1 Message Date
Gered 0a0f55eb84 add resource handler for getting art by name and index 2014-04-06 17:20:26 -04:00
Gered 5b218d9cc8 add resource handler for getting a count of the art under a given name 2014-04-06 17:14:11 -04:00
Gered 1dbd69506b formatting 2014-04-06 17:07:10 -04:00
Gered 01eb85c7dc fix for trying to retrieve ascii art under a name which returns none 2014-04-06 17:06:39 -04:00
Gered df0f6d7429 add resource handler for random ascii art under a given name 2014-04-06 17:04:35 -04:00
Gered 363edd0200 add better malformed request error messaging 2014-04-06 17:04:21 -04:00
Gered 7279075e07 add resource handler for searching art names 2014-04-06 16:48:06 -04:00
Gered cd1620e9d6 the name search view should be in the 'search' design doc really... 2014-04-06 16:18:42 -04:00
Gered bd77f12095 add couchdb design doc source 2014-04-06 16:15:31 -04:00
Gered d6a58c2300 add various db operations for getting/searching/listing ascii art 2014-04-06 16:14:01 -04:00
Gered 4bac1e1761 only accept lowercase characters in names 2014-04-06 14:40:40 -04:00
Gered f0405c574a implement basic operation for adding new ascii art 2014-04-06 14:37:44 -04:00
Gered 8e0b6d05e6 add helper functions we will need for ascii art add/search processing 2014-04-06 14:26:13 -04:00
Gered 0ad784eb06 add helper function to get current date/time string 2014-04-06 13:38:40 -04:00
Gered 335009597d add stub functions for all the main operations we need 2014-04-06 13:22:46 -04:00
Gered 867d5ea9e5 add app startup couchdb status checking 2014-04-06 13:17:56 -04:00
Gered f8de73478e add general couchdb functions 2014-04-06 13:17:39 -04:00
Gered c8251e7de3 add site.config file reading functions. load config on app startup 2014-04-06 12:58:08 -04:00
Gered 027bf9dfb6 add env specific site.config files (which also contain a couchdb url) 2014-04-06 12:57:52 -04:00
Gered 497dcab29a add couchdb library dependency 2014-04-06 12:57:19 -04:00
Gered fd189ee491 rename animated gif route url 2014-04-06 12:23:52 -04:00
Gered e50ec3e72b minor style tweak 2014-04-06 11:05:46 -04:00
Gered cddf7d9e86 add image format checking to the animated gif handler 2014-04-06 11:05:26 -04:00
Gered 4247a1e9d8 add type hint that probably doesnt really matter too much 2014-04-06 10:04:10 -04:00
Gered 502ceade97 refactor the piped-input-stream -> java.io.Writer stuff 2014-04-06 09:45:09 -04:00
Gered 59a829b9ef little bit of cleanup 2014-04-06 09:34:02 -04:00
Gered 1732ccf341 add response streaming to gif->ascii 2014-04-05 19:48:41 -04:00
Gered a6ddbe8129 forgot :hidden? param 2014-04-05 18:09:35 -04:00
Gered d4ef18a525 fix wrap-pre-tag so that single images arent hidden (as html) 2014-04-05 18:08:00 -04:00
Gered 50acea5af0 upgrade clj-image2ascii 2014-04-05 17:43:53 -04:00
Gered 0debaadd90 tweaks to how the app ring-handler is set up 2014-04-05 17:43:36 -04:00
Gered 5e979c8ba5 append inline js script to animated gif frames to autostart animation 2014-04-03 22:51:52 -04:00
Gered 6da8abfb39 better error (for now) when a non-GIF image is specified
not yet ideal handling like how the normal image handling is done
2014-04-03 22:23:03 -04:00
Gered 1998672258 add initial routes / views for animated gif support (not animating yet) 2014-04-03 22:13:10 -04:00
Gered 4aa70fdb40 revert java/clj separate source paths, back to original layout 2014-04-03 21:34:39 -04:00
Gered aae01476a0 replace manual image manipulation with our own new clj-image2ascii lib 2014-04-03 21:32:49 -04:00
Gered 7c29069559 change convert-image to use the java image->ascii function 2014-04-01 22:59:40 -04:00
Gered 54dc8b0543 alternate StringBuilder implementation. add function to convert RGB components to 2-digit hex strings 2014-04-01 22:57:21 -04:00
Gered b7363d3a81 extremely minor performance tweaks
tested with criterium benchmarks, on my imac, marking all these local
vars final helps out by 0.3ms... negligible, but sorta interesting!
2014-04-01 21:07:10 -04:00
Gered d9e05c610f add java converter for turning an image intto ascii representation 2014-04-01 18:43:13 -04:00
Gered 45c6ba0d18 reorganize source folders to allow for some java code to be added 2014-04-01 17:12:31 -04:00
Gered 1b5187f465 initialize StringBuilder size, better way of getting the raw pixels 2014-04-01 06:52:36 -04:00
Gered 21e5939cb2 type hints for query-param-url->java-url 2014-03-31 19:25:01 -04:00
Gered 5baeadb0f5 first pass at performance tweaks. work with a direct int[] of pixels 2014-03-31 17:48:47 -04:00
Gered f62a2ca558 add criterium for benchmarking, and a test image 2014-03-31 17:22:29 -04:00
Gered 64e66d6631 minor tweaks 2014-03-30 18:46:41 -04:00
Gered a932983a72 saner checks and defaults for color and format behaviour combinations 2014-03-30 18:44:56 -04:00
Gered 2d13e8431c add image->ascii form 2014-03-30 18:32:33 -04:00
Gered 7903348093 show method call url as a link tag 2014-03-30 18:32:19 -04:00
Gered 631b10a66f fix form input element selector again. update element value retrieval 2014-03-30 18:31:34 -04:00