id int64 0 45.1k | file_name stringlengths 4 68 | file_path stringlengths 14 193 | content stringlengths 32 9.62M | size int64 32 9.62M | language stringclasses 1
value | extension stringclasses 6
values | total_lines int64 1 136k | avg_line_length float64 3 903k | max_line_length int64 3 4.51M | alphanum_fraction float64 0 1 | repo_name stringclasses 779
values | repo_stars int64 0 882 | repo_forks int64 0 108 | repo_open_issues int64 0 90 | repo_license stringclasses 8
values | repo_extraction_date stringclasses 146
values | sha stringlengths 64 64 | __index_level_0__ int64 0 45.1k | exdup_ids_cmlisp_stkv2 listlengths 1 47 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
39,717 | helper.lisp | hwa_lisp-helpers/cl-json-helper/helper.lisp | (in-package #:cl-json-helper)
;;
;;;; cl-json reversible encoder and decoder.
;;
;; The default encoder doesn't distinguish {}, [], null, false.
;; So we shall use WITH-CODER-SIMPLE-CLOS-SEMANTICS to decode {} as empty Object;
;; set *JSON-ARRAY-TYPE* to 'VECTOR to decode [] as #();
;; set *BOOLEAN-HANDLER* to decode... | 4,113 | Common Lisp | .lisp | 85 | 44.552941 | 89 | 0.447984 | hwa/lisp-helpers | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 819b5a2d38edeaf27c524f1d9c52f8c2817ac9b5e57eb9e2c34992ad034916b2 | 39,717 | [
-1
] |
39,718 | hunchentoot-helper.asd | hwa_lisp-helpers/hunchentoot-helper/hunchentoot-helper.asd | (in-package #:cl-user)
(defpackage #:hunchentoot-helper-system
(:use #:cl #:asdf))
(in-package #:hunchentoot-helper-system)
(defsystem hunchentoot-helper
:author "hwa<dreameration@gmail.com>"
:license "GPL 3.0"
:description "My own helpers for using Hunchentoot."
:depends-on (:hunchentoot)
:components ((... | 371 | Common Lisp | .asd | 11 | 30 | 54 | 0.697479 | hwa/lisp-helpers | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 6e7a12433a05f7e8516f785a8185cd7ab71354a97b9c33222ef757a06daed271 | 39,718 | [
-1
] |
39,719 | cl-yaml-helper.asd | hwa_lisp-helpers/cl-yaml-helper/cl-yaml-helper.asd | (in-package #:cl-user)
(defpackage #:cl-yaml-helper-system
(:use #:cl #:asdf))
(in-package #:cl-yaml-helper-system)
(defsystem cl-yaml-helper
:author "hwa<dreameration@gmail.com>"
:license "GPL 3.0"
:description "My own helpers for cl-yaml"
:depends-on (:cl-yaml)
:components ((:file "package")
... | 344 | Common Lisp | .asd | 11 | 27.545455 | 43 | 0.663636 | hwa/lisp-helpers | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 944c5d9f6681ca86bd0063364fb4a4ae3931272f45730dcf750cc3891cb8241d | 39,719 | [
-1
] |
39,720 | cl-json-helper.asd | hwa_lisp-helpers/cl-json-helper/cl-json-helper.asd | (in-package #:cl-user)
(defpackage #:cl-json-helper-system
(:use #:cl #:asdf))
(in-package #:cl-json-helper-system)
(defsystem cl-json-helper
:author "hwa<dreameration@gmail.com>"
:license "GPL 3.0"
:description "My own helpers for cl-json"
:depends-on (:cl-json)
:components ((:file "package")
... | 344 | Common Lisp | .asd | 11 | 27.545455 | 43 | 0.663636 | hwa/lisp-helpers | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 0e7ca319d45fbdb79353580ac37b4e8ca5c8dbafebd4762b161e68fc9eb4174d | 39,720 | [
-1
] |
39,742 | build.lisp | REve-Workshop_xyz_revecloud_re_cl/build.lisp | (push #P"/home/roland/codes/revews/cl/tools/" asdf:*central-registry*)
(push #P"/home/roland/codes/revews/cl/logging/" asdf:*central-registry*)
(push #P"/home/roland/codes/revews/cl/is/" asdf:*central-registry*)
(asdf:oos 'asdf:load-op 'xyz.revecloud.re)
| 255 | Common Lisp | .lisp | 4 | 62.75 | 72 | 0.741036 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | a630d99fec8e2cf57baa333fba4542024e366281d0391640d2671311fd8dcc5d | 39,742 | [
-1
] |
39,743 | builder.lisp | REve-Workshop_xyz_revecloud_re_cl/logging/builder.lisp | (defpackage xyz.revecloud.re.logging.builder
(:use :cl)
(:export #:init-logging #:set-operation #:make-log-record)
(:import-from :xyz.revecloud.re.tools.tools "escape-double-quote"))
(in-package :xyz.revecloud.re.logging.builder)
(defparameter *application* nil
"The application calling the logger.")
(defpara... | 3,024 | Common Lisp | .lisp | 56 | 43.214286 | 174 | 0.644211 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | fd5b873f9d145d554d8bbbf5e196080aea67442b43db37d802280879398a9653 | 39,743 | [
-1
] |
39,744 | main.lisp | REve-Workshop_xyz_revecloud_re_cl/logging/tests/main.lisp | (defpackage revesh/tests/main
(:use :cl
:revesh
:rove))
(in-package :revesh/tests/main)
;; NOTE: To run this test file, execute `(asdf:test-system :revesh)' in your Lisp.
(deftest test-target-1
(testing "should (= 1 1) to be true"
(ok (= 1 1))))
| 272 | Common Lisp | .lisp | 9 | 26.333333 | 82 | 0.639847 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 1bb4d5d5c4a3efa9c4f5327d0192feea61598e87794c8cab6a0328bfa969bf42 | 39,744 | [
-1
] |
39,745 | cabs.lisp | REve-Workshop_xyz_revecloud_re_cl/tools/cabs.lisp | ;;;; -*- coding:utf-8 -*-
;;;;****************************************************************************
;;;;FILE: cabs.lisp
;;;;LANGUAGE: common-lisp
;;;;SYSTEM: common-lisp
;;;;USER-INTERFACE: common-lisp
;;;;DESCRIPTION
;;;;
;;;; File originally generated with Emacs package
... | 1,688 | Common Lisp | .lisp | 47 | 34.382979 | 121 | 0.62149 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 5e443e437df08a4f7017b6e9712f09c0aac35d60d7a8e77f4033b467ed126a9c | 39,745 | [
-1
] |
39,746 | misc.lisp | REve-Workshop_xyz_revecloud_re_cl/tools/misc.lisp | (defpackage xyz.revecloud.re.tools.misc
(:use :cl)
(:export "pp-hash-table"
"merge-pathnames-to-string"
"escape-double-quote"))
(in-package :xyz.revecloud.re.tools.misc)
(defmacro merge-pathnames-to-string (root sub)
"Return a merge ROOT and SUB to form a pathname as a string."
`(namestr... | 601 | Common Lisp | .lisp | 15 | 36.266667 | 68 | 0.680412 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | d2369da0e75e6294f9dc780196a236391668bb60ab85b19fbdafd835fcb44d38 | 39,746 | [
-1
] |
39,747 | main.lisp | REve-Workshop_xyz_revecloud_re_cl/tools/tests/main.lisp | (defpackage xyz.revecloud.re.tools/tests/main
(:use :cl
:xyz.revecloud.re.tools
:rove))
(in-package :xyz.revecloud.re.tools/tests/main)
;; NOTE: To run this test file, execute `(asdf:test-system :xyz.revecloud.re.tools)' in your Lisp.
(deftest test-target-1
(testing "should (= 1 1) to be true"
... | 347 | Common Lisp | .lisp | 9 | 33.444444 | 98 | 0.651786 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 9374ecf9d0f30e2c4cb2ece1998a59e89c1c247cede44057425ee4a961eef2c2 | 39,747 | [
-1
] |
39,748 | tree.lisp | REve-Workshop_xyz_revecloud_re_cl/is/tree.lisp | ;;;; -*- coding:utf-8 -*-
;;;;****************************************************************************
;;;;FILE: tree.lisp
;;;;LANGUAGE: common-lisp
;;;;SYSTEM: common-lisp
;;;;USER-INTERFACE: common-lisp
;;;;DESCRIPTION
;;;;
;;;; See defpackage documentation string.
;;;;
... | 8,292 | Common Lisp | .lisp | 206 | 35.121359 | 123 | 0.558831 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 010a908faa82c55851f6f3cb324e1db120e5528064d3c7fc56668eb37362a4cd | 39,748 | [
-1
] |
39,749 | define.lisp | REve-Workshop_xyz_revecloud_re_cl/is/define.lisp | (defpackage pim.re.error
(:use #:cl #:xyz.revecloud.re.logging.builder)
(:export #:init
#:make-log-record-unknown-account-type
#:make-log-record-unknown-transaction-type
#:make-log-record-database-not-set)
(:import-from #:xyz.revecloud.re.logging.builder "make-log-record"))
(in-p... | 2,392 | Common Lisp | .lisp | 38 | 48.052632 | 174 | 0.612463 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 4f2ae80271b37daf893d84cb6f20f7817e28259facc66dc858f3e7be406a6d32 | 39,749 | [
-1
] |
39,750 | main.lisp | REve-Workshop_xyz_revecloud_re_cl/is/tests/main.lisp | ;;;; -*- coding:utf-8 -*-
;;;;****************************************************************************
;;;;FILE: main.lisp
;;;;LANGUAGE: common-lisp
;;;;SYSTEM: common-lisp
;;;;USER-INTERFACE: common-lisp
;;;;DESCRIPTION
;;;;
;;;; See defpackage documentation string.
;;;;
... | 4,105 | Common Lisp | .lisp | 98 | 32.969388 | 82 | 0.518984 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 246054c1181622ac767e30cd89a257617a6d34466fdc7d626f61018aa8100a08 | 39,750 | [
-1
] |
39,751 | git.lisp | REve-Workshop_xyz_revecloud_re_cl/someday/git.lisp | (defpackage xyz.revecloud.re.someday.git
(:use :cl :inferior-shell :str :xyz.revecloud.re.tools)
(:export #:commits-stat
#:repo-stat
#:repository-statistics))
(in-package :xyz.revecloud.re.someday.git)
(defstruct commits-stat
(ahead 0 :type number)
(behind 0 :type number))
(defstruct re... | 9,212 | Common Lisp | .lisp | 192 | 35.083333 | 103 | 0.529909 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 3d7f45909bb878e5d33e5700bfda7d6b381e09564073f3d1144cdbe08d87a1ba | 39,751 | [
-1
] |
39,754 | xyz.revecloud.re.asd | REve-Workshop_xyz_revecloud_re_cl/xyz.revecloud.re.asd | (asdf:defsystem "xyz.revecloud.re"
:version "0.1.0"
:author "Roland Everaert"
:license ""
:depends-on (:xyz.revecloud.re.tools
:xyz.revecloud.re.logging
:xyz.revecloud.re.is)
;; :components ((:module "src"
;; :components
;; ((:file ... | 854 | Common Lisp | .asd | 23 | 29.869565 | 62 | 0.533735 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 2d18f54db6d89c95f2c4d603deedf7d5bd4fd824c6e75afbf3c6e46709db58be | 39,754 | [
-1
] |
39,755 | xyz.revecloud.re.logging.test.asd | REve-Workshop_xyz_revecloud_re_cl/logging/xyz.revecloud.re.logging.test.asd | (asdf:defsystem "xyz.revecloud.re.logging/tests"
:author "Roland Everaert"
:license ""
:depends-on ("xyz.revecloud.re.logging"
"rove")
:components ((:module "tests"
:components
((:file "main"))))
:description "Test system for reve-... | 409 | Common Lisp | .asd | 10 | 30.6 | 69 | 0.566416 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 9a17e4267864beb95b515b012295f5ec19899f71d23f5a00a735fd3bf85e9906 | 39,755 | [
-1
] |
39,756 | xyz.revecloud.re.logging.asd | REve-Workshop_xyz_revecloud_re_cl/logging/xyz.revecloud.re.logging.asd | (asdf:defsystem "xyz.revecloud.re.logging"
:version "0.1.0"
:author "Roland Everaert"
:license ""
;; :depends-on (:str)
:components ((:file "builder"))
:description "REVE Workshop lisp logging system."
:in-order-to ((test-op (test-op "xyz.revecloud.re.logging/tests"))))
| 299 | Common Lisp | .asd | 8 | 32.875 | 72 | 0.656357 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 751667a35d8e35ace2ed10884be0b0de2bdc77de870ed725ff19e1f121d28baa | 39,756 | [
-1
] |
39,757 | xyz.revecloud.re.tools.test.asd | REve-Workshop_xyz_revecloud_re_cl/tools/xyz.revecloud.re.tools.test.asd | (asdf:defsystem "xyz.revecloud.re.tools/tests"
:author "Roland Everaert"
:license ""
:depends-on ("xyz.revecloud.re.tools"
"rove")
:components ((:module "tests"
:components
((:file "main"))))
:description "Test system for reve-work... | 391 | Common Lisp | .asd | 10 | 28.8 | 57 | 0.551181 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 17068096f72fe271a2df48633271f8346a58ccd50c1b6c770fad419aa154791b | 39,757 | [
-1
] |
39,758 | xyz.revecloud.re.tools.asd | REve-Workshop_xyz_revecloud_re_cl/tools/xyz.revecloud.re.tools.asd | (asdf:defsystem "xyz.revecloud.re.tools"
:version "0.1.0"
:author "Roland Everaert"
:license ""
;; :depends-on (:xyz.revecloud.re.tools.tools)
:components ((:file "misc")
(:file "cabs"))
:description "REVE Workshop tools."
:in-order-to ((test-op (test-op "xyz.revecloud.re.to... | 335 | Common Lisp | .asd | 9 | 31.222222 | 70 | 0.616564 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 9351d273c9fa5248216a2f1260de417fda01f369b5a19da4a5334402cabb35cf | 39,758 | [
-1
] |
39,759 | xyz.revecloud.re.is.asd | REve-Workshop_xyz_revecloud_re_cl/is/xyz.revecloud.re.is.asd | (asdf:defsystem "xyz.revecloud.re.is"
:version "0.1.0"
:author "Roland Everaert"
:license ""
;; :depends-on (:fact-base :str)
:components (;; (:file "define")
(:file "tree"))
:description "REVE Workshop information system."
:in-order-to ((test-op (test-op "xyz.revecloud.re.i... | 333 | Common Lisp | .asd | 9 | 31 | 67 | 0.604938 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 2339a7cd7066d722a68c3f122e95b7240eea6749e3f29792f76d78bf4ddcac14 | 39,759 | [
-1
] |
39,760 | xyz.revecloud.re.is.test.asd | REve-Workshop_xyz_revecloud_re_cl/is/xyz.revecloud.re.is.test.asd | (asdf:defsystem "xyz.revecloud.re.is/tests"
:author "Roland Everaert"
:license ""
:depends-on ("xyz.revecloud.re.is"
"rove")
:components ((:module "tests"
:components
((:file "main"))))
:description "Test system for reve-workshop i... | 398 | Common Lisp | .asd | 10 | 29.5 | 68 | 0.556701 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | e7e93980599e65cc7ad1873c508e84d67682bd3d68512fd41172141c7238e9b8 | 39,760 | [
-1
] |
39,769 | .dir-locals.el | REve-Workshop_xyz_revecloud_re_cl/.dir-locals.el | ((nil . ((reve:license-abbreviation . "GNU AGPL")
(reve:project-version . "0.0.1")
(reve:author-initial . "RE")
(user-mail-address . "computing.re@revecloud.xyz")
(reve:short-license . "This program is free software: you can redistribute it and/or modify
it under the terms of the GNU... | 861 | Common Lisp | .l | 14 | 57.785714 | 100 | 0.747929 | REve-Workshop/xyz.revecloud.re.cl | 0 | 0 | 3 | AGPL-3.0 | 9/19/2024, 11:46:54 AM (Europe/Amsterdam) | 893bfb629910faf30d9e64c30ccef2329ea6482f90785eb825681c3198c691ca | 39,769 | [
-1
] |
39,803 | eulersmethod.lisp | l4e21_LispExercises/eulersmethod.lisp |
;; Just a simple program designed to make euler's method recursive rather than by utilising loops
(defun acceleration (x)
;; Non-constant acceleration dependent on x
(+ (* -1 (expt x 3)) (* 2 (expt x 2)) (* 5 x) 3))
(defun eulermethod (x u accel tmax &optional (tacc 0) (tstep 1))
(cond ((= tmax tacc)
nil... | 442 | Common Lisp | .lisp | 9 | 45.666667 | 111 | 0.654028 | l4e21/LispExercises | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 337ce5178da6160f8d880d8fb74ad05221a4c2670f7847344b40d23317303678 | 39,803 | [
-1
] |
39,820 | package.lisp | gabriel-barrett_Formality-CL/package.lisp | (defpackage #:formality
(:documentation "Formality implementation in Common Lisp.")
(:use #:cl)
(:nicknames #:fm)
(:export
#:cl->term-macro ; MACRO
#:term-type ; TYPE
#:term-type-p ; FUNCTION (PREDICATE)
#:cl->term ... | 550 | Common Lisp | .lisp | 14 | 35.785714 | 62 | 0.401119 | gabriel-barrett/Formality-CL | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 7c04c2fa95d44d7bbe905981388ca45dc7de086900bb445974cc3bb755608179 | 39,820 | [
-1
] |
39,821 | pretty-print.lisp | gabriel-barrett_Formality-CL/pretty-print.lisp | (in-package #:formality)
(defun stringify (term)
(adt:match term-type term
((ver indx) (format nil "#~A" indx))
((ref name) (write-to-string name))
(typ "*")
((all eras self name bind body)
(format nil "~A~A(~A: ~A) ~A"
(if eras ... | 1,472 | Common Lisp | .lisp | 35 | 23.685714 | 110 | 0.387142 | gabriel-barrett/Formality-CL | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 038c76025849c5efb7553baa65e57b7ad3470b81122357dbea32d092315ed932 | 39,821 | [
-1
] |
39,822 | cl-to-fm.lisp | gabriel-barrett_Formality-CL/cl-to-fm.lisp | (in-package #:formality)
(adt:defdata erasure
(erase t))
(defun single-erase-reader (stream char)
(declare (ignore char))
(list (quote erase) (read stream t nil t)))
(set-macro-character #\! #'single-erase-reader)
(defun extract-eras (x) (adt:match erasure x ((erase x) x)))
;; (lam* eras (A B ...) body) exp... | 4,378 | Common Lisp | .lisp | 98 | 34.683673 | 107 | 0.548349 | gabriel-barrett/Formality-CL | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | cd009eac24d9b47a7a61932ae4267bd7d5801323ffdd9f94acd0029d5adb86b7 | 39,822 | [
-1
] |
39,823 | core.lisp | gabriel-barrett_Formality-CL/core.lisp | (in-package #:formality)
(adt:defdata term-type
"Data type for FormalityCore terms."
;; var indx
;; ref name
;; all eras self name bind body
;; lam eras name body
;; app eras func argm
;; let name expr body
;; ann done expr type
;; loc from upto expr
(ver integer)
(ref symbol)
typ
(all boolea... | 5,115 | Common Lisp | .lisp | 137 | 29.19708 | 84 | 0.548692 | gabriel-barrett/Formality-CL | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 1e03c109e100a8d6fb34ff5df934cf4844b447a7a2432fabec76d52b883af2f4 | 39,823 | [
-1
] |
39,824 | formality.asd | gabriel-barrett_Formality-CL/formality.asd | (asdf:defsystem #:formality
:description "Formality implementation in Common Lisp."
:version "0.0.6"
:author "Gabriel Barreto <gabriel.aquino.barreto@gmail.com>"
:license "GPLv3"
:depends-on (#:alexandria #:cl-algebraic-data-type #:trivia)
:serial t
:components ((:static-file "LICENSE.txt")
... | 443 | Common Lisp | .asd | 12 | 29.75 | 62 | 0.610209 | gabriel-barrett/Formality-CL | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 5ddedb2179c1f75710bdf13bbda722101f8fd6273a7b3ea496841201bd4c67a5 | 39,824 | [
-1
] |
39,845 | solver.lisp | O-Jun-S_CL_caesar/solver.lisp | ; String to ascii list.
(defun str-code (str)
(mapcar #'char-code
(coerce str 'list)))
; Ascii list to string.
(defun dec-code (asc)
(coerce (mapcar #'code-char
asc)
'string))
; String shift function.
(defun ascii-shift (lst val)
(mapcar
(lambda (chr)
(setq plused-ascii (+ chr val))
... | 1,345 | Common Lisp | .lisp | 42 | 20.857143 | 63 | 0.469954 | O-Jun-S/CL_caesar | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 95b47ccc5179cf21afb8a31187495f34fcde8068f1d18a659c98b02bd222fe82 | 39,845 | [
-1
] |
39,862 | server.lisp | cmatzenbach_cl-webserver-api-skeleton/server.lisp | (in-package :server)
;; create variable to store acceptor
(defvar *acceptor* nil)
;; start server
(defun start-server ()
(stop-server)
(hunchentoot:start (setf *acceptor*
(make-instance 'easy-routes:easy-routes-acceptor
:port 5000))))
;; function to stop server
(defun... | 5,004 | Common Lisp | .lisp | 105 | 44.009524 | 183 | 0.67562 | cmatzenbach/cl-webserver-api-skeleton | 0 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 240b1c60826fc2de631900f01bcac72688f17c1e43146d18fa008e756b971c64 | 39,862 | [
-1
] |
39,863 | packages.lisp | cmatzenbach_cl-webserver-api-skeleton/packages.lisp | (defpackage :server
(:use cl)
(:export
:start-server
:stop-server))
(defpackage :db
(:export
:connect-db
:disconnect-db
:create-users-table))
| 159 | Common Lisp | .lisp | 10 | 13.2 | 23 | 0.70068 | cmatzenbach/cl-webserver-api-skeleton | 0 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 23d2c13ad61a59e1f2ca66339d011dd64950d1b1900b390d99a5b2373406124d | 39,863 | [
-1
] |
39,864 | conway-ff-api.asd | cmatzenbach_cl-webserver-api-skeleton/conway-ff-api.asd | (asdf:defsystem "conway-ff-api"
:description "Simple app for conway's class"
:version "0.0.1"
:depends-on ("hunchentoot" "easy-routes" "jonathan" "mito")
:components ((:file "packages")
(:file "db" :depends-on ("packages"))
(:file "server" :depends-on ("packages"))
(:file "main" :depends-on ... | 334 | Common Lisp | .asd | 8 | 37.25 | 60 | 0.631902 | cmatzenbach/cl-webserver-api-skeleton | 0 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | de723a0431faf87845dc092ae818cff14e1293d200695abb85d9eb3d8256aade | 39,864 | [
-1
] |
39,867 | Makefile | cmatzenbach_cl-webserver-api-skeleton/Makefile | app_dir := $(dir $(CURDIR))
all: container
container:
sudo docker build -t conway-ff-api .
run: container
sudo docker run -a stdin -a stdout -a stderr -i -t conway-ff-api
clean:
sudo docker rm $(docker ps -a -q)
sudo docker rmi $(docker images -q)
| 257 | Common Lisp | .l | 9 | 26.555556 | 65 | 0.713115 | cmatzenbach/cl-webserver-api-skeleton | 0 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 27dec17b2a6e2f094346fe9e92f51de7fa16fb9ecd38dbeda1626d375f736ba0 | 39,867 | [
-1
] |
39,868 | Dockerfile | cmatzenbach_cl-webserver-api-skeleton/Dockerfile | # Chose this ubuntu base image because its small and optimized for Docker(ness)
FROM phusion/baseimage:latest-amd64
# Installing what I need from ubuntu to do the job.
# - wget to download stuff from the web
# -- curl gave me a 301 trying to download build app so I swiched to wget
# - sbcl and build-essentials - T... | 2,415 | Common Lisp | .l | 47 | 48.787234 | 95 | 0.704237 | cmatzenbach/cl-webserver-api-skeleton | 0 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:47:02 AM (Europe/Amsterdam) | 5d91239b587fd56294199bad4992a976c28a9378aa24e85d3600bb539d164e66 | 39,868 | [
-1
] |
39,884 | donut.lisp | theRealZauberwuerfel_donut-math/donut.lisp | (deftype fuzzy-float () '(float 0.0 1.0))
(defconstant +theta-spacing+ (the fuzzy-float 0.07))
(defconstant +phi-spacing+ (the fuzzy-float 0.02))
(defconstant +R1+ (the fuzzy-float 1.0))
(defconstant +R2+ (the float 2.0))
(defconstant +K2+ (the float 5.0))
(defconstant +K1+ (the float (/ (* *screen-width* +K2+ 3)
... | 3,402 | Common Lisp | .lisp | 66 | 30.060606 | 92 | 0.352041 | theRealZauberwuerfel/donut-math | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:11 AM (Europe/Amsterdam) | 36359bcbe53c5545f67f07f706c393bdb97bf8c679ca27ddb074d237f73aaf54 | 39,884 | [
-1
] |
39,901 | eql.lisp | sam-falvo_equilibrium-cl/eql.lisp | ;;;; Equilibrium/CL
;;;;
;;;; A port of a video game I once wrote in 2010 in Forth, for the SDL
;;;; 1.2 library. I wonder how easy it will be to port the software
;;;; to the Common Lisp environment?
;;;;
;;;; NOTE NOTE NOTE: You cannot run this software from the SLIME IDE.
;;;; SLIME keeps the SBCL (or whatever) ins... | 14,500 | Common Lisp | .lisp | 359 | 34.526462 | 75 | 0.631163 | sam-falvo/equilibrium-cl | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:11 AM (Europe/Amsterdam) | ad14fbd2405f5d2e2251d5b0119f2b54702a6d0e66aee4d7550f9fe261976ccd | 39,901 | [
-1
] |
39,918 | lmc.lisp | make-drop_LMC/lmc.lisp | ;;; Marco Caspani
;;; Marco Gatti
;;; LMC SIMULATOR functions (first part)
;; Returns the instruction fetched from the ram memory
(defun fetch (state)
(let ((pc (get-pc state)))
(cons state (mem-load state pc))))
;; Returns a list cell with the state, instruction to execute and the xx value
(defun decode... | 17,116 | Common Lisp | .lisp | 411 | 34.209246 | 79 | 0.609947 | make-drop/LMC | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:19 AM (Europe/Amsterdam) | 5cd33a3f0c6d5b8d50627d66d359369a3da4087c0274150a8f74535b599e7f38 | 39,918 | [
-1
] |
39,921 | lmc.pl | make-drop_LMC/lmc.pl | %Marco Gatti
%Marco Caspani
:- dynamic
label/2.
%LMC_RUN
lmc_run(Filename, Input, Output) :-
lmc_load(Filename, Istruction),
make_memory(Istruction, Memory),
execution_loop(state(0, 0, Memory, Input, [], noflag), Output),
!.
%LMC_LOAD
lmc_load(Filename, Mem) :-
open_file(F... | 11,865 | Common Lisp | .l | 417 | 23.275779 | 68 | 0.576862 | make-drop/LMC | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:19 AM (Europe/Amsterdam) | d5199eda42c4bc0694037a43313f1a61f20ee879905830788b9796debaf65a0b | 39,921 | [
-1
] |
39,937 | zone.lsp | gattosilversto_autocadLISP/zone.lsp | ; Length/Area of Polyline by Layer
; David Bethel May 2004 from an original idea by David Watson
; This command will give a total area or length for all polylines on a specified layer.
;
(defun c:zone ( / ss la rv i tv op en)
(while (not ss)
(princ "\nPick any object on the required layer")... | 1,417 | Common Lisp | .l | 34 | 28.941176 | 90 | 0.460756 | gattosilversto/autocadLISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | a9e7fee372feb55918b103fb3d604b0fae1606d3f07f27c88bdfae59842e1bef | 39,937 | [
-1
] |
39,938 | zp.lsp | gattosilversto_autocadLISP/zp.lsp | :sets all lines to zero elevation
(DEFUN C:ZP2 ()
(graphscr)
(setq FNM (getstring "Enter name of TEXT file to create: "))
(setq FNM (strcat FNM ".txt"))
(setq FD (open FNM "w"))
(setq HEAD "POINT \t\tX \t\tY \t\tELEV")
(write-line "Exported coordinates:-" FD)
(princ "\n" FD)
(write-line HEAD FD)
(princ "\n"... | 1,798 | Common Lisp | .l | 57 | 28.263158 | 107 | 0.615075 | gattosilversto/autocadLISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 8e27d01769c5000b4b5f457e50f1f0005d62c55fd02ae98de5f6b1f9cf45660b | 39,938 | [
-1
] |
39,955 | jmc.lisp | TralahM_lisp_programs/jmc.lisp | ; The Lisp defined in McCarthy's 1960 paper, translated into CL.
; Assumes only quote, atom, eq, cons, car, cdr, cond.
; Bug reports to lispcode@paulgraham.com.
(defun null. (x)
(eq x '()))
(defun and. (x y)
(cond (x (cond (y 't) ('t '())))
('t '())))
(defun not. (x)
(cond (x '())
('t 't)))
(d... | 1,894 | Common Lisp | .lisp | 56 | 25.964286 | 64 | 0.425835 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 083bf4254f2d8d17b11246dc35e1f998a154df6250bdc41dd4e8b1885a651ee5 | 39,955 | [
-1
] |
39,956 | functions.lisp | TralahM_lisp_programs/functions.lisp | ; Named Functions:defun
; creating named functions is done with the defun keyword. It follows this mode
; (defun <name> (list of arguments)
; "docstring"
; (function body))
;; example
(defun greet ()
"greet function"
(print "Greetings!"))
;;; (greet)
;; Arguments
(defun greeta (name)
"Greet a `name."
(format ... | 3,653 | Common Lisp | .lisp | 105 | 32.92381 | 79 | 0.674716 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | a5d5a14fd6663bcad054ab573eccbdceb1f8f8d3d44466288e1414414733e450 | 39,956 | [
-1
] |
39,957 | cumsum.lisp | TralahM_lisp_programs/cumsum.lisp | (defun cumsum (lst &key (smsf 0))
" Calculate the Cumulative Sum of a List `lst'. and return a new list with the incremental sums at each step. (`cumsum' '(1 3 4 6 8) :smsf 0) where `:smsf' is an optional parameter specifying where to start summing from. i.e the offset of counting."
(if (null lst)
'()
(c... | 486 | Common Lisp | .lisp | 8 | 56.5 | 252 | 0.632353 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | cbb1b935a59f0e39998778945bcf183bbd6e6261239cefc273ca735afe5bbe89 | 39,957 | [
-1
] |
39,958 | first.lisp | TralahM_lisp_programs/first.lisp | ;Function definition, closures,scope,#'functions
(defun dbl (x) (* x 2))
(defun add-two (x) (mapcar #'(lambda (x) (+ 2 x)) x))
(let ((counter 0))
(defun new-id () (incf counter))
(defun reset-id () (setq counter 0)))
(print (remove-if #'evenp '(1 2 3 4 5 6 7 8 9 10)))
(print (add-two '(43 34)))
(print (mapcar ... | 416 | Common Lisp | .lisp | 12 | 32.916667 | 53 | 0.609023 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | e376d035dd487b252a9fcaad31bbad57469458ec756cd3eb093cae5e76d7fd3d | 39,958 | [
-1
] |
39,960 | list_operations.lisp | TralahM_lisp_programs/utilities/list_operations.lisp | ; Utility Functions for Operations on Lists
; Author: Tralah M Brian
;
; Copyright © 2020 Tralah M Brian
; Permission is hereby granted, free of charge, to any person obtaining
; a copy of this software and associated documentation files (the "Software"),
; to deal in the Software without restriction, including witho... | 3,446 | Common Lisp | .lisp | 74 | 39.256757 | 78 | 0.632568 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 220c49fba2d8b22b106c49e0c01e71091bd5606c63e80f31ef8acd1b1e92544c | 39,960 | [
-1
] |
39,961 | symbols_and_strings.lisp | TralahM_lisp_programs/utilities/symbols_and_strings.lisp | ;Functions which operate on symbols and strings
; Symbols and strings are closely related.By means of priinting and reading
; functions we can go back and forth between the two representation.
;; The first,mkstr takes any number of arguments and concatenates their printed
;; representations into a string:
;;; Built ... | 1,081 | Common Lisp | .lisp | 24 | 42.041667 | 80 | 0.719617 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 01dc27dbc24c76e0072580cd8c84ca924fd2da5ed450da450d847756e08e096e | 39,961 | [
-1
] |
39,962 | mapping_functions.lisp | TralahM_lisp_programs/utilities/mapping_functions.lisp | ;; Another widely used class of Lisp functions are the mapping functions which
;; apply a function to a sequence of arguments.
;; both map0-n and map1-n are written using the general form mapa-b, which works
;; for any range of numbers and not only for ranges of positive integers
(defun mapa-b (fn a b &optional (step 1... | 1,769 | Common Lisp | .lisp | 44 | 36.045455 | 80 | 0.62595 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 9dfff94784e64e7d94b004df3dca9e7bfb84417a63970a0ceed287f3bd258e0e | 39,962 | [
-1
] |
39,963 | function_utils.lisp | TralahM_lisp_programs/utilities/function_utils.lisp | (defun cmplmnt (fn)
#'(lambda (&rest args) (not (apply fn args))))
;; (remove-if (cmplmnt #'oddp) '(1 2 3 4 5 6)) ;=> (1 3 5)
;;
; # Returning Destructive Elements
;; (defvar *!equivs* (make-hash-table))
;; (defun ! (fn)
;; (or (gethash fn *!equivs*) fn))
;; (defun def! (fn fn!)
;; (setf (gethash fn *!equ... | 1,777 | Common Lisp | .lisp | 54 | 27.907407 | 83 | 0.566883 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 7a2c08fe4eee47a1d66975dc8da560024333aefeabaf461c63b5f312d2fff14b | 39,963 | [
-1
] |
39,964 | IO_utils.lisp | TralahM_lisp_programs/utilities/IO_utils.lisp |
;;For the case where you want users to be able to type in expressions without
;;parenthenses; it reads a line of input and returns it as a list
(defun readlist (&rest args)
(values (read-from-string
(concatenate 'string "("
(apply #'read-line args)
")")... | 1,300 | Common Lisp | .lisp | 35 | 32.971429 | 79 | 0.628185 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 7e5836dc2e807be75b4c0217d8b43bb395c74a06c9bf84f517788aabc621d789 | 39,964 | [
-1
] |
39,965 | search_utils.lisp | TralahM_lisp_programs/utilities/search_utils.lisp | ; Functions which search lists
(defun find2 (fn lst)
(if (null lst)
nil
(let ((val (funcall fn (car lst))))
(if val
(values (car lst) val)
(find2 fn (cdr lst))))))
(defun before (x y lst &key (test #'eql))
(and lst
(let ((first (car lst)))
(cond ((funcall... | 2,362 | Common Lisp | .lisp | 70 | 26.928571 | 74 | 0.496709 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | efb2f912bd4467f9084101afd9d487f6d4692720c6ac331be5029253def1db28 | 39,965 | [
-1
] |
39,966 | gps.lisp | TralahM_lisp_programs/gps/gps.lisp | (defvar *ops* nil "A list of available operators.")
(defstruct op "An operation"
(action nil) (preconds nil) (add-list nil) (del-list nil))
(defvar *dbg-ids* nil "Identifiers used by dbg")
(defun dbg (id format-string &rest args)
"Print Debugging info if (DEBUG ID) has been specified."
(when (member id *dbg-... | 6,555 | Common Lisp | .lisp | 150 | 37.313333 | 108 | 0.638234 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | ad1a18bac0025b2180944cbe3ff944e071b24e2bb21c6f03b71957ebb6f35813 | 39,966 | [
-1
] |
39,967 | tralahtek-utils.asd | TralahM_lisp_programs/tralahtek-utils.asd | (defsystem tralahtek-utils
:author "Tralah M Brian <musyoki.brian@tralahtek.com>"
:maintainer "Tralah M Brian <musyoki.brian@tralahtek.com>"
:homepage "https://github.com/TralahM/lisp_programs"
:version "0.1"
:depends-on ()
:components ((:module "utilities"
:serial t
... | 615 | Common Lisp | .asd | 15 | 33.533333 | 61 | 0.643333 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | df0627ddda58952db4d2171bfe0c0c20512fbb044f649bcf8ef9d3412e4d1ff9 | 39,967 | [
-1
] |
39,968 | tralahtek-utils-test.asd | TralahM_lisp_programs/tralahtek-utils-test.asd | (defsystem tralahtek-utils-test
:author "Tralah M Brian <musyoki.brian@tralahtek.com>"
:license "GPLv3"
:depends-on (:tralahtek-utils
;:some-test-framework
)
:components ((:module "tests"
:serial t
:components
((:file "tralahtek-utils... | 327 | Common Lisp | .asd | 10 | 23.1 | 56 | 0.55836 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 940664637d9c4b83ee8ff32495b3582154bde1dcfb3e2ba9d9feacec33d7ebaa | 39,968 | [
-1
] |
39,980 | list_operations.fasl | TralahM_lisp_programs/utilities/list_operations.fasl | #!/usr/bin/sbcl --script
# FASL
compiled from "/home/african/Desktop/Lisp/programs/utilities/list_operations.lisp"
using SBCL version 2.0.8
ˇ X86-64N 2.0.8 (GENCGC SB-THREAD SB-UNICODE)MPROCLAIMM
INLINESCOMMON-LISP-USEROLAST1O
SINGLEOAPPEND1OCONC1O
MKLISTÜ8SSB-IMPLO
%DEFUN>S SB-KERN... | 5,643 | Common Lisp | .l | 37 | 151.405405 | 528 | 0.386481 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | bb531e5f1dc3a02be6e9dcbeb9c168957679255bb9edfb9079b9a50896440d76 | 39,980 | [
-1
] |
39,981 | mapping_functions.fasl | TralahM_lisp_programs/utilities/mapping_functions.fasl | #!/usr/bin/sbcl --script
# FASL
compiled from "/home/african/Desktop/Lisp/programs/utilities/mapping_functions.lisp"
using SBCL version 2.0.8
ˇ X86-64N 2.0.8 (GENCGC SB-THREAD SB-UNICODE)SSB-IMPLO
%DEFUNSCOMMON-LISP-USERO
MAPA-B>SSB-VMOCONS->R11"ó O LIST-NREVERSE"…í OGENERIC->"... | 5,462 | Common Lisp | .l | 46 | 117.608696 | 521 | 0.403619 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 630e40856251dfe2d36d33c7222c53bc1461394f5f2ec9ee4e3f8e0c9fb6630a | 39,981 | [
-1
] |
39,982 | symbols_and_strings.fasl | TralahM_lisp_programs/utilities/symbols_and_strings.fasl | #!/usr/bin/sbcl --script
# FASL
compiled from "/home/african/Desktop/Lisp/programs/utilities/symbols_and_strings.lisp"
using SBCL version 2.0.8
ˇ X86-64N 2.0.8 (GENCGC SB-THREAD SB-UNICODE)SSB-IMPLO
%DEFUNSCOMMON-LISP-USEROMKSTR>SSB-VMOCONS->R11"Î M1GET-OUTPUT-STREAM-STRING"…fl M... | 3,516 | Common Lisp | .l | 16 | 218.5625 | 827 | 0.481005 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 7c781e5094b98e89c4500ecfd8debae86d70afd89aca12058836c785e71c7658 | 39,982 | [
-1
] |
39,987 | function_utils.fasl | TralahM_lisp_programs/utilities/function_utils.fasl | #!/usr/bin/sbcl --script
# FASL
compiled from "/home/african/Desktop/Lisp/programs/utilities/function_utils.fasl"
using SBCL version 2.0.8
ÿ X86-64N 2.0.8 (GENCGC SB-THREAD SB-UNICODE)?> @ | 208 | Common Lisp | .l | 5 | 40 | 83 | 0.686275 | TralahM/lisp_programs | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 54fce9d095f128ddd9df218a4922957be5610d907819d87f5a60e37c611e7211 | 39,987 | [
-1
] |
40,004 | package.lisp | kamysheblid_convertify/package.lisp | ;;;; package.lisp
(defpackage #:convertify
(:use #:cl)
(:export #:convertify #:numberify #:stringify #:characterify #:listify #:arrayify))
| 144 | Common Lisp | .lisp | 4 | 33.75 | 85 | 0.697842 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 59f8265bf81f58f9cc5e0252d6de26024c13d8c2345c351a131bd22d6f67c6e7 | 40,004 | [
-1
] |
40,005 | number.lisp | kamysheblid_convertify/number.lisp | ;;;; number.lisp
(in-package #:convertify)
(defgeneric numberify (arg)
(:documentation
"Turn LIST CHARACTER STRING SYMBOL NUMBER OR ARRAY into a NUMBER.
NUMBER returns itself.
CHARACTER returns digit.
STRING returns the number.
SYMBOL returns the number.
ARRAY/LIST returns the number with digits going from left ... | 1,084 | Common Lisp | .lisp | 27 | 37.814815 | 189 | 0.747137 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 44034d1776f3111f310fa2424f3115c22ce5d84b548bb4d72d3bda389860b104 | 40,005 | [
-1
] |
40,006 | character.lisp | kamysheblid_convertify/character.lisp | ;;;; character.lisp
(in-package #:convertify)
(defgeneric characterify (arg)
(:documentation
"Turn LIST CHARACTER STRING SYMBOL NUMBER OR ARRAY into a character or characters.
CHARACTER returns itself.
ARRAY returns a list containing the input as characters. It is recursive, so if one element of ARRAY is 123, it... | 1,330 | Common Lisp | .lisp | 31 | 39.935484 | 159 | 0.721921 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | b1e7cba0138dc892d667f374f8a61e471d4d3754ba9ca517e15da4c45a7af2b5 | 40,006 | [
-1
] |
40,007 | array.lisp | kamysheblid_convertify/array.lisp | ;;;; array.lisp
(in-package #:convertify)
(defgeneric arrayify (arg)
(:documentation
"Turn LIST CHARACTER STRING SYMBOL NUMBER OR ARRAY into an ARRAY.
ARRAY returns itself.
CHARACTER returns ARRAY containing the character.
STRING returns ARRAY containing the characters of STRING.
SYMBOL returns ARRAY containing ... | 1,111 | Common Lisp | .lisp | 30 | 34.733333 | 68 | 0.71575 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 4dfc82ae931f3c58c3ac37b778b43b53aaad2b550f128212afd9bad475df910c | 40,007 | [
-1
] |
40,008 | convertify-tests.lisp | kamysheblid_convertify/convertify-tests.lisp | ;;;; convertify-tests.lisp
(defpackage :convertify-tests
(:use :convertify :clunit :common-lisp))
(in-package :convertify-tests)
;;; universal variables
(defvar char-letter-list (list #\A #\B #\C))
(defvar letter-list (list 'A 'B 'C))
(defvar number-list (list 1 2 3))
(defvar num-list (list 123))
(defvar char-numb... | 7,290 | Common Lisp | .lisp | 94 | 76.308511 | 122 | 0.770453 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 977451c6e03d42264b7f60e4c61b5b17875fb32a7583009df13ac84e18020330 | 40,008 | [
-1
] |
40,009 | list.lisp | kamysheblid_convertify/list.lisp | ;;;; list.lisp
(in-package #:convertify)
(defgeneric listify (arg)
(:documentation
"Turn LIST CHARACTER STRING SYMBOL NUMBER or ARRAY into a list.
A LIST returns itself.
A CHARACTER will return character in a list.
A STRING will return a list of character.
A SYMBOL will return a list of characters, unless symbol... | 872 | Common Lisp | .lisp | 23 | 35.826087 | 119 | 0.745541 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | f7491fa60dc00e2a1ae507971f3d9aa7a2fb2dd99c6b02c990dc3080e0b57bbd | 40,009 | [
-1
] |
40,010 | convertify.lisp | kamysheblid_convertify/convertify.lisp | ;;;; convertify.lisp
(in-package #:convertify)
(defun convertify (arg type)
"Convert ARG to TYPE.
TYPE can be the symbol, string, character, number, array, or list.
The type of ARG can be symbol, string, character, number, array, or list.
"
(case type
(string (stringify arg))
(number (numberify arg))
... | 405 | Common Lisp | .lisp | 13 | 28.153846 | 73 | 0.702564 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 4dbfcb651cef13a4538a07a37325ea81cc02b3cd99ee53140630683fdf5d920a | 40,010 | [
-1
] |
40,011 | string.lisp | kamysheblid_convertify/string.lisp | ;;;; string.lisp
(in-package #:convertify)
(defgeneric stringify (arg)
(:documentation
"Turn LIST CHARACTER STRING SYMBOL NUMBER OR ARRAY into an STRING.
STRING returns itself.
CHARACTER returns STRING containing of the character.
ARRAY returns STRING containing the leaves as a STRING.
SYMBOL returns STRING cont... | 1,051 | Common Lisp | .lisp | 29 | 33.62069 | 69 | 0.735178 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | fafcdb1c58d2c56f63cab6b77a11e509f69f2545290d60d4de93ebb0a24a0e7e | 40,011 | [
-1
] |
40,012 | convertify.asd | kamysheblid_convertify/convertify.asd | ;;;; convertify.asd
(defsystem #:convertify
:description "Converty common types to other common types"
:author "Kamy Sheblid <kamysheblid@gmail.com>"
:license "GPLv3"
:version "0.0.1"
:components ((:file "package")
(:file "string" :depends-on ("package"))
(:file "list" :depends-on ("package"... | 845 | Common Lisp | .asd | 25 | 28.2 | 60 | 0.621027 | kamysheblid/convertify | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 793a688ea739a75f2ba57ff9e84d67103a528b05200337f38f83162383742bc8 | 40,012 | [
-1
] |
40,036 | app.lisp | TralahM_webprotek/app.lisp | (ql:quickload :webprotek)
(defpackage webprotek.app
(:use :cl)
(:import-from :lack.builder
:builder)
(:import-from :ppcre
:scan
:regex-replace)
(:import-from :webprotek.web
:*web*)
(:import-from :webprotek.config
:config
... | 914 | Common Lisp | .lisp | 37 | 17.324324 | 88 | 0.529143 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 0b9cac73ebe9e927c22fa0c69d4c34cb12353086f48674f64c6a016649676356 | 40,036 | [
-1
] |
40,037 | db.lisp | TralahM_webprotek/src/db.lisp | (in-package :cl-user)
(defpackage webprotek.db
(:use :cl)
(:import-from :webprotek.config
:config)
(:import-from :datafly
:*connection*)
(:import-from :cl-dbi
:connect-cached)
(:export :connection-settings
:db
:with-connection))
(in-package... | 608 | Common Lisp | .lisp | 20 | 24.7 | 52 | 0.62735 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 93ce09f11303f65f186a54fce13cbd4b56b98ae62ab7b376a9473f919fd07528 | 40,037 | [
-1
] |
40,038 | main.lisp | TralahM_webprotek/src/main.lisp | (in-package :cl-user)
(defpackage webprotek
(:use :cl)
(:import-from :webprotek.config
:config)
(:import-from :clack
:clackup)
(:export :start
:stop))
(in-package :webprotek)
(defvar *appfile-path*
(asdf:system-relative-pathname :webprotek #P"app.lisp"))
(defvar *h... | 740 | Common Lisp | .lisp | 26 | 23.269231 | 66 | 0.632394 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 166d406337e1dc4b212a099871b368f9d1b1f590d668e9e8a5c467023f0bb180 | 40,038 | [
-1
] |
40,039 | view.lisp | TralahM_webprotek/src/view.lisp | (in-package :cl-user)
(defpackage webprotek.view
(:use :cl)
(:import-from :webprotek.config
:*template-directory*)
(:import-from :caveman2
:*response*
:response-headers)
(:import-from :djula
:add-template-directory
:compile-template... | 1,476 | Common Lisp | .lisp | 43 | 26.511628 | 79 | 0.625965 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 64f516e1658b55c3c0e1ff8aba970f4f0010aa8cbf65af468da961d672a45b12 | 40,039 | [
-1
] |
40,040 | config.lisp | TralahM_webprotek/src/config.lisp | (in-package :cl-user)
(defpackage webprotek.config
(:use :cl)
(:import-from :envy
:config-env-var
:defconfig)
(:export :config
:*application-root*
:*static-directory*
:*template-directory*
:appenv
:developmentp
:prod... | 1,099 | Common Lisp | .lisp | 34 | 27.5 | 87 | 0.658768 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | db901f3372db8df7f0d248fe4817e1fca2673368a35e91e308c68ce642f9f48d | 40,040 | [
-1
] |
40,041 | web.lisp | TralahM_webprotek/src/web.lisp | (in-package :cl-user)
(defpackage webprotek.web
(:use :cl
:caveman2
:webprotek.config
:webprotek.view
:webprotek.db
:datafly
:sxql)
(:export :*web*))
(in-package :webprotek.web)
;; for @route annotation
(syntax:use-syntax :annot)
;;
;; Application
(defclass <web> (... | 645 | Common Lisp | .lisp | 28 | 19.035714 | 54 | 0.622951 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | dd839a41b5b183822eb8977100d2b80db1a9da4b4721f51ef494f520afc05b1f | 40,041 | [
-1
] |
40,042 | webprotek.lisp | TralahM_webprotek/tests/webprotek.lisp | (in-package :cl-user)
(defpackage webprotek-test
(:use :cl
:webprotek
:prove))
(in-package :webprotek-test)
(plan nil)
;; blah blah blah.
(finalize)
| 170 | Common Lisp | .lisp | 9 | 15.555556 | 28 | 0.670886 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 0909ca945a045e1dcc9617f7d0fcd39ffc7da7753cac36c7def426dadfb71777 | 40,042 | [
-1
] |
40,043 | webprotek-test.asd | TralahM_webprotek/webprotek-test.asd | (defsystem "webprotek-test"
:defsystem-depends-on ("prove-asdf")
:author "Tralah M Brian"
:license ""
:depends-on ("webprotek"
"prove")
:components ((:module "tests"
:components
((:test-file "webprotek"))))
:description "Test system for webprotek"
:perform (t... | 381 | Common Lisp | .asd | 11 | 28.090909 | 73 | 0.613514 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 906a70979e87716efae34134b6fb6edad854122656efb1d3aa42e4b9158ca25b | 40,043 | [
-1
] |
40,044 | webprotek.asd | TralahM_webprotek/webprotek.asd | (defsystem "webprotek"
:version "0.1.0"
:author "Tralah M Brian"
:license ""
:depends-on ("clack"
"lack"
"caveman2"
"envy"
"cl-ppcre"
"uiop"
;; for @route annotation
"cl-syntax-annot"
;; HTM... | 823 | Common Lisp | .asd | 26 | 19.230769 | 66 | 0.421914 | TralahM/webprotek | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | a4663e89d900434135c539698a135300f46faec14c955b6dcc8cd3d9849db079 | 40,044 | [
-1
] |
40,071 | reverb.lisp | enzuru_reverb/reverb.lisp | ;; Copyright (C) enzu.ru
;; SPDX-License-Identifier: GPL-3.0
;; Package information
(defpackage :reverb (:use :cl :sketch)
(:export
#:make-instance))
(in-package :reverb)
;; Global variables
(defparameter *events* (make-hash-table))
(defparameter *instances* (make-hash-table))
(defparamete... | 5,936 | Common Lisp | .lisp | 154 | 30.454545 | 93 | 0.580972 | enzuru/reverb | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 2d8617cdb70ff39e8e7b7513eb24a352602fa75e7e621396c2673ee9ff456dd5 | 40,071 | [
-1
] |
40,088 | package.lisp | wsgac_cl-audio-file-splitter/package.lisp | ;;;; package.lisp
(defpackage #:cl-audio-file-splitter
(:use #:cl)
(:export #:*encoding-backend*
#:*id3-backend*
#:split-single-file-into-parts))
| 159 | Common Lisp | .lisp | 6 | 23.333333 | 36 | 0.657895 | wsgac/cl-audio-file-splitter | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | f285f26b47bc17301b5b5c61cbd746a9141d6b118b3f6aa9129442c441d23c7c | 40,088 | [
-1
] |
40,089 | cl-audio-file-splitter.lisp | wsgac_cl-audio-file-splitter/cl-audio-file-splitter.lisp | ;;;; cl-audio-file-splitter.lisp
(in-package #:cl-audio-file-splitter)
(defparameter *encoding-backend* :ffmpeg)
(defparameter *allowed-encoding-backends* '(:ffmpeg))
(defparameter *id3-backend* :id3ed)
(defparameter *allowed-id3-backend* '(:id3ed :mp3info))
(defun duration-p (duration)
"Check if DURATION conforms... | 4,343 | Common Lisp | .lisp | 110 | 36.027273 | 120 | 0.661765 | wsgac/cl-audio-file-splitter | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 46a737a5c029444141103c9e8e52d17a44b343faeda8c6ee8c2e6147479563e5 | 40,089 | [
-1
] |
40,090 | cl-audio-file-splitter.asd | wsgac_cl-audio-file-splitter/cl-audio-file-splitter.asd | ;;;; cl-audio-file-splitter.asd
(asdf:defsystem #:cl-audio-file-splitter
:description "A tiny Common Lisp utility for splitting audio files based on temporal description"
:author "Wojciech S. Gac <wojciech.s.gac@gmail.com>"
:license "GPLv3"
:version "0.0.1"
:serial t
:depends-on (#:cl-ppcre)
:components... | 390 | Common Lisp | .asd | 10 | 35 | 99 | 0.691293 | wsgac/cl-audio-file-splitter | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:27 AM (Europe/Amsterdam) | 3615b00f609e64ed4409f4975552d9a1f81504c209b72bd320ab8676c7c180a3 | 40,090 | [
-1
] |
40,109 | compile.lisp | MasterCsquare_cl-ydcv/compile.lisp | (ql:quickload :cl-ydcv)
(sb-ext:save-lisp-and-die "ydcv" :toplevel 'cl-ydcv:ydcv :executable t :compression t)
| 111 | Common Lisp | .lisp | 2 | 54.5 | 86 | 0.743119 | MasterCsquare/cl-ydcv | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:43 AM (Europe/Amsterdam) | f56810a122ddb50b45cc3b44a1505747d9dbea9f91cf6f66670d0a1433ed7f0d | 40,109 | [
-1
] |
40,110 | cl-ydcv.asd | MasterCsquare_cl-ydcv/cl-ydcv.asd | (defsystem :cl-ydcv
:serial t
:depends-on (#:dexador
#:clache
#:cl-readline
#:crypto-shortcuts
#:jonathan
#:uuid
#:local-time)
:components ((:file "package")
(:file "ydcv")))
| 251 | Common Lisp | .asd | 11 | 14.909091 | 33 | 0.495833 | MasterCsquare/cl-ydcv | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:43 AM (Europe/Amsterdam) | 37efc0d899b0fa64fab022a994736dbfd194abebc7fd020b732e383aad2dea92 | 40,110 | [
-1
] |
40,128 | graph.lisp | Deivmercer_Minimum-Spanning-Trees-LISP/graph.lisp | ;;;; graph.lisp
;;;;
;;;; Autore: Davide Costantini
;;;;
;;;; Libreria per la gestione di grafi.
;;; Tabella contenente le rappresentazioni dei grafi.
(defparameter *graphs* (make-hash-table :test #'equal))
;;; Tabella contenente le rappresentazioni dei vertici.
(defparameter *vertices* (make-hash-table :test #'equal... | 7,369 | Common Lisp | .lisp | 146 | 35.034247 | 80 | 0.525184 | Deivmercer/Minimum-Spanning-Trees-LISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | c615561d0a881e55a36c394eb3ee755edb2093d1010615d21dd6200cf7f410e4 | 40,128 | [
-1
] |
40,129 | heap.lisp | Deivmercer_Minimum-Spanning-Trees-LISP/heap.lisp | ;;;; heap.lisp
;;;;
;;;; Autore: Davide Costantini
;;;;
;;;; Libreria per la gestione di MinHeap.
;;; Tabella contenente le rappresentazioni degli heap.
(defparameter *heaps* (make-hash-table :test #'equal))
(defun new-heap (heap-id &optional (capacity 42))
"Crea, se non esiste al momento della chiamata, un heap ch... | 6,724 | Common Lisp | .lisp | 153 | 35.156863 | 79 | 0.58174 | Deivmercer/Minimum-Spanning-Trees-LISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 5521d7b4ba7d5eb9ff132744f7d5168aacea727b1eeebf1020a4e72238fe2754 | 40,129 | [
-1
] |
40,130 | mst.lisp | Deivmercer_Minimum-Spanning-Trees-LISP/mst.lisp | ;;;; mst.lisp
;;;;
;;;; Autore: Davide Costantini
;;;;
;;;; Libreria per il calcolo del Minimum Spanning Tree di un grafo.
(load "graph.lisp")
(load "heap.lisp")
;;; Tabella contenente le rappresentazioni degli elementi dell'MST.
(defparameter *vertex-key* (make-hash-table :test #'equal))
;;; Tabella contenente la r... | 7,998 | Common Lisp | .lisp | 158 | 36.126582 | 81 | 0.535431 | Deivmercer/Minimum-Spanning-Trees-LISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 9497d173dcfb926ff6c84668158f8396265e61f6289bacb993835844b38461f3 | 40,130 | [
-1
] |
40,131 | grafo.lisp | Deivmercer_Minimum-Spanning-Trees-LISP/grafi/grafo.lisp | (new-arc 'grafo 'a 'b 4)
(new-arc 'grafo 'a 'h 8)
(new-arc 'grafo 'b 'c 8)
(new-arc 'grafo 'b 'h 11)
(new-arc 'grafo 'c 'd 7)
(new-arc 'grafo 'c 'f 4)
(new-arc 'grafo 'c 'i 2)
(new-arc 'grafo 'd 'e 9)
(new-arc 'grafo 'd 'f 14)
(new-arc 'grafo 'e 'f 10)
(new-arc 'grafo 'f 'g 2)
(new-arc 'grafo 'g 'h 1)
(new-arc 'grafo '... | 352 | Common Lisp | .lisp | 14 | 24.214286 | 25 | 0.587021 | Deivmercer/Minimum-Spanning-Trees-LISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 6ba864d4e0c47c1b7fa8d000efebe48f484681fae4f41cd1d2d4952a20cc9b3e | 40,131 | [
-1
] |
40,132 | primkiller_50k.lisp | Deivmercer_Minimum-Spanning-Trees-LISP/grafi/primkiller_50k.lisp | (new-arc 'g 'bcada 'ebbcb 653)
(new-arc 'g 'cceab 'eabaa 3159)
(new-arc 'g 'eecdd 'dccdd 687)
(new-arc 'g 'eddde 'abcbb 8296)
(new-arc 'g 'ebcbb 'dbbee 548)
(new-arc 'g 'daebd 'ebbcd 8594)
(new-arc 'g 'bdcdc 'dacae 8891)
(new-arc 'g 'abedd 'bdbeb 6785)
(new-arc 'g 'ecdce 'bcbec 378)
(new-arc 'g 'bcddd 'ebeda 5680)
(new... | 1,594,470 | Common Lisp | .lisp | 50,001 | 30.888782 | 31 | 0.676258 | Deivmercer/Minimum-Spanning-Trees-LISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | e6aba5777211caa9d8f7d82927dcf74e0a59913f33a696bd041b542b17851a31 | 40,132 | [
-1
] |
40,133 | primkiller_10k.lisp | Deivmercer_Minimum-Spanning-Trees-LISP/grafi/primkiller_10k.lisp | (new-arc 'g 'ecbe 'ecba 7628)
(new-arc 'g 'eabb 'abea 9206)
(new-arc 'g 'adde 'dbbb 4002)
(new-arc 'g 'abdb 'dabc 5719)
(new-arc 'g 'bacb 'dbdb 1232)
(new-arc 'g 'ebda 'deea 6993)
(new-arc 'g 'debc 'dbcb 2339)
(new-arc 'g 'dada 'eede 3102)
(new-arc 'g 'daaa 'daab 3184)
(new-arc 'g 'cbdb 'ebce 6360)
(new-arc 'g 'abbe 'b... | 298,896 | Common Lisp | .lisp | 10,000 | 28.8897 | 29 | 0.653856 | Deivmercer/Minimum-Spanning-Trees-LISP | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | b8bc003ea862be765ca84a77e9e8aaac12ee603f11aec06294a309b2f97403bd | 40,133 | [
-1
] |
40,155 | q10.lisp | goroda_advent_of_code_2020/q10.lisp | (in-package :q10)
(defun read-file-as-lines-p1 (filename &key)
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-pathname filename))
(sort (loop for line = (read-line in nil nil)
for i from 0
while line
collect (parse-in... | 2,624 | Common Lisp | .lisp | 66 | 26.621212 | 72 | 0.47453 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 53ebb2c521a0edc25530436d5053d2b289e121f321117c605e453245c1a2f6a4 | 40,155 | [
-1
] |
40,156 | package.lisp | goroda_advent_of_code_2020/package.lisp | ;;;; package.lisp
(defpackage #:advent_of_code_2020
(:use #:cl)
(:export
:*project-dir*
:get-file-pathname))
(defpackage q1
(:use #:cl
#:alexandria))
(defpackage q2
(:use #:cl
#:alexandria))
(defpackage q3
(:use #:cl
#:alexandria))
(defpackage q4
(:use #:cl
#:alexa... | 1,118 | Common Lisp | .lisp | 63 | 13.253968 | 33 | 0.575845 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | e54de69b3e8645e45339b84086839a8aebc9764e0cf6a35d021a8b669306453f | 40,156 | [
-1
] |
40,157 | q5.lisp | goroda_advent_of_code_2020/q5.lisp | (in-package :q5)
(defun get-row-id (line)
(let ((row (loop for i from 0 to 6
if (char= #\B (aref line i))
sum (expt 2 (- 6 i)) into ret
finally (return ret)))
(col (loop for i from 7 to 9
if (char= #\R (aref line i))
... | 2,180 | Common Lisp | .lisp | 60 | 28.466667 | 72 | 0.545885 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 5fbf485e7653a5fad625683883386483da6942878d1bc7d0585b27c96e40ed8e | 40,157 | [
-1
] |
40,158 | q14.lisp | goroda_advent_of_code_2020/q14.lisp | (in-package :q14)
(defun read-file-as-lines-p1 (filename &key)
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-pathname filename))
(loop for line = (read-line in nil nil)
while line
collect line)))
(defun binary-list (n)
"from stackoverflow https://sta... | 4,202 | Common Lisp | .lisp | 98 | 35.122449 | 103 | 0.584698 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 86555bea1433240b2e79295bdd963327ea24a0530574b06e9abdac8c9ca8a33c | 40,158 | [
-1
] |
40,159 | q9.lisp | goroda_advent_of_code_2020/q9.lisp | (in-package :q9)
(defun do-something-with-line (line)
line)
(defun read-file-as-lines-p1 (filename &key (preamble-length 5))
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-pathname filename))
(loop for line = (read-line in nil nil)
for i from 0
while... | 2,763 | Common Lisp | .lisp | 62 | 33.145161 | 80 | 0.545488 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 90ddf974fa5c3d18eb77ebadae00645215e16e77a10e0740a5955f896f665b86 | 40,159 | [
-1
] |
40,160 | q15.lisp | goroda_advent_of_code_2020/q15.lisp | (in-package :q15)
(defun part1 (nums num-turns)
(let ((dict (make-hash-table)))
(loop for num in nums
for ii from 1
do (setf (gethash num dict) ii))
(loop with spoken = (car (last nums))
for ii from (length nums) to (1- num-turns)
for val = (gethash spoken dict)
... | 1,679 | Common Lisp | .lisp | 49 | 28.693878 | 83 | 0.564229 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | aa83407dd892c00e4e208f73fd57657260b1a0159e252ed027b42b9811c5bccd | 40,160 | [
-1
] |
40,161 | q8.lisp | goroda_advent_of_code_2020/q8.lisp | (in-package :q8)
(defun parse-instruction (line)
(let* ((split (cl-ppcre:split " " line))
(ins (car split))
(val (parse-integer (cadr split))))
(list ins val)))
(defun read-file-as-lines-p1 (filename &key)
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-... | 2,104 | Common Lisp | .lisp | 53 | 32.132075 | 73 | 0.564366 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 79870ce0d25510779047a90ffc3d10a0a7d0d75449524c22e112a21fc35c07e2 | 40,161 | [
-1
] |
40,162 | q11.lisp | goroda_advent_of_code_2020/q11.lisp | (in-package :q11)
(defun read-file-as-lines-p1 (filename &key)
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-pathname filename))
(loop for line = (read-line in nil nil)
while line
collect line)))
(defun lines-to-array (lines)
(loop with arr = (make-a... | 6,293 | Common Lisp | .lisp | 113 | 36.442478 | 113 | 0.429891 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 7ba46146e686cd8d2fc8610722d7a939a9993904f109d094897473deab862258 | 40,162 | [
-1
] |
40,163 | q2.lisp | goroda_advent_of_code_2020/q2.lisp | (in-package :q2)
(defun read-file-as-lines-p1 (filename)
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-pathname filename))
(loop for line = (read-line in nil nil)
while line
for split = (cl-ppcre:split ":" line)
for nums-letter = (cl... | 1,938 | Common Lisp | .lisp | 39 | 39.846154 | 85 | 0.579641 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | fffcb3a5aba76c800ef7520320ee41b4f32162840262fb6b1729544dd2e4913e | 40,163 | [
-1
] |
40,164 | q3.lisp | goroda_advent_of_code_2020/q3.lisp | (in-package :q3)
(defun read-file-as-lines-p1 (filename &key (num-right 3) (num-down 1))
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-pathname filename))
(let ((val 0))
(loop for line = (read-line in nil nil)
for i from 0
while line
... | 1,390 | Common Lisp | .lisp | 30 | 37.266667 | 103 | 0.519528 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 0041c2877ad7a6f987a15b22d300c730066260e2c98eaa202f9879b66a515e16 | 40,164 | [
-1
] |
40,165 | q13.lisp | goroda_advent_of_code_2020/q13.lisp | (in-package :q13)
(defun read-file-as-lines-p1 (filename &key)
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-pathname filename))
(loop for line = (read-line in nil nil)
while line
collect line)))
(defun do-something (lines)
(let ((timestamp (parse-in... | 3,162 | Common Lisp | .lisp | 75 | 32.586667 | 94 | 0.504382 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 12b586ec7fa04978df7180b242b4b2da9c9a071a66ed987c131a25640d0da60f | 40,165 | [
-1
] |
40,166 | q12.lisp | goroda_advent_of_code_2020/q12.lisp | (in-package :q12)
(defun read-file-as-lines-p1 (filename &key)
"Read file into a list of lines."
(with-open-file (in (advent_of_code_2020:get-file-pathname filename))
(loop for line = (read-line in nil nil)
with left-right-move = 0
with up-down-move = 0
with current-dir = 0
... | 5,085 | Common Lisp | .lisp | 96 | 37.364583 | 120 | 0.461184 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 73428c6a34b6c1a28bdb062d4ea6908deffc4b425fc51adb729f72b5b7ef3473 | 40,166 | [
-1
] |
40,167 | q16.lisp | goroda_advent_of_code_2020/q16.lisp | (in-package :q16)
(defun parse-fields (fields)
(loop for field in fields
for split = (cl-ppcre:split ":" field)
for name = (first split)
for ranges = (second split)
collect (cons name (loop for term in (cl-ppcre:split "or" ranges)
for bounds = (cl-ppcr... | 4,678 | Common Lisp | .lisp | 92 | 34.706522 | 114 | 0.493754 | goroda/advent_of_code_2020 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:47:51 AM (Europe/Amsterdam) | 84b543c900fa09168523e51fe7736b462e29b35bd9b946cc42f643228bfcd9e7 | 40,167 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.