(custom-date-format date-time)
Reformat the result from the database in the preferred format.
Reformat the result from the database in the preferred format.
(filename-with-timestamp filename)
Create a simple filename with a given timestamp.
Create a simple filename with a given timestamp.
(filter-non-nil item)
Filter out the maps value that are not nil
Filter out the maps value that are not nil
(find-binary binary-name)
Locate a binary from the Unix/Linux PATH system.
Locate a binary from the Unix/Linux PATH system.
(get-extension file-path)
Extract the file extension from a given file object
Extract the file extension from a given file object
(is-linux?)
Check for the system type and return true if it is Linux based system.
Check for the system type and return true if it is Linux based system.
(is-macos?)
Check for the system type and return true if it is MacOS based system.
Check for the system type and return true if it is MacOS based system.
(is-windows?)
Check for the system type and return true if it is Windows based system.
Check for the system type and return true if it is Windows based system.
(keywordize-arguments & args)
Convert list of arguments to hash map of keywords and values.
Convert list of arguments to hash map of keywords and values.
(list-files base-dir & [{:keys [patterns]}])
List files from a given directory matching specific patterns. Example Usage: (list-file "~/projects/awesome" {:patterns ".{clj,md}"}) (list-file "~/projects/awesome" {:patterns ".*"})
List files from a given directory matching specific patterns. Example Usage: (list-file "~/projects/awesome" {:patterns "*.{clj,md}"}) (list-file "~/projects/awesome" {:patterns "*.*"})
(load-edn-config config)
Load the edn config from a given file.
Load the edn config from a given file.
(map-keys f m)
Given a function and a map, returns the map resulting from applying the function to each key.
e.g. (map-keys name {:a 1 :b 2 :c 3}) ;;=> {"a" 1, "b" 2, "c" 3}
Given a function and a map, returns the map resulting from applying the function to each key. e.g. (map-keys name {:a 1 :b 2 :c 3}) ;;=> {"a" 1, "b" 2, "c" 3}
(map-vals f m)
Given a function and a map, returns the map resulting from applying the function to each value.
e.g. (map-vals inc {:a 1 :b 2 :c 3}) ;;=> {:a 2, :b 3, :c 4}
Given a function and a map, returns the map resulting from applying the function to each value. e.g. (map-vals inc {:a 1 :b 2 :c 3}) ;;=> {:a 2, :b 3, :c 4}
(parse-int number-string)
Parse a string to a number when possible
Parse a string to a number when possible
(quote-fn text)
Quote input if they are all numbers.
Quote input if they are all numbers.
(remove-ansi text)
Remove CSI sequences from a given text.
Remove CSI sequences from a given text.
(resources-path config)
Return config file path from resources directory.
Return config file path from resources directory.
(show-members object)
Print the list of methods of a given object using reflection.
Print the list of methods of a given object using reflection.
(slurp-file input-file)
Read content of the file that understand ~
for HOME in Unix/Linux system.
Read content of the file that understand `~` for HOME in Unix/Linux system.
(str-to-int number)
Convert string input to a number if it is not already an integer.
Convert string input to a number if it is not already an integer.
(suppress-ansi text)
Suppress the ANSI color from the result of executing ssh command.
Suppress the ANSI color from the result of executing ssh command.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close