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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
10,781 | world-test.lisp | Th30n_cl-shake/shake/world-test.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 6,142 | Common Lisp | .lisp | 132 | 36.893939 | 79 | 0.566022 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 1e845d7a911658ec5870dfc7dff68c149b7089e41df77a465b4bebfefa11da19 | 10,781 | [
-1
] |
10,782 | world.lisp | Th30n_cl-shake/shake/world.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 14,607 | Common Lisp | .lisp | 285 | 39.722807 | 93 | 0.567634 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 2aa130f48b9123337cd359c33f126be8459df047f83b9253ec87998e9de0e284 | 10,782 | [
-1
] |
10,783 | game.lisp | Th30n_cl-shake/shake/game.lisp | ;;;; Game definition and logic
(in-package #:shake)
(defstruct game
(think-things nil :type list)
(render-things nil :type list))
(defclass thing ()
())
(defgeneric thing-think (thing)
(:documentation "Run thinking for this THING")
(:method ((thing thing))
"Default THING-THINK method is a no-op."
... | 24,180 | Common Lisp | .lisp | 466 | 41.133047 | 107 | 0.596325 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 89803d777580be54840bec2312c5e01eb1fc97df236fc1c085b482323e086a97 | 10,783 | [
-1
] |
10,784 | render.lisp | Th30n_cl-shake/shake/render.lisp | ;;;; Defines `RENDER-SYSTEM' and functions for rendering to screen.
(in-package #:shake.render)
(defun load-texture (texture-file)
"Load a texture from given string file path. Returns the OpenGL texture
object as the primary value. Second and third value are image width and
height."
(let* ((surface (sdl2:load... | 39,989 | Common Lisp | .lisp | 807 | 40.799257 | 111 | 0.630591 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 0af9790831764d4c8baba945cfdb98276396a59206019f288ebe59aa55110de9 | 10,784 | [
-1
] |
10,785 | package.lisp | Th30n_cl-shake/edkit/package.lisp | (in-package #:cl-user)
(defpackage #:edkit.data
(:nicknames #:edk.data)
(:use #:closer-common-lisp)
(:export #:data
#:data-class
#:defdata
#:notify
#:observe
#:unobserve
#:boxed-double
#:boxed-string
#:boxed-symbol
... | 958 | Common Lisp | .lisp | 41 | 14.463415 | 34 | 0.476451 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 92754be4cf312418a5793f8f0bb37dcfc3efdbf9d9a2f7fbdf4937dc6d38e3fa | 10,785 | [
-1
] |
10,786 | data-test.lisp | Th30n_cl-shake/edkit/data-test.lisp | (in-package #:cl-user)
(defpackage #:edkit.data-test
(:use #:cl
#:prove))
(in-package #:edkit.data-test)
(plan nil)
(subtest "no changes during operation"
(edk.data:with-change-tracker (tracker)
(is (edk.data::undolog tracker) nil)
(edk.data:with-change-operation ("Test change")
'no-change... | 5,300 | Common Lisp | .lisp | 116 | 35.965517 | 85 | 0.592349 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 92f2d48f43dfe610cce2ab3b7f895dddcc8278f4092cc4cf1b9c383f5eb9a2ce | 10,786 | [
-1
] |
10,787 | forms.lisp | Th30n_cl-shake/edkit/forms.lisp | ;;;; GUI forms and editors for `EDKIT.DATA:DATA' instances.
;;;; `FORM' and `EDITOR' subtypes are used to describe the GUI. Each subtype
;;;; handles that updates are correctly propagated between underlying widgets
;;;; (Qt in our case) and data types. Ideally, the user should never have to
;;;; work with the underlyin... | 14,403 | Common Lisp | .lisp | 306 | 40.722222 | 94 | 0.668971 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 56b6841ee2f9656eed301f507ae7083cf5e61b30c2b26cf4997bac519b80d60d | 10,787 | [
-1
] |
10,788 | data.lisp | Th30n_cl-shake/edkit/data.lisp | ;;;; Underlying data model types and operations
;;;; The defined data types are used to create a data model which can be
;;;; edited and presented in GUI editors. Every editable data must inherit
;;;; from `DATA' class. The idea behind this custom data model is that data
;;;; modifications can be tracked. This allows f... | 9,467 | Common Lisp | .lisp | 188 | 44.755319 | 99 | 0.697632 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | f4570026bdf90302a28e70d75384d393990bff25e33b1f3b9bbebb5cd9b615a6 | 10,788 | [
-1
] |
10,789 | edkit.lisp | Th30n_cl-shake/edkit/edkit.lisp | (in-package #:edkit)
(defun main (form)
(qtools:with-main-window (window (build-widget form)
:name "Editor Kit Testing")))
(defdata string-and-double ()
((str :type boxed-string :initform (make-instance 'boxed-string :value "string"))
(dbl :type boxed-double :initform (make-i... | 1,138 | Common Lisp | .lisp | 24 | 42.166667 | 85 | 0.686823 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | c7c3b245a7f7e4052fd195439df5a4d4e5a89dada9354b6b81b6152eb267ae4f | 10,789 | [
-1
] |
10,790 | shake-bspc.lisp | Th30n_cl-shake/shake-bspc/shake-bspc.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 31,459 | Common Lisp | .lisp | 675 | 34.555556 | 104 | 0.562925 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | e9d6d95e4db2c915f86edd6f429b94e4539c6c9128006d0bfad759232a2972b7 | 10,790 | [
-1
] |
10,791 | package.lisp | Th30n_cl-shake/shake-bspc/package.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 4,650 | Common Lisp | .lisp | 157 | 18.808917 | 76 | 0.497327 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 14ec2eb05a69ecaa59b4f60c1497c218274d1a3cd8b5b7d8c3c9a511129ce1d5 | 10,791 | [
-1
] |
10,792 | brush.lisp | Th30n_cl-shake/shake-bspc/brush.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 14,338 | Common Lisp | .lisp | 281 | 40.081851 | 95 | 0.600413 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 0e1f820c8d5775b2556a86737bf2a327cf86a1608d9a2c0d4d93c85264d25c29 | 10,792 | [
-1
] |
10,793 | map.lisp | Th30n_cl-shake/shake-bspc/map.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 5,989 | Common Lisp | .lisp | 135 | 35.792593 | 79 | 0.606201 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 3c0c01279be89e80f8e488e48c081d6bd12185658d0743d3892a7d30b075d193 | 10,793 | [
-1
] |
10,794 | brush-test.lisp | Th30n_cl-shake/shake-bspc/brush-test.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 5,802 | Common Lisp | .lisp | 124 | 35.725806 | 79 | 0.551157 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | cede6dd0302438df7ef2ab1f63df5d9b51d5434ec7d570c877c66d1b5bbcc496 | 10,794 | [
-1
] |
10,795 | shake-bspc-test.lisp | Th30n_cl-shake/shake-bspc/shake-bspc-test.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 5,413 | Common Lisp | .lisp | 116 | 37.241379 | 84 | 0.563967 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | ad6d59f7bbd58431e22d76427c8786b071040e411e9528585d41a981c6fc6fea | 10,795 | [
-1
] |
10,796 | package.lisp | Th30n_cl-shake/shake-utils/package.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,215 | Common Lisp | .lisp | 35 | 28.771429 | 76 | 0.622241 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 18134974ec1ea44f7999440d4425054def0323883636152351ce996c6696232a | 10,796 | [
-1
] |
10,797 | shake-utils.lisp | Th30n_cl-shake/shake-utils/shake-utils.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 5,820 | Common Lisp | .lisp | 140 | 35.228571 | 81 | 0.613536 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | f41fbccdb4d69a7cc16755b84401575cf8a915ca475a9b9596f5c56645a2c556 | 10,797 | [
-1
] |
10,798 | gl.lisp | Th30n_cl-shake/shake-gl/gl.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 8,475 | Common Lisp | .lisp | 171 | 40.923977 | 86 | 0.626041 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 221a0d22df95909a81c201ecb0ae693a387c7d0272b22f895b615802c5b7973b | 10,798 | [
-1
] |
10,799 | package.lisp | Th30n_cl-shake/shake-gl/package.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,314 | Common Lisp | .lisp | 34 | 32.852941 | 76 | 0.647105 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | fbc65209cee3285010b05b8cbd8cd4b2dc64ca617f08ea38c87f0bced775f5d7 | 10,799 | [
-1
] |
10,800 | model.lisp | Th30n_cl-shake/shake-ed/model.lisp | ;;; Data model of the editor
(in-package #:shake-ed.model)
(defstruct mbrush
"Map representation of SBRUSH:BRUSH."
(brush nil :type sbrush:brush)
(rotation 0d0 :type double-float))
(edk.data:defdata texture ()
((offset-x :type edk.data:boxed-double :initarg :offset-x
:reader texture-offset-x
... | 1,445 | Common Lisp | .lisp | 28 | 43.035714 | 85 | 0.666667 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 2e3dc522da53e1ec76db802171c7d3c44e4712aa35916f0025482d3641d47844 | 10,800 | [
-1
] |
10,801 | props-ed.lisp | Th30n_cl-shake/shake-ed/props-ed.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 10,735 | Common Lisp | .lisp | 207 | 38.84058 | 92 | 0.578567 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | b0de39840efe1a6f1184af648740d6ab3250341b8ff03ff45155cdbb3a8125df | 10,801 | [
-1
] |
10,802 | package.lisp | Th30n_cl-shake/shake-ed/package.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 2,895 | Common Lisp | .lisp | 85 | 25.329412 | 76 | 0.557775 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 4923ca026c218c4a4d582868ded8ab637b69c6b0101338f8ef3a3a712c835dcd | 10,802 | [
-1
] |
10,803 | map-scene.lisp | Th30n_cl-shake/shake-ed/map-scene.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 32,291 | Common Lisp | .lisp | 672 | 36.943452 | 89 | 0.57807 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 7b088ccb2038894da2040260e29b825ec9bde0cccfd3aa7620c18f357c1ac043 | 10,803 | [
-1
] |
10,804 | shake-ed.lisp | Th30n_cl-shake/shake-ed/shake-ed.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 12,483 | Common Lisp | .lisp | 270 | 38.274074 | 89 | 0.608556 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | f7b135f7bdcf1821ef614c0fee48ad6150b1132d0cfb70bf1db453bdbfb70cd0 | 10,804 | [
-1
] |
10,805 | utils.lisp | Th30n_cl-shake/shake-ed/utils.lisp | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,094 | Common Lisp | .lisp | 24 | 43.5 | 76 | 0.707317 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 670163ed2f28428de4716d9df31d016de4602aed25c665e223c9f59f8f3e790f | 10,805 | [
-1
] |
10,806 | shiva.asd | Th30n_cl-shake/shiva/shiva.asd | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,414 | Common Lisp | .asd | 31 | 42.612903 | 76 | 0.695936 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | d8bfac3bc5461e83b28cc43709d20d7805a4a86062162fdc062ef0e964925ca7 | 10,806 | [
-1
] |
10,807 | shake.asd | Th30n_cl-shake/shake/shake.asd | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,654 | Common Lisp | .asd | 42 | 33.452381 | 81 | 0.625233 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 1df687f5cf593a68353b3ae10287e96dd05ac50b0b571296dcedf357abf2b25e | 10,807 | [
-1
] |
10,808 | shake-test.asd | Th30n_cl-shake/shake/shake-test.asd | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,087 | Common Lisp | .asd | 23 | 44.304348 | 76 | 0.695857 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 386916853c8518b542235c6d2329f9fb545001abf6b235d462bb551082f5480e | 10,808 | [
-1
] |
10,809 | edkit.asd | Th30n_cl-shake/edkit/edkit.asd | (in-package #:asdf-user)
(asdf:defsystem "edkit"
:description "edkit: A simple framework for creating GUI editors"
:author "Teon Banek <theongugl@gmail.com>"
:license "GPL2"
:depends-on ("trivial-garbage" "closer-mop" "qtools" "qtcore" "qtgui")
:serial t
:components ((:file "package")
(:file... | 442 | Common Lisp | .asd | 12 | 30.75 | 72 | 0.616822 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | d75813f602c7d607244ce0352171ba24e1511aa2a73540949814990aca5f9eef | 10,809 | [
-1
] |
10,810 | edkit-test.asd | Th30n_cl-shake/edkit/edkit-test.asd | (in-package #:asdf-user)
(defsystem "edkit-test"
:depends-on ("edkit" "prove")
:defsystem-depends-on ("prove-asdf")
:components ((:test-file "data-test"))
:perform (test-op :after (op c)
(funcall (intern #.(string :run) :prove) c)))
| 262 | Common Lisp | .asd | 7 | 32.285714 | 65 | 0.614173 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | f3c6f98757538a2f6b5f44813736f64eab16364e3dc0d8493b5f0bbe3082dc1c | 10,810 | [
-1
] |
10,811 | shake-bspc.asd | Th30n_cl-shake/shake-bspc/shake-bspc.asd | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,527 | Common Lisp | .asd | 35 | 39.571429 | 76 | 0.671592 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 00a296671371b3856c0dd6e0dc9421e03af3fdd7acd91e9ff5d6be7fce218507 | 10,811 | [
-1
] |
10,812 | shake-utils.asd | Th30n_cl-shake/shake-utils/shake-utils.asd | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,087 | Common Lisp | .asd | 25 | 41.24 | 76 | 0.716038 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | ad614cd6989887ce6d1099ec6a076e9f9be6ae7d1ff7092f6a2d04ca1c71b866 | 10,812 | [
-1
] |
10,813 | shake-gl.asd | Th30n_cl-shake/shake-gl/shake-gl.asd | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,132 | Common Lisp | .asd | 24 | 44.958333 | 76 | 0.710669 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 63d387d6f70d6ca4dbdcf1c6f18836efe742392e4d670d21988d8a88a9f543e0 | 10,813 | [
-1
] |
10,814 | shake-ed.asd | Th30n_cl-shake/shake-ed/shake-ed.asd | ;;;; Copyright (C) 2016 Teon Banek
;;;;
;;;; This program is free software; you can redistribute it and/or modify
;;;; it under the terms of the GNU General Public License as published by
;;;; the Free Software Foundation; either version 2 of the License, or
;;;; (at your option) any later version.
;;;;
;;;; This progr... | 1,294 | Common Lisp | .asd | 30 | 38.6 | 76 | 0.662441 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 8a2929c32c480a8e7528040148c7bf4ac0725aba7589e51c61e3148a39002305 | 10,814 | [
-1
] |
10,820 | input-handling.md | Th30n_cl-shake/tech-spec/input-handling.md | # Doom input handling, every TICRATE (1/35) seconds:
* Poll SDL events and convert to internal event repr.
- queue, max-sized, read/tail and write/head pointers
* Handle events:
- menu -> directly
- game -> update state (keyboard, mouse, ...)
* Build ticcmds (at least 1 per frame)
- from input st... | 1,174 | Common Lisp | .l | 31 | 33.516129 | 71 | 0.686344 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 71fda00137037f201e7050eb732d8e49f5462a723cbb8274c5bdd46b8de54d5e | 10,820 | [
-1
] |
10,821 | collision-detection.md | Th30n_cl-shake/tech-spec/collision-detection.md | # Doom collision detection
* Map divided into grid
- grid references things and linedefs
* Movement in discrete steps (at maximum velocity)
- check collision on grid for each step
# Quake collision detection
* Everything clips to BSP
- Map is a static entity with BSP
- Each entity model has a ... | 1,038 | Common Lisp | .l | 24 | 39.041667 | 73 | 0.735849 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 0deeaf69060649230deccb58729369f42bf2ebe43443a3e58cbeb6ca27d1299a | 10,821 | [
-1
] |
10,833 | billboard.geom | Th30n_cl-shake/shake/shaders/billboard.geom | // Copyright (C) 2016 Teon Banek
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distribute... | 1,577 | Common Lisp | .l | 43 | 33.767442 | 74 | 0.686352 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 696c4c3557d060adaa2968d5986a54455f5e3de4f26f1484635a473abe7e3c69 | 10,833 | [
-1
] |
10,834 | color.frag | Th30n_cl-shake/shake/shaders/color.frag | // Copyright (C) 2016 Teon Banek
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distribute... | 1,392 | Common Lisp | .l | 38 | 33.973684 | 80 | 0.708983 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 3bab6545c436f617ebacf1a80f3128ca0b82a51c88be2378c81161ef64808109 | 10,834 | [
-1
] |
10,835 | billboard.frag | Th30n_cl-shake/shake/shaders/billboard.frag | // Copyright (C) 2016 Teon Banek
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distribute... | 991 | Common Lisp | .l | 25 | 38.12 | 74 | 0.745057 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 96508b03da1a882494575bec932890de466ee74d48cba7504614ada93e0cfba9 | 10,835 | [
-1
] |
10,836 | billboard.vert | Th30n_cl-shake/shake/shaders/billboard.vert | // Copyright (C) 2016 Teon Banek
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distribute... | 908 | Common Lisp | .l | 22 | 39.909091 | 74 | 0.755102 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 104960fa79df364ec0c169621d92fd7e5331563db17eeb9978e72a56fabe0c21 | 10,836 | [
-1
] |
10,860 | build-resources.ps1 | Th30n_cl-shake/shake-ed/build-resources.ps1 | $dir = Split-Path $MyInvocation.MyCommand.Path -Parent
rcc.exe -binary (Join-Path $dir "resource.qrc") -o (Join-Path $dir "resource.rcc")
| 138 | Common Lisp | .l | 2 | 68 | 82 | 0.735294 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 49ce5d39f28dfe0dcb2af38cd48768cced609c958470cd128518faecc8f7035e | 10,860 | [
-1
] |
10,861 | player-spawn.svg | Th30n_cl-shake/shake-ed/images/things/player-spawn.svg | <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns... | 3,865 | Common Lisp | .l | 131 | 23.236641 | 194 | 0.616394 | Th30n/cl-shake | 10 | 1 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 61e8af95caa026d89701f87f6ad1d5ae8e9dcf6d84a5b3152dd8f2e3a2f9b419 | 10,861 | [
-1
] |
10,876 | math.lisp | andrei-dubovik_centrality/src/math.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Math functions
(in-package :centrality)
(defun expt-mod (base power modulus)
"Raise base to power modulo modulus"
(iter (with result = 1)
(for i from 0 below (integer-length power))
(for sqr first base then (mod (* sqr sqr) modulus))
... | 701 | Common Lisp | .lisp | 20 | 29.55 | 59 | 0.626292 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 638d862f4f2f08fd81bc1f77a3edbe541d23f85a36c97d2d79049d29cb25bbd9 | 10,876 | [
-1
] |
10,877 | log.lisp | andrei-dubovik_centrality/src/log.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Simple logging facilities
(in-package :centrality)
;; *log* is set when the log process is started and it is used throughout the program
(defvar *log*)
(defclass logger ()
((fd :initarg :fd :reader .fd)))
(defun get-formatted-time ()
"Get current time... | 1,854 | Common Lisp | .lisp | 41 | 41.097561 | 106 | 0.675361 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | ced367fde7e6140b8763d38a96ff44c63f807ba13073bdd48fc2942f672351ca | 10,877 | [
-1
] |
10,878 | package.lisp | andrei-dubovik_centrality/src/package.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Package definition
(defpackage :centrality
(:use :common-lisp
:trivial-garbage
:trivial-gray-streams
:cffi
:flexi-streams
:iterate
:bordeaux-threads
:usocket))
| 280 | Common Lisp | .lisp | 11 | 19 | 56 | 0.632959 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 9af4a8deaf6a21e5f4ad9680c6006c63b8dfcf5677f4e77afd22296768e1e029 | 10,878 | [
-1
] |
10,879 | socks.lisp | andrei-dubovik_centrality/src/socks.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; SOCKS5 interface
(in-package :centrality)
;; Define SOCKS errors
(define-condition socks-general-error (error) ())
(define-condition socks-auth-error (error) ())
(define-condition socks-not-allowed (error) ())
(define-condition socks-network-unreachable (er... | 3,375 | Common Lisp | .lisp | 74 | 39.594595 | 104 | 0.659872 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 38146ddb71a7b1a4d109db63d35ac7589ac33e6284de0f227ef616cb9fcdf639 | 10,879 | [
-1
] |
10,880 | mailbox.lisp | andrei-dubovik_centrality/src/mailbox.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; A thin wrapper around SBCL mailbox
;; (I could not find any widely used library)
;; Also a thin wrapper around SBCL queue
;; TODO: either program explicitly for SBCL or or think about fallbacks
(in-package :centrality)
#+sbcl
(defmacro make-mailbox ()
`(... | 747 | Common Lisp | .lisp | 24 | 29.25 | 71 | 0.756303 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | fbe43394d7c3fe8bd1d2f687993b3e78c7f94437fa3cef8cc812618baa974e06 | 10,880 | [
-1
] |
10,881 | bencode.lisp | andrei-dubovik_centrality/src/bencode.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Functions to decode/encode bencoded data
(in-package :centrality)
;; Strings
(defun decode-string (bytes)
"Decode utf8 encoded string"
(octets-to-string bytes :external-format :utf8))
(defun encode-string (string)
"Encode utf8 encoded string"
(str... | 3,403 | Common Lisp | .lisp | 95 | 31.494737 | 78 | 0.673973 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 52d47e6584aeb524980bfd551d7bce84cc92877f9378e34c278f78d2f66d83bb | 10,881 | [
-1
] |
10,882 | doubly-linked-list.lisp | andrei-dubovik_centrality/src/doubly-linked-list.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Doubly-linked list
(in-package :centrality)
;; "doubly-linked-list" is a lot of typing, and I don't like any of
;; the acronyms, so I'll just call it a chain.
(defmacro make-node (prev value next)
`(cons (cons ,prev ,value) ,next))
(defmacro next-node (... | 2,864 | Common Lisp | .lisp | 83 | 30.493976 | 67 | 0.656749 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 1e0c8bca5b21c6b89e0552c73f8d75d0c04ca47489f67786bfef89997515aa6f | 10,882 | [
-1
] |
10,883 | openssl.lisp | andrei-dubovik_centrality/src/openssl.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;;; OpenSSL wrappers
(in-package :centrality)
;; SHA1
(define-foreign-library libcrypto
(t (:default "libcrypto")))
(use-foreign-library libcrypto)
(defcfun (c-sha1 "SHA1") :unsigned-char
(d :pointer)
(len :unsigned-int)
(md :pointer))
(defun sha1 ... | 2,066 | Common Lisp | .lisp | 56 | 32.946429 | 91 | 0.671178 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 70b4359898ae61e23675061de3f1e066e3f2e4be8fc6315c05e9b808f2dcce15 | 10,883 | [
-1
] |
10,884 | utilities.lisp | andrei-dubovik_centrality/src/utilities.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Common miscellaneous functions
(in-package :centrality)
(defmacro with-gensym ((&rest names) &body body)
"Use unique names in macros to avoid name conflicts"
`(let ,(iter (for name in names) (collect `(,name (gensym))))
,@body))
(defun getvalue (k... | 4,311 | Common Lisp | .lisp | 115 | 31.33913 | 83 | 0.627846 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | f22179a5511978606fe1acee8c5bb956e9abc16f1cb9532e9641dd42460d37dd | 10,884 | [
-1
] |
10,885 | encryption.lisp | andrei-dubovik_centrality/src/encryption.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; BitTorrent obfuscation protocol
;; Utility functions
(in-package :centrality)
(define-condition rc4-negotiation-falure (error) ())
(defun forward (stream bytes limit)
"Read from stream until given bytes sequence is found"
(do ((i 0)
(j 0 (1+ j)... | 3,684 | Common Lisp | .lisp | 84 | 38.916667 | 89 | 0.644855 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 77be215717191f62923fbbc001c80d1107c10ca998d560a360656dcd48816db4 | 10,885 | [
-1
] |
10,886 | linked-hash-table.lisp | andrei-dubovik_centrality/src/linked-hash-table.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Linked hash tables (ordered dictionaries)
;; Structure: a linked hash table is a cons of a doubly-linked list
;; and a hash table. The elements of the list are (key . value). The
;; elements of the hash table are references to the respective list
;; nodes.
... | 2,703 | Common Lisp | .lisp | 67 | 35.80597 | 90 | 0.672644 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 382da972fcf5c10033f8284859955c01656bb5f975f9ad286516ae4647ba2aa0 | 10,886 | [
-1
] |
10,887 | bytes.lisp | andrei-dubovik_centrality/src/bytes.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Miscellaneous byte operations
(in-package :centrality)
(defmacro with-bytearray ((name size) &rest body)
"Create an empty bytes array, execute body, return the array"
`(with-vector (,name ,size '(unsigned-byte 8)) ,@body))
(defmacro with-output-to-byte... | 4,064 | Common Lisp | .lisp | 98 | 37.428571 | 96 | 0.681472 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 6458ef2b81d59eca2c9d982097a1576d198993aebcc6ca2cebea46ce46823ce3 | 10,887 | [
-1
] |
10,888 | params.lisp | andrei-dubovik_centrality/src/params.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Configuration and technical parameters
;; Changing some of the parameters requires recompilation for the
;; changes to take effect.
(in-package :centrality)
;; Identification
(defparameter *call-sign* "-CY0000-") ; base protocol identification
(def... | 2,325 | Common Lisp | .lisp | 42 | 53.809524 | 213 | 0.783628 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | a09e086c3f36ee7270b521f6fe563c233bd210f2f574ce81c5b007d3c7cd8a90 | 10,888 | [
-1
] |
10,889 | storage.lisp | andrei-dubovik_centrality/src/storage.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; A storage thread that accepts downloaded blocks, verifies pieces, and saves them to disk
(in-package :centrality)
;; TODO: replace composition with inheritance
(defclass storage ()
((torrent :initarg :torrent :reader .torrent)))
(defun escape-pathname (p... | 6,128 | Common Lisp | .lisp | 134 | 37.708955 | 125 | 0.618267 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 4fe2ed6ec6570ee0f42d92d1d24e07bf984f890edb56fe6dc5c0da19f7a1a61b | 10,889 | [
-1
] |
10,890 | network.lisp | andrei-dubovik_centrality/src/network.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Sending (encoding) and receiving (decoding) BitTorrent messages
(in-package :centrality)
;; Work in progress
(defclass network ()
((stream :initarg :stream :reader .stream)))
(defmacro eid (message)
"Lookup extended id for a given message"
(getvalue... | 3,954 | Common Lisp | .lisp | 97 | 33.917526 | 77 | 0.601977 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 50dbb79f5cfcea55f768faff2f8242957a7b9504bd9438a445b7d74d63fc8818 | 10,890 | [
-1
] |
10,891 | channel.lisp | andrei-dubovik_centrality/src/channel.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Peer related operations
(in-package :centrality)
;; Call sign
(defun random-peerid ()
"Generate peer id with a random suffix"
(conc-bytes *call-sign* (random-bytes 12)))
(defun ext-handshake ()
"Prepare extended handshake"
`(("m" . ,*ext-msg-ids*)... | 11,089 | Common Lisp | .lisp | 240 | 41.575 | 115 | 0.678836 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 53ad07c8cacc4ee8edfeaf1b1a0166ccfb0c3e64ae41fd6b1b4fd73650467b55 | 10,891 | [
-1
] |
10,892 | messages.lisp | andrei-dubovik_centrality/src/messages.lisp | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; Functions for inter-thread communication and for handling
;; BitTorrent messages
(in-package :centrality)
(defgeneric call (object method &rest rest)
(:documentation "A generic function for processing messages"))
(defmacro match-prefix (((prefix test) &r... | 4,121 | Common Lisp | .lisp | 95 | 36.831579 | 90 | 0.640949 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 6977712f156edda63375c8db682f486a708f9643eabcc5953532b157da058d9f | 10,892 | [
-1
] |
10,893 | centrality.asd | andrei-dubovik_centrality/centrality.asd | ;; Copyright (c) 2020 Andrey Dubovik <andrei@dubovik.eu>
;; TODO: some earlier files still reference some future files
(defsystem "centrality"
:depends-on ("cffi" "dexador" "flexi-streams" "iterate" "quri" "usocket" "trivial-garbage" #+sbcl "sb-concurrency")
:serial t
:components ((:file "src/package")
... | 1,032 | Common Lisp | .asd | 25 | 28.56 | 117 | 0.496517 | andrei-dubovik/centrality | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | b8dccc47cae7d899b22bfb51197dc9ea61b39880980930d61e6bfcf59a4b3667 | 10,893 | [
-1
] |
10,927 | cycle-dev.lisp | asimpson_cycle/cycle-dev.lisp | ;;;; cycle-dev.lisp
(require "asdf")
(defpackage :cycle-dev
(:use
:cl
:cycle))
(in-package :cycle-dev)
(when (uiop:file-exists-p "BLOG")
(defvar *db* (sqlite:connect "BLOG")))
(defun gen-md ()
"One-off command to turn html files into md files via pandco process."
(let* ((files (uiop:directory-files ... | 2,367 | Common Lisp | .lisp | 44 | 40.568182 | 120 | 0.532411 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | d0542561526b1870fbb4e18c457d2c94dd1bd8ba8151b9efb5debedd76a33147 | 10,927 | [
-1
] |
10,928 | cycle.lisp | asimpson_cycle/cycle.lisp | ;;;; cycle.lisp
(require "asdf")
(defpackage :cycle
;;https://lisp-lang.org/style-guide/#one-package-per-file
(:use :cl)
(:export
:main
:write-file
:split-string
:file-basename))
(in-package :cycle)
(defvar posts nil
"Global posts variable.")
(defvar css nil
"CSS for the site.")
(defvar cwd "... | 15,104 | Common Lisp | .lisp | 314 | 34.035032 | 157 | 0.511998 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | b8db020fd5e1237df43a18f0637fa803032bc2d1c7dcf89ae1bfb7f42c12df26 | 10,928 | [
-1
] |
10,929 | cycle-dev.asd | asimpson_cycle/cycle-dev.asd | ;;;; cycle-dev.asd
(asdf:defsystem :cycle-dev
:description "Utilities for local development of cycle."
:author "Adam Simpson <adam@adamsimpson.net>"
:serial t
:depends-on (:cycle
:sqlite)
:components ((:file "cycle-dev")))
| 249 | Common Lisp | .asd | 8 | 26.875 | 58 | 0.675 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 8feae532ecaf5794440d80392121d78fa8c7180c0c64bacc6cecae2139e8ce81 | 10,929 | [
-1
] |
10,930 | cycle.asd | asimpson_cycle/cycle.asd | ;;;; cycle.asd
(asdf:defsystem :cycle
:description "A opinionated static site builder."
:author "Adam Simpson <adam@adamsimpson.net>"
:license "GNU GPLv3"
:version "0.3.0"
:serial t
:depends-on (
:local-time
:cl-json
:cl-mustache
:cl-ppcre
:3bmd
:3bmd-ext-code-blocks
:unix-opts)... | 408 | Common Lisp | .asd | 18 | 19.055556 | 51 | 0.66581 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 95d63064ce9460541dd2bfb1e4bb908997258e6442ddef9d16ffad678b7e35ca | 10,930 | [
-1
] |
10,936 | default.nix | asimpson_cycle/default.nix | with (import <nixpkgs> {});
stdenv.mkDerivation rec {
pname = "cycle";
version = "v0.3.0";
sbclCore = sbcl.overrideAttrs (oldAttrs: rec {
enableFeatures = oldAttrs.enableFeatures ++ ["sb-core-compression"];
buildInputs = oldAttrs.buildInputs ++ [zlib];
sbclBootstrapHost = "${sbclBootstrap}/bin/sbcl ... | 1,337 | Common Lisp | .l | 40 | 28.525 | 173 | 0.635941 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 6c98f61ea76cc1dcad8234b37f0303d4f33524b2909e439eb90a572d0f70a6e1 | 10,936 | [
-1
] |
10,938 | Makefile | asimpson_cycle/Makefile | cycle:
sbcl --load "cycle.asd" --eval "(ql:quickload :cycle)" --eval "(sb-ext:save-lisp-and-die \"cycle\" :toplevel 'cycle:main :executable t :compression 9)"
clean:
rm cycle
.PHONY: cycle
install:
mv cycle /usr/local/bin/cycle
.PHONY: install
| 249 | Common Lisp | .l | 8 | 29.5 | 152 | 0.723849 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | ac63a8097b4c3aaeef29774af91d938c194df380f049096a7e1733f2e1627be0 | 10,938 | [
-1
] |
10,941 | Dockerfile | asimpson_cycle/Dockerfile | FROM alpine:edge as builder
LABEL maintainer="mike@mikeyockey.com"
RUN mkdir /src
WORKDIR /src
RUN echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories && \
apk update && \
apk add linux-headers curl git sbcl zlib-dev build-base && \
git clone --depth 1 -b sbcl-2.2.3 git://g... | 1,352 | Common Lisp | .l | 33 | 36.969697 | 137 | 0.668712 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 77af3ec6ca84bee829707991d6ac84ef4d6cc6dfa5b8b2a20aff918fee9f78be | 10,941 | [
-1
] |
10,942 | .travis.yml | asimpson_cycle/.travis.yml | dist: xenial
os:
- linux
- osx
install:
- ./ci/install.sh
script:
- make cycle
before_deploy:
- mv cycle "cycle-$TRAVIS_OS_NAME"
deploy:
provider: releases
token: $GITHUB_OAUTH_TOKEN
file: cycle-$TRAVIS_OS_NAME
skip_cleanup: true
on:
tags: true
| 274 | Common Lisp | .l | 17 | 13.411765 | 36 | 0.706349 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 334114ec6c0623ed725fdc1c34f09b87eec4aadfb9206c94ee466c6f8e72bb3c | 10,942 | [
-1
] |
10,944 | install.sh | asimpson_cycle/ci/install.sh | #!/bin/sh
if [ "$TRAVIS_OS_NAME" = "linux" ]; then
. ./ci/linux.sh
fi
if [ "$TRAVIS_OS_NAME" = "osx" ]; then
brew update;
brew install sbcl;
fi
curl -O "https://beta.quicklisp.org/quicklisp.lisp";
/usr/local/bin/sbcl --non-interactive --load quicklisp.lisp --eval "(quicklisp-quickstart:install :path \"~/... | 573 | Common Lisp | .l | 13 | 41.846154 | 123 | 0.696043 | asimpson/cycle | 10 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 6236f22e77f0ce8ff0263c0d421e1766baf4f28f9b40cb9b18a41ca2c996e8c5 | 10,944 | [
-1
] |
10,959 | spartns.lisp | jpellegrini_spartns/spartns.lisp | ;; This software is Copyright (c) Jeronimo Pellegrini, 2008.
;; You have the rights to distribute
;; and use this software as governed by the terms
;; of the Lisp Lesser GNU Public License
;; (http://opensource.franz.com/preamble.html),
;; known as the LLGPL.
(in-package :spartns)
;;;--- SPECIAL VARIABLES ---;;;
(e... | 68,854 | Common Lisp | .lisp | 1,500 | 39.796 | 158 | 0.647033 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 169488db83443317a3a13e1b622cc015253443dd4ebe79278e4b8c9db4197765 | 10,959 | [
-1
] |
10,960 | spartns-packages.lisp | jpellegrini_spartns/spartns-packages.lisp | ;; This software is Copyright (c) Jeronimo Pellegrini, 2008.
;; You have the rights to distribute
;; and use this software as governed by the terms
;; of the Lisp Lesser GNU Public License
;; (http://opensource.franz.com/preamble.html),
;; known as the LLGPL.
(in-package :cl-user)
(defpackage #:jp-utils
(:use #:com... | 956 | Common Lisp | .lisp | 39 | 20.717949 | 60 | 0.667032 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 0c16849bfd330738c95b7eca99c5ebc3cf4cb782c936c4db8d7dcbeb8555738b | 10,960 | [
-1
] |
10,961 | do-tests.lisp | jpellegrini_spartns/do-tests.lisp | (progn
(load "lisp-unit.lisp")
(load "spartns-packages.lisp")
(load "spartns-test-packages.lisp")
(load "utils.lisp")
(load "spartns.lisp")
(load "utils-test.lisp")
(load "tests.lisp")
(quit))
| 210 | Common Lisp | .lisp | 9 | 20.444444 | 37 | 0.661692 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 814e29fd73b6417e0a317b919ffbc782dbf7b9db521287a0e9c1751f96dedb5d | 10,961 | [
-1
] |
10,962 | utils.lisp | jpellegrini_spartns/utils.lisp | ;; This software is Copyright (c) Jeronimo Pellegrini, 2008.
;; You have the rights to distribute
;; and use this software as governed by the terms
;; of the Lisp Lesser GNU Public License
;; (http://opensource.franz.com/preamble.html),
;; known as the LLGPL.
(in-package :jp-utils)
(defmacro with-gensyms ((&rest name... | 20,973 | Common Lisp | .lisp | 488 | 37.569672 | 105 | 0.650323 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 22281894ebace6a9af7cefd01b8efede0a53c122153c16420a62d4dac4f17bc4 | 10,962 | [
-1
] |
10,963 | tests.lisp | jpellegrini_spartns/tests.lisp | ;; This software is Copyright (c) Jeronimo Pellegrini, 2008.
;; You have the rights to distribute
;; and use this software as governed by the terms
;; of the Lisp Lesser GNU Public License
;; (http://opensource.franz.com/preamble.html),
;; known as the LLGPL.
(in-package :spartns-test)
(eval-when (:compile-toplevel :... | 26,503 | Common Lisp | .lisp | 761 | 29.408673 | 125 | 0.575413 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 5d60b9b70c19230de4063912712bc287331724928a41f1cc14d468654b3057d0 | 10,963 | [
-1
] |
10,964 | benchmark.lisp | jpellegrini_spartns/benchmark.lisp | ;; This software is Copyright (c) Jeronimo Pellegrini, 2008.
;; You have the rights to distribute
;; and use this software as governed by the terms
;; of the Lisp Lesser GNU Public License
;; (http://opensource.franz.com/preamble.html),
;; known as the LLGPL.
;(load "spartns.lisp")
;(compile-file "spartns.lisp")
(in-... | 6,653 | Common Lisp | .lisp | 168 | 33.238095 | 85 | 0.581625 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 544b620abf007ded3b1e38f92d458c4d90eaf87aefe746ae2d963e72755198d5 | 10,964 | [
-1
] |
10,965 | spartns-test-packages.lisp | jpellegrini_spartns/spartns-test-packages.lisp | ;; This software is Copyright (c) Jeronimo Pellegrini, 2008.
;; You have the rights to distribute
;; and use this software as governed by the terms
;; of the Lisp Lesser GNU Public License
;; (http://opensource.franz.com/preamble.html),
;; known as the LLGPL.
(in-package :cl-user)
(defpackage #:jp-utils-test
(:use ... | 467 | Common Lisp | .lisp | 17 | 25.647059 | 60 | 0.724215 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 72429d0af600f02e6e6c4125a241a173a14e04985cd8537e39d0ac4e5417f0e8 | 10,965 | [
-1
] |
10,966 | utils-test.lisp | jpellegrini_spartns/utils-test.lisp | (in-package :jp-utils-test)
;; Set to T when debugging:
;;(setf lisp-unit::*use-debugger* :ask)
(define-test test-binary-search ()
(multiple-value-bind (result found) (binary-search 234 #(1 3 10 100 234 500 1234))
(assert-eql result 4)
(assert-eql found t))
(multiple-value-bind (result found) (binary-sea... | 8,851 | Common Lisp | .lisp | 186 | 42.870968 | 128 | 0.662275 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 0aa05d470d80e284204663c525ecf5ee1e26a2a076731bf3f016bb55407b77db | 10,966 | [
-1
] |
10,967 | spartns.asd | jpellegrini_spartns/spartns.asd | (asdf:defsystem spartns
:name "spartns"
:version "1.4.7"
:maintainer "Jeronimo C. Pellegrini"
:author "Jeronimo C. Pellegrini"
:licence "LLGPL"
:description "SPARse TeNSor representation library"
:serial t
:components ((:file "spartns-packages")
(:file "utils")
(:file "spar... | 844 | Common Lisp | .asd | 23 | 29.652174 | 87 | 0.588523 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 076ad396324423116785b049bfb2182e4a0f0db03f48567142b2c6f4c9fbf393 | 10,967 | [
-1
] |
10,972 | changelog | jpellegrini_spartns/changelog | Changelog for Spartns
=====================
Version numbers are in the format A.B.C; the meaning of changes
in each position is:
A: incompatible changes or major new features
B: new features
C: bugfixes and cleanups
(This was not the case until 0.0.3)
1.4.7 - 24 May 2017
-------------------
* put correct version i... | 7,966 | Common Lisp | .l | 214 | 34.827103 | 71 | 0.690911 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | e6f3c464f17383de0c12158541b88b0b56f21972938e18f833733e2c9c43047f | 10,972 | [
-1
] |
10,976 | do-test-platforms.sh | jpellegrini_spartns/do-test-platforms.sh | #!/bin/bash
#
# This script runs tests on all supported platforms
#
## Associative array (Bash 4 feature):
declare -A implementations=(
["SBCL"]="sbcl --script"
["Clisp"]="clisp"
["ECL"]="ecl -load"
["GCL"]="gcl -load"
["ABCL"]="java -jar /home/jeronimo/pkg/lisp/abcl/abcl.jar --batch --load"
["XCL"]="/home/jero... | 497 | Common Lisp | .l | 19 | 24.421053 | 74 | 0.637131 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 377053882d9b4fc7407aed20b8c23d50015bf5b0249af3301da4b84fdedbd1de | 10,976 | [
-1
] |
10,979 | manual.tex | jpellegrini_spartns/doc/manual.tex | \documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[usenames,dvipsnames]{color}
\usepackage{listings}
\lstset{%
frame=single,
frameround=tttt,
keywordstyle=\bfseries,%\underbar,
stringstyle=\ttfamily,
showstringspaces=false,%
basicstyle=\scriptsize\ttfamily\footnotesize\ttfamily,%
language=Lisp,%
}
\title... | 20,699 | Common Lisp | .l | 425 | 45.607059 | 121 | 0.741591 | jpellegrini/spartns | 10 | 1 | 0 | LGPL-2.1 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | b801242ce06e2e67c2f37862d14ac0417f50541a05ebf0b651c1bed65e03cb28 | 10,979 | [
-1
] |
10,994 | canvas.lisp | VitoVan_pelusica/canvas.lisp | ;; pelusica 1.0.0
(in-package #:calm)
;;
;; CALM version check
;; version check won't work on JSCL, since the lack of ASDF
;;
#-jscl
(let ((required-version "1.0.0")
(calm-version (slot-value (asdf:find-system 'calm) 'asdf:version)))
(when (uiop:version< calm-version required-version)
(format t
... | 11,764 | Common Lisp | .lisp | 360 | 25.15 | 110 | 0.535736 | VitoVan/pelusica | 13 | 0 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 0013a80685938117ec9aea710e81707f876440e0b4512397f2102c630bccef3d | 10,994 | [
-1
] |
10,997 | pelusica.yml | VitoVan_pelusica/.github/workflows/pelusica.yml | name: pelusica
permissions:
contents: write
on:
push:
tags:
- "*.*.*"
- "test-pelusica-*"
jobs:
Web:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Build
run: |
set -x
curl -L -o calm.tgz https://github.com/VitoVan/calm/release... | 3,024 | Common Lisp | .l | 109 | 18.834862 | 106 | 0.529473 | VitoVan/pelusica | 13 | 0 | 1 | GPL-2.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 29cf9c2932d56d9191e0c8e85a5bbc196f65eecb73191806929a21f882733633 | 10,997 | [
-1
] |
11,012 | math-temp.lisp | mnasoft_math/math-temp.lisp | ;;;; test.lisp
(in-package :math)
(math/core:split-range)
(math/core:split-range-by-func)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defparameter *v-ref*
(let* ((pts-vals (multiple-value-list (make-points-values *a* *h-r* *x-r*)))
(d-pts (vector 0.2 1... | 1,226 | Common Lisp | .lisp | 27 | 41.333333 | 112 | 0.561609 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 007678f8f378f8ed683a2382b5643cd1bfe977284385a6ff6d920a1ca2067b67 | 11,012 | [
-1
] |
11,013 | ls-gauss.lisp | mnasoft_math/src/ls-gauss/ls-gauss.lisp | ;;;; ./src/ls-gauss/ls-gauss.lisp
(defpackage :math/ls-gauss
(:use #:cl)
(:export convert-to-triangular
backward-run
solve-x
determiant
singular-p
))
(in-package :math/ls-gauss)
(defgeneric backward-run (matrix)
(:documentation
"Кандидат в intern.
Обратный ход при вычисл... | 6,551 | Common Lisp | .lisp | 157 | 30.726115 | 119 | 0.609612 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 91c21fdbf56e55ed25c6343ea23faa10dd26c07633162404dfc764b5ce8581f1 | 11,013 | [
-1
] |
11,014 | ls-rotation.lisp | mnasoft_math/src/ls-rotation/ls-rotation.lisp | ;;;; ./src/ls-rotation/las-rotation.lisp
(defpackage :math/ls-rotation
(:use #:cl)
(:export solve-x))
(in-package :math/ls-rotation)
(defgeneric solve-x (matr)
(:documentation
"@b(Описание:) функция @b(solve-x) решает систему линейных
алгебраических уравнений (СЛАУ) методом вращения, состоящего из:
@begin(l... | 4,996 | Common Lisp | .lisp | 114 | 32.973684 | 83 | 0.587568 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 2834230e7a2eff720808e5fee9e754b32f29849f41c0dbf18f208b53b2fc9034 | 11,014 | [
-1
] |
11,015 | generics.lisp | mnasoft_math/src/matr/generics.lisp | ;;;; ./src/matr/defgeneric.lisp
(in-package :math/matr)
(defgeneric mref (matrix row col)
(:documentation
"@b(Описание:) обобщенная функция @b(mref) возвращает элемент матрицы,
находяшийся в строке @b(row) и столбце @b(col). Нумерация строк и
столбцов начинается с нуля."))
(defgeneric (setf mref) (value matrix r... | 12,891 | Common Lisp | .lisp | 204 | 42.083333 | 190 | 0.732383 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 768f90fca116a692fdc857ce72c7d03f28fd52255b4825701ab740e9ee805465 | 11,015 | [
-1
] |
11,016 | matr-doc.lisp | mnasoft_math/src/matr/matr-doc.lisp | ;;;; In oder to extract documentation invoke C-C, C-P at the end of below line.
;;;; (mnas-package/doc:make-all :math/matr)
| 124 | Common Lisp | .lisp | 2 | 61 | 79 | 0.704918 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | b82eb5b1e10a66b26d075de6b7dfa014d0b8a92385ee817f13fd513dd2c7d626 | 11,016 | [
-1
] |
11,017 | matr.lisp | mnasoft_math/src/matr/matr.lisp | ;;;; ./src/matr/matr.lisp
(defpackage :math/matr
(:use #:cl #:math/coord)
(:export initialize-instance)
(:export matr-new
make-vector-n
<matrix>
)
(:export swap-cols
swap-cols*
swap-rows
swap-rows*)
(:export matrix-data
matrix->2d-list
... | 12,390 | Common Lisp | .lisp | 301 | 31.48505 | 199 | 0.566424 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 6e5465aa49e2f5b74f33056c71c70cd3ae89830f3744c6f974bf0963d1ab5a18 | 11,017 | [
-1
] |
11,018 | test.lisp | mnasoft_math/src/matr/test.lisp | (in-package :math/matr)
(defparameter *a* (make-array '(2 3) :initial-contents '((1 2 3)(4 5 6))))
(setf (col *a* 0) 10)
(setf (col *a* 0) #(101 102))
(setf (col *a* 0) '(101 102))
(setf (row *a* 0) 201)
(setf (col *a* 0) (vector 11 12))
(setf (row *a* 0) (vector 21 22 23))
(setf (col *a* 0) (list 11 12))
(set... | 357 | Common Lisp | .lisp | 11 | 30.818182 | 74 | 0.566372 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | d659c036e72874d947f92ed39f37e50568afebe969f853122741a8e3c8582db9 | 11,018 | [
-1
] |
11,019 | unite-cols.lisp | mnasoft_math/src/matr/methods/unite-cols.lisp | ;;;; ./src/matr/methods/unite-cols.lisp
(in-package :math/matr)
(defmethod unite-cols ((2d-list cons))
" @b(Пример использования:)
@begin[lang=lisp](code)
(unite-cols '((1 2 3)
(4 5 6)))
=>(1 2 3 4 5 6)
@end(code)"
(let ((rez nil))
(mapcar #'(lambda (el) (setf rez (append rez el) ) ) 2d-list... | 352 | Common Lisp | .lisp | 12 | 24 | 65 | 0.586207 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 1e562bf040e8e3b399d2a2f92c366140260d18ecc76014ad76c8fb2b89729ddb | 11,019 | [
-1
] |
11,020 | rows.lisp | mnasoft_math/src/matr/methods/rows.lisp | ;;;; ./src/matr/methods/rows.lisp
(in-package :math/matr)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; rows
(defmethod rows ((mm <matrix>))
(array-dimension (matrix-data mm) 0))
(defmethod rows ((a array))
"@b(Описание:) метод @b(rows) возвращает колич... | 509 | Common Lisp | .lisp | 12 | 36.25 | 100 | 0.519016 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 3c0b1109a4e9058327f4040eea6537da7a283012151c7b5ef13d423acdc4639d | 11,020 | [
-1
] |
11,021 | append.lisp | mnasoft_math/src/matr/methods/append.lisp | ;;;; ./src/matr/methods/append.lisp
(in-package :math/matr)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; append
(defmethod append-col ((c-lst cons) (2d-list cons))
" @b(Пример использования:)
@begin[lang=lisp](code)
(math:append-col '(10 11 12)
... | 1,594 | Common Lisp | .lisp | 47 | 19.93617 | 100 | 0.329122 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 45726a5f23ddfe0ea552ed3293d9790165f7609287335f44f8a33e7a2a5fc33d | 11,021 | [
-1
] |
11,022 | cols.lisp | mnasoft_math/src/matr/methods/cols.lisp | ;;;; ./src/matr/methods/cols.lisp
(in-package :math/matr)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; cols
(defmethod cols ((a array))
" @b(Пример использования:)
@begin[lang=lisp](code)
(To-Do)
@end(code)
"
(assert (= (array-rank a) 2))
(array-dime... | 699 | Common Lisp | .lisp | 26 | 22.884615 | 100 | 0.562092 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | ba8ca5da09f5cde6eeb8ab7b860e365e639414d23f8e4dc5466484116c0bbedd | 11,022 | [
-1
] |
11,023 | dimensions.lisp | mnasoft_math/src/matr/methods/dimensions.lisp | ;;;; ./src/matr/methods/dimensions.lisp
(in-package :math/matr)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; dimensions
(defmethod dimensions ((2d-list cons))
" @b(Пример использования:)
@begin[lang=lisp](code)
(dimensions '((1 2 3)
(4 5... | 1,044 | Common Lisp | .lisp | 30 | 27.066667 | 100 | 0.519412 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | f23ceb494f8265750033655d3cb88d580f8e07b8549ffa5ae00e96928b37a8d1 | 11,023 | [
-1
] |
11,024 | unite-rows.lisp | mnasoft_math/src/matr/methods/unite-rows.lisp | ;;;; ./src/matr/methods/unite-rows.lisp
(in-package :math/matr)
(defmethod unite-rows ((2d-list cons))
" @b(Пример использования:)
@begin[lang=lisp](code)
(unite-rows '((1 2 3)
(4 5 6)))
=>(1 2 3 4 5 6)
@end(code)"
(let ((rez nil))
(mapcar #'(lambda (el) (setf rez (append rez el) ) ) 2d-list... | 351 | Common Lisp | .lisp | 12 | 24 | 65 | 0.586207 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | fdb48e1102f69fc59a31ae697014096a7374515b074a4d6647672ffa68d55d28 | 11,024 | [
-1
] |
11,025 | row.lisp | mnasoft_math/src/matr/methods/row.lisp | ;;;; ./src/matr/methods/row.lisp
(in-package :math/matr)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; row
(defmethod row ((mm <matrix>) row)
(let ((data (matrix-data mm)))
(loop :for c :from 0 :below (cols mm)
:collect (aref data row c))))
(defmet... | 2,020 | Common Lisp | .lisp | 57 | 31.385965 | 100 | 0.505171 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | aaa53e54fec2201eb05a63d09509f3ca078043d2f61f1960208893af20b6154d | 11,025 | [
-1
] |
11,026 | col.lisp | mnasoft_math/src/matr/methods/col.lisp | ;;;; ./src/matr/methods/col.lisp
(in-package :math/matr)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; col
(defmethod col ((mm <matrix>) col)
(let ((data (matrix-data mm)))
(loop :for r :from 0 :below (rows mm)
:collect (aref data r col))))
(defmet... | 2,233 | Common Lisp | .lisp | 60 | 31.783333 | 100 | 0.519286 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | cf0b1ddcf9cf2ad5e303eb8cc40d8f4413c980ad8ed4cca27e19fc3f6f0224ea | 11,026 | [
-1
] |
11,027 | add.lisp | mnasoft_math/src/matr/methods/add.lisp | ;;;; ./src/matr/methods/add.lisp
(in-package :math/matr)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; add
(defmethod add ((a <matrix> ) (b <matrix>))
" @b(Пример использования:)
@begin[lang=lisp](code)
(add (matr-new 2 2 '(1 2
3 4... | 1,020 | Common Lisp | .lisp | 29 | 28.344828 | 100 | 0.406417 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 2db15b092bbd75722c32f3e4086d5a357a3ad9b03e1a67cfbc252ef010ca9919 | 11,027 | [
-1
] |
11,028 | main-diagonal.lisp | mnasoft_math/src/matr/methods/main-diagonal.lisp | ;;;; ./src/matr/methods/main-diagonal.lisp
(in-package :math/matr)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; main-diagonal
(defmethod main-diagonal ((mm <matrix>))
" @b(Пример использования:)
@begin[lang=lisp](code)
(defparameter *mm*
(make-instan... | 2,871 | Common Lisp | .lisp | 78 | 29.461538 | 100 | 0.441544 | mnasoft/math | 14 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:26:41 AM (Europe/Amsterdam) | 70160604d52c96cad286d881096805265f9638575deb2aab1a0f31a11bab6654 | 11,028 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.