Liking cljdoc? Tell your friends :D

frereth.cp.shared.util

Pieces refactored from frereth.common.util

Because I haven't really decided what to do with them yet

Pieces refactored from frereth.common.util

Because I haven't really decided what to do with them yet
raw docstring

get-cpu-countclj

(get-cpu-count)

get-current-threadclj

(get-current-thread)

get-stack-traceclj

(get-stack-trace ex)

Returns stack trace frame descriptions in a vector

Returns stack trace frame descriptions in a vector
raw docstring

jvm-versionclj

(jvm-version)

millis->nanosclj

(millis->nanos ms)

minuteclj

(minute)

nanos->millisclj

(nanos->millis ns)

pprint-proxyclj


pre-logclj

(pre-log human-name)

This is really just a leftover from trying to make 'normal' logging frameworks work

This is really just a leftover from trying to make 'normal' logging frameworks work
raw docstring

prettyclj

(pretty & xs)

Return a pretty-printed representation of xs

Return a pretty-printed representation of xs
raw docstring

random-secure-bytesclj

(random-secure-bytes n)

Returns an array of n bytes, generated in a cryptographically secure manner

Returns an array of n bytes, generated in a cryptographically secure manner
raw docstring

random-uuidclj

(random-uuid)

Generate a random UUID

Generate a random UUID
raw docstring

secondsclj

(seconds)

seconds->nanosclj

(seconds->nanos ss)

show-stack-traceclj

(show-stack-trace ex)

Convert stack trace to a readable string Slow and inefficient, but you have bigger issues than performance if you're calling this

Convert stack trace to a readable string
Slow and inefficient, but you have bigger issues than
performance if you're calling this
raw docstring

slurp-bytesclj

(slurp-bytes bs)

Slurp the bytes from a slurpable thing

Copy/pasted from stackoverflow. Credit: Matt W-D.

alt approach: Add dependency to org.apache.commons.io

Or there's probably something similar in guava

Slurp the bytes from a slurpable thing

Copy/pasted from stackoverflow. Credit: Matt W-D.

alt approach: Add dependency to org.apache.commons.io

Or there's probably something similar in guava
raw docstring

spit-bytesclj

(spit-bytes f bs)

Spit bytes to a spittable thing

Spit bytes to a spittable thing
raw docstring

update-valuesclj

(update-values m f & args)
Apply f (& args) to each value in a map

Credit: http://blog.jayfields.com/2011/08/clojure-apply-function-to-each-value-of.html
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close