Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vindarel/bacalisp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Training, experiments.

More CL code on Github \o/

stuff

local-time (minor)

  • local-time.lisp: simple additions useful for me that won't be merged upstream.

CSV

  • CSV parsing and manipulation with cl-csv and its companion data-table.

cl-csv "only" reads and parses the CSV. data-table allows to access all cells by row and column name (instead of by position).

;; Parse the CSV, get a data-table object.

(defun parse-csv (file)
  "Parse CSV, return a data-table object with column names and rows."
  (let ((rows (csv:read-csv (str:from-file file))))
    (make-instance 'data-table:data-table :column-names (first rows) :rows (rest rows))))

;; Iterate on rows,
;; access columns with data-table-value :row row :col-name "the col name"

(defun get-all-days (dt)
  (remove-duplicates
   (loop for row in (data-table:rows dt)
         collect (data-table:data-table-value dt :row row :col-name "Date"))
   :test #'equal))

redditors also mentioned that cl-duckdb is useful and pretty fast at parsing.

read passwords in terminal

in read-password.lisp: run /bin/stty -echo before (read-line).

password: *****
I still know the pass was "secret"

About

experiments

Resources

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  

Packages

No packages published