Fork me on GitHub

@sveri: and are good examples of common editor related functionality being made available to multiple editors. I believe vim uses them (maybe counterclockwise, not sure), and I know for sure that Light Table uses them through the plugin simple_smile


I'm trying out loom, the graph library, but I'm having trouble getting graphviz to convert a .dot file to png


installed with brew, OS is Yosemite


when I do this: dot -Tps -o , I get: Format: "ps" not recognized. Use one of:


@kyle_schmidt: didn't work for me


Hey everyone. I have non-clojure question regarding searching/filtering on a REST API. How do you manage an endpoint in which the consumer can filter the response data on several fields using the logic operators OR and AND. For example, if some user wants all sales from clients or business that are named “Alfred” of the year 2015, which url structure could support something like that? I was working with something like this:,business_name=Alfred&amp;year=2015, but I got stuck with a request map keyword like :client_name,business_name (no so pretty).


Translated to SQL, it would be

`WHERE (client_name = ‘Alfred’ OR business_name = ‘Alfred’) AND year = 2015


If you really need to support full boolean queries I would not try to put it in the URL, but instead POST an EDN/JSON structure for the query.


Yeah, I agree. Trying to represent complex queries with a bunch of query string parameters like that doesn't seem like it would work well because you only have & and = to work with. Most APIs that I've used either let you pass a single value which is a full query in some custom query language, or some JSON structure like bsvingen said. For an example of the latter, maybe you can look at how Elasticsearch does it for some ideas: