Fixed width file parser. Code adapted from http://www.lexicallyscoped.com/2015/01/05/parsing-flat-files-in-clojure.html.
(def parse-rules {:cols [{:name :company :slice [0 62]} {:name :form :slice [62 74]} {:name :cik :slice [74 86] :type :long} {:name :date :slice [86 98] :type :date} {:name :file :slice [98]}] :skip-lines 10 :skip-line? (some-fn str/blank? (partial re-seq #"^-+$"))})
Fixed width file parser. Code adapted from http://www.lexicallyscoped.com/2015/01/05/parsing-flat-files-in-clojure.html. (def parse-rules {:cols [{:name :company :slice [0 62]} {:name :form :slice [62 74]} {:name :cik :slice [74 86] :type :long} {:name :date :slice [86 98] :type :date} {:name :file :slice [98]}] :skip-lines 10 :skip-line? (some-fn str/blank? (partial re-seq #"^-+$"))})
Tagged literal extensions for various data types.
Tagged literal extensions for various data types.
Fns applicable to both jvm and js
Fns applicable to both jvm and js
Message queuing/publishing. Messages sent and received are tuples [:module/event data]. The first element is the message type and anything else is up to the publisher/consumer. This tuple based message structure is used in sente and is known as a variant.
Message queuing/publishing. Messages sent and received are tuples [:module/event data]. The first element is the message type and anything else is up to the publisher/consumer. This tuple based message structure is used in sente and is known as a variant.
usage: (def client (connect "ftp.sec.gov" "anonymous" "anonymous")) (get client "edgar/full-index/company.gz" "company.gz" binary) (disconnect client)
usage: (def client (connect "ftp.sec.gov" "anonymous" "anonymous")) (get client "edgar/full-index/company.gz" "company.gz" binary) (disconnect client)
Telephone related functions
Telephone related functions
Various tokens and token factories.
Various tokens and token factories.
Tagged literal extensions for various data types.
Tagged literal extensions for various data types.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close