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-class-pathclj

(get-class-path)
source

get-cpu-countclj

(get-cpu-count)
source

get-current-threadclj

(get-current-thread)
source

get-stack-traceclj

(get-stack-trace ex)

Returns stack trace frame descriptions in a vector

Returns stack trace frame descriptions in a vector
sourceraw docstring

jvm-versionclj

(jvm-version)
source

millis->nanosclj

(millis->nanos ms)
source

minuteclj

(minute)
source

nanos->millisclj

(nanos->millis ns)
source

pprint-proxyclj

source

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
sourceraw docstring

prettyclj

(pretty & xs)

Return a pretty-printed representation of xs

Return a pretty-printed representation of xs
sourceraw 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
sourceraw docstring

random-uuidclj

(random-uuid)

Generate a random UUID

Generate a random UUID
sourceraw docstring

secondsclj

(seconds)
source

seconds->nanosclj

(seconds->nanos ss)
source

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
sourceraw 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
sourceraw docstring

spit-bytesclj

(spit-bytes f bs)

Spit bytes to a spittable thing

Spit bytes to a spittable thing
sourceraw 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
sourceraw docstring

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

× close