Collection of utility functions for generic tasks around timing and networking and files
Collection of utility functions for generic tasks around timing and networking and files
(get-free-port)
Let Java find a free port for you.
Let Java find a free port for you.
(query-string m)
Returns URL-encoded query string for given params map.
Returns URL-encoded query string for given params map.
(read-json-file file)
Read data as JSON from file
Read data as JSON from file
(with-duration f cb)
Invokes f, then calls cb with duration of calling f.
Invokes f, then calls cb with duration of calling f.
(with-tempfile filename ext f)
Creates a temporary file, calls f with file as argument and deletes file after.
Creates a temporary file, calls f with file as argument and deletes file after.
(write-json-file file data)
Write data as JSON to file
Write data as JSON to file
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close