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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
17,776 | vector-utilities.lisp | keithj_deoxybyte-utilities/src/vector-utilities.lisp | ;;;
;;; Copyright (c) 2008-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 5,740 | Common Lisp | .lisp | 121 | 36.636364 | 74 | 0.586022 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | ff29500a0b35c87c26b2b1f5f034270358b822e8cb0e55682d7c522d6b35d71d | 17,776 | [
-1
] |
17,777 | queue.lisp | keithj_deoxybyte-utilities/src/queue.lisp | ;;;
;;; Copyright (c) 2009-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 4,542 | Common Lisp | .lisp | 109 | 36.733945 | 79 | 0.681828 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 6a28ce8af5fda9942362f2e34da2dd7aca16276d6b7600836bac162ef5c4afe6 | 17,777 | [
-1
] |
17,778 | numeric-utilities.lisp | keithj_deoxybyte-utilities/src/numeric-utilities.lisp | ;;;
;;; Copyright (c) 2008-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 5,552 | Common Lisp | .lisp | 131 | 34.129771 | 80 | 0.619744 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 5d0f3a53d63d5f9e94526b20888bdc4da6383eb39a7093e2c1d854e775a6990e | 17,778 | [
-1
] |
17,779 | ccl.lisp | keithj_deoxybyte-utilities/src/ccl.lisp | ;;;
;;; Copyright (c) 2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of the L... | 3,355 | Common Lisp | .lisp | 71 | 41.267606 | 73 | 0.692942 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 8f9e8ba637da2beacd6c76fbed59d88096aa23b1c79b594420737d22bbf7e975 | 17,779 | [
-1
] |
17,780 | set-utilities.lisp | keithj_deoxybyte-utilities/src/set-utilities.lisp | ;;;
;;; Copyright (c) 2010-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 4,505 | Common Lisp | .lisp | 107 | 33.140187 | 73 | 0.594761 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 9cb7b92e1db2f66aa874f7d570e6d879d551b184b95bb751b99db6a2e5d6c035 | 17,780 | [
-1
] |
17,781 | octet-vector-utilities.lisp | keithj_deoxybyte-utilities/src/octet-vector-utilities.lisp | ;;;
;;; Copyright (c) 2008-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 3,438 | Common Lisp | .lisp | 68 | 41.455882 | 77 | 0.615682 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 21108ee7cb9fa46099fbe4f350dd23a3977d40808016f84edb45907d7d58d281 | 17,781 | [
-1
] |
17,782 | cons-utilities.lisp | keithj_deoxybyte-utilities/src/cons-utilities.lisp | ;;;
;;; Copyright (c) 2008-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 6,811 | Common Lisp | .lisp | 162 | 35.938272 | 79 | 0.665611 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 2263658f9bf4d598821817a645e8ae96c6dde88216c1bcf66c4feeb2d7863944 | 17,782 | [
-1
] |
17,783 | conditions.lisp | keithj_deoxybyte-utilities/src/conditions.lisp | ;;;
;;; Copyright (c) 2008-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 4,830 | Common Lisp | .lisp | 108 | 36.453704 | 73 | 0.642539 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 89d8aa64c38fbfb0b2aaae0181894a4ea1a58dc5b8750bce6e09f6af44a27221 | 17,783 | [
-1
] |
17,784 | default.lisp | keithj_deoxybyte-utilities/src/default.lisp | ;;;
;;; Copyright (c) 2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of the L... | 3,005 | Common Lisp | .lisp | 60 | 45.266667 | 76 | 0.722563 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 1eb7d32d63b4a67ff0412c58004d4efcaf4d9693b0819efd1035b1652446fc7e | 17,784 | [
-1
] |
17,785 | type-utilities.lisp | keithj_deoxybyte-utilities/src/type-utilities.lisp | ;;;
;;; Copyright (c) 2009-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 1,796 | Common Lisp | .lisp | 54 | 31.185185 | 73 | 0.712139 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 9d3aa2f0be048a7246f206782dce5004ad1a1a7b3494d1107c57536d1211aa8b | 17,785 | [
-1
] |
17,786 | deoxybyte-utilities.lisp | keithj_deoxybyte-utilities/src/deoxybyte-utilities.lisp | ;;;
;;; Copyright (c) 2007-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 6,388 | Common Lisp | .lisp | 160 | 33.8125 | 73 | 0.66226 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 4b5bcad761e9057b214512891f3b8318245066cf3bdd6df8f3f19b20aa2b2bca | 17,786 | [
-1
] |
17,787 | sbcl.lisp | keithj_deoxybyte-utilities/src/sbcl.lisp | ;;;
;;; Copyright (c) 2008-2011 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 3,413 | Common Lisp | .lisp | 71 | 42.084507 | 73 | 0.693485 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 2a054bf81a4a530b998647fa6fec91f4405b45ab66ab5ee97b593aa559909d2e | 17,787 | [
-1
] |
17,788 | string-utilities.lisp | keithj_deoxybyte-utilities/src/string-utilities.lisp | ;;;
;;; Copyright (c) 2008-2012 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 8,596 | Common Lisp | .lisp | 198 | 37.30303 | 76 | 0.648245 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 84c43179dedbbbc5ec930182b2509429650358ba8d3ece7476a9203298f7f679 | 17,788 | [
-1
] |
17,789 | deoxybyte-utilities.asd | keithj_deoxybyte-utilities/deoxybyte-utilities.asd | ;;;
;;; Copyright (c) 2007-2013 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 2,473 | Common Lisp | .asd | 56 | 32.464286 | 77 | 0.553668 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 567c6de203d54075f84fb617e743d182367d36fc207c89e5a748ea3d2a992213 | 17,789 | [
-1
] |
17,790 | deoxybyte-utilities-test.asd | keithj_deoxybyte-utilities/deoxybyte-utilities-test.asd | ;;;
;;; Copyright (c) 2007-2013 Keith James. All rights reserved.
;;;
;;; This file is part of deoxybyte-utilities.
;;;
;;; 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 3 of ... | 1,767 | Common Lisp | .asd | 35 | 36.285714 | 74 | 0.543039 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 56ac3fe26116c14b6888419395027c0cba84217891de135d260bdc26a77114c8 | 17,790 | [
-1
] |
17,794 | deoxybyte-utilities-test.config | keithj_deoxybyte-utilities/deoxybyte-utilities-test.config | ;;; Configuration for LIFT tests
;; Settings
(:if-dribble-exists :supersede)
;; (:dribble "lift.dribble")
(:dribble nil)
(:print-length 10)
(:print-level 5)
(:print-test-case-names t)
(:log-pathname t)
;; Suites to run
(uk.co.deoxybyte-utilities-test:deoxybyte-utilities-tests)
;; Report properties
(:report-property ... | 748 | Common Lisp | .l | 23 | 31.304348 | 62 | 0.754167 | keithj/deoxybyte-utilities | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | fa18da670651d30cf559aa149aeac9f557c0459091997d7ffb73640936645c57 | 17,794 | [
-1
] |
17,838 | package.lisp | fosskers_cl-nonempty/src/package.lisp | (defpackage nonempty
(:use :cl)
(:shadow #:cons #:car #:cdr #:last
#:map #:append
#:length #:reverse #:elt)
;; --- Lists --- ;;
(:export #:nelist #:nel
#:cons #:car #:cdr
#:map #:filter #:fold)
;; --- Generics --- ;;
(:export #:length #:reverse #:elt #:last #:appe... | 883 | Common Lisp | .lisp | 21 | 37.571429 | 80 | 0.667832 | fosskers/cl-nonempty | 3 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 00fefc03778a9e8567d9006e8fc6d2b0edb4b57761e109939b63b6c002dc079b | 17,838 | [
-1
] |
17,839 | transducers.lisp | fosskers_cl-nonempty/src/transducers.lisp | (defpackage nonempty/transducers
(:use :cl)
(:local-nicknames (:ne :nonempty)
(:t :transducers))
(:export #:nelist)
(:documentation "Transducers support for nonempty."))
(in-package :nonempty/transducers)
(defmethod t:transduce (xform f (source ne:nelist))
(t:transduce xform f (ne:to-lis... | 1,126 | Common Lisp | .lisp | 26 | 37.346154 | 102 | 0.632205 | fosskers/cl-nonempty | 3 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 355b27ee321841958d72b120de75998ef938ec1b7af0ce8bca41239e2632f0d7 | 17,839 | [
-1
] |
17,840 | generics.lisp | fosskers_cl-nonempty/src/generics.lisp | (in-package :nonempty)
(defgeneric length (items)
(:documentation "The length of the given non-empty structure."))
(defmethod length ((items nelist))
(1+ (cl:length (nelist-tail items))))
#+nil
(length (nel 1 2 3))
(defgeneric reverse (items)
(:documentation "The reverse of the given non-empty structure."))
... | 1,938 | Common Lisp | .lisp | 53 | 31.509434 | 75 | 0.650589 | fosskers/cl-nonempty | 3 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 3e3fa1e668b586a3516f6429d24ea17b314f14f1c4079582dfba553e385ad029 | 17,840 | [
-1
] |
17,841 | list.lisp | fosskers_cl-nonempty/src/list.lisp | (in-package :nonempty)
(defstruct nelist
"A list guaranteed to contain at least one item."
(head nil :read-only t)
(tail nil :read-only t :type list))
(defun nel (item &rest items)
"Construct a non-empty list from at least one input argument."
(make-nelist :head item :tail items))
#+nil
(nel 1 2 3)
(decla... | 1,811 | Common Lisp | .lisp | 53 | 31.698113 | 80 | 0.682366 | fosskers/cl-nonempty | 3 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 968ce422b3e2bbdbc384f2e53d71b02bb91b6dd3a6b3c77fe2291b92373eb76a | 17,841 | [
-1
] |
17,842 | main.lisp | fosskers_cl-nonempty/tests/main.lisp | (defpackage nonempty/tests
(:use :cl :parachute)
(:local-nicknames (:ne :nonempty)
(:nt :nonempty/transducers)
(:t :transducers)))
(in-package :nonempty/tests)
(define-test suite)
(define-test "Lists"
:parent suite
(is equalp (ne:nel 1 2 3) (ne:nel 1 2 3))
(is equalp... | 1,394 | Common Lisp | .lisp | 32 | 39.65625 | 82 | 0.587325 | fosskers/cl-nonempty | 3 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | a3a762ad9ea79ed756137e7824b4fb4f62cbe53943ccfe0fb7479bfadeee3a62 | 17,842 | [
-1
] |
17,843 | nonempty.asd | fosskers_cl-nonempty/nonempty.asd | (defsystem "nonempty"
:version "0.1.0"
:author "Colin Woodbury <colin@fosskers.ca>"
:license "LGPL-3.0-only"
:depends-on ()
:components ((:module "src"
:components
((:file "package")
(:file "list")
(:file "generics"))))
:description "Non-empt... | 1,124 | Common Lisp | .asd | 32 | 27.46875 | 75 | 0.6 | fosskers/cl-nonempty | 3 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 85952f0d3099a55f23ccfe0e45a6cf9e9c13cad79eca34603848b67e1399580b | 17,843 | [
-1
] |
17,845 | qlfile.lock | fosskers_cl-nonempty/qlfile.lock | ("quicklisp" .
(:class qlot/source/dist:source-dist
:initargs (:distribution "https://beta.quicklisp.org/dist/quicklisp.txt" :%version :latest)
:version "2023-10-21"))
("fosskers-cl-transducers" .
(:class qlot/source/ultralisp:source-ultralisp
:initargs (:%version :latest)
:version "ultralisp-20240217095504")... | 466 | Common Lisp | .l | 12 | 36.583333 | 93 | 0.751101 | fosskers/cl-nonempty | 3 | 0 | 0 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 7e3660a401f0f5930781277108f2fe6c2ebb102bb7ca116c3e8f9261ce6dafb5 | 17,845 | [
-1
] |
17,865 | validate.lisp | fisxoj_validate/src/validate.lisp | (defpackage validate
(:use :iterate :cl)
(:nicknames #:v)
(:shadow #:list)
(:export #:parse
#:schema
#:<validation-error>
#:with-validated-values
#:str
#:int
#:bool
#:email
#:list
#:regex
#:timestamp)
(:docu... | 5,107 | Common Lisp | .lisp | 116 | 38.206897 | 254 | 0.649757 | fisxoj/validate | 3 | 0 | 3 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | e61cc049be9bc18c7a43299737ed26d936b4c33bd7a6d40f938ed70384484672 | 17,865 | [
-1
] |
17,866 | validate.lisp | fisxoj_validate/t/validate.lisp | (defpackage validate-test
(:use #:cl
#:prove))
(in-package :validate-test)
(plan 7)
;; Test parsing
;;; Email
(subtest "Email"
(is (v:email "me@here.xyz") "me@here.xyz" "Valid emails are ok.")
(is-error (v:email "me@here") 'v:<validation-error> "Email without a TLD throws an error.")
(is-error (v:em... | 3,976 | Common Lisp | .lisp | 95 | 37.484211 | 126 | 0.625356 | fisxoj/validate | 3 | 0 | 3 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 95564b3bd651d597487d25dfcecef660a84b38ca2bb0d8baf6e6a76d1cb7598b | 17,866 | [
-1
] |
17,867 | validate-test.asd | fisxoj_validate/validate-test.asd | #|
This file is a part of validate project.
Copyright (c) 2016 Matt Novenstern (fisxoj@gmail.com)
|#
(defsystem validate-test
:author "Matt Novenstern"
:license ""
:depends-on ("validate"
"prove")
:pathname "t"
:components ((:test-file "validate"))
:description "Test system for validate"... | 493 | Common Lisp | .asd | 16 | 26.625 | 59 | 0.671579 | fisxoj/validate | 3 | 0 | 3 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 54f8bcde79f0b9fca51ba86141cec1ba611556957b24cce046d11de4b0d9556f | 17,867 | [
-1
] |
17,868 | validate.asd | fisxoj_validate/validate.asd | #|
This file is a part of validate project.
Copyright (c) 2016 Matt Novenstern (fisxoj@gmail.com)
|#
(defsystem validate
:version "0.8.0"
:author "Matt Novenstern"
:license "LLGPLv3"
:depends-on ("iterate"
"cl-ppcre"
"alexandria"
"local-time")
:pathname #P"src... | 470 | Common Lisp | .asd | 16 | 24.25 | 59 | 0.640177 | fisxoj/validate | 3 | 0 | 3 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 786d05cba9c51bad093de159851b4cc668898c3e18930b2b16c58e54315a50c1 | 17,868 | [
-1
] |
17,872 | .travis.yml | fisxoj_validate/.travis.yml | language: common-lisp
sudo: false
notifications:
email: false
env:
global:
- PATH=$HOME/.roswell/bin:$PATH
- ROSWELL_INSTALL_DIR=$HOME/.roswell
- COVERAGE_EXCLUDE=t
matrix:
- LISP=sbcl-bin COVERALLS=true
- LISP=ccl-bin
install:
# Install Roswell
- curl -L https://raw.githubusercontent.co... | 662 | Common Lisp | .l | 27 | 21.407407 | 99 | 0.725397 | fisxoj/validate | 3 | 0 | 3 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 1d590b55632fdfe830982db8f493e8a43fdfa211c88eb60697f13d4e862124c6 | 17,872 | [
-1
] |
17,874 | validate.html | fisxoj_validate/docs/validate.html | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="default.css" type="text/css" />
<title>validate package</title>
</head>
<body>
<div id="validate-package" class="docu... | 5,878 | Common Lisp | .l | 96 | 60.229167 | 305 | 0.703268 | fisxoj/validate | 3 | 0 | 3 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 9578c3765d56200241fa87e4f04fa39fb537ded2c585529ed13e039e7fe1cad0 | 17,874 | [
-1
] |
17,876 | index.html | fisxoj_validate/docs/index.html | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<link rel="stylesheet" href="default.css" type="text/css" />
<title>validate</title>
<meta name="Author" content="Matt Novenstern" />
</head>
<bod... | 1,293 | Common Lisp | .l | 30 | 42.1 | 232 | 0.696203 | fisxoj/validate | 3 | 0 | 3 | LGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 98c33139d19bc3baacd07fa342feb4dcbb8bd3e29f955dc86b1b9f1909c00273 | 17,876 | [
-1
] |
17,892 | package.lisp | admich_scliba/package.lisp | ;;;; package.lisp
(in-package #:cl-user)
(defpackage #:scliba
(:use #:cl ;; #:antik ;; #:local-time conflict with antik
)
(:import-from #:alexandria #:compose #:ensure-list #:flatten #:symbolicate #:first-elt #:shuffle)
;; antik::*antik-user-shadow-symbols*
;; (:shadowing-import-from #:antik #:MAXIMIZING ... | 5,308 | Common Lisp | .lisp | 198 | 19.90404 | 99 | 0.551262 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | e77a27ffc3ccce130cc5b0ff117431f11972b842c8ef44a714d24cc8258004a3 | 17,892 | [
-1
] |
17,893 | backend.lisp | admich_scliba/backend.lisp | ;;;;; backend.lisp
(in-package #:scliba)
(defclass backend ()
((outstream :initarg :stream
:initform *standard-output*
:accessor backend-outstream)
(view-fn :initarg :view-fn
:accessor backend-view-fn)
(compile-fn :initarg :compile-fn
:accessor backend-compile-fn
:initform #'... | 2,370 | Common Lisp | .lisp | 48 | 45.708333 | 103 | 0.726759 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 7186d5e9cf591f59eeec5fd1c386580b6976a77d4dac764a42d7095e8610097e | 17,893 | [
-1
] |
17,894 | pedb.lisp | admich_scliba/pedb.lisp | (in-package #:scliba-pedb)
(defparameter *pedb-directory* #p"/home/admich/Documents/scuola/my-didattica/pedb/")
(defparameter *esercizi-directory* (uiop:merge-pathnames* #p"exercises/" *pedb-directory*)) ; #p"/home/admich/Documenti/scuola/my-didattica/context/esercizi/"
(defparameter *esercizi-preview-directory* (uiop... | 15,885 | Common Lisp | .lisp | 337 | 42.967359 | 348 | 0.679425 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | ffaf47bd5f531f786bec2a1dcdfd6bfd7ac2856358fa48ff30009ad0ac2aec66 | 17,894 | [
-1
] |
17,895 | scliba.lisp | admich_scliba/scliba.lisp | ;;; scliba.lisp
;;;; exp-backend
(in-package #:scliba)
(defvar *math* nil)
(defparameter *debug* nil)
(defparameter *outstream* *standard-output*)
(defparameter *output-file* "./file.lisp")
(defparameter *main-backend* nil)
(defparameter *top-level-document* nil)
(defparameter *command-pdf-viewer* "emacsclient -n") ;... | 3,864 | Common Lisp | .lisp | 84 | 42.261905 | 107 | 0.674289 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | d6f8a7c25935a99a21e45396677f97155108107a151467f3073cb869009afbb6 | 17,895 | [
-1
] |
17,896 | itas.lisp | admich_scliba/itas.lisp | ;;;; Un pacchetto per documenti dell'ITAS Anzilotti
(in-package #:scliba-itas)
(defclass tabella-itas () ())
(defclass itas-document (authoring-document) ())
(def-authoring-tree relazione-finale (itas-document))
(defmethod export-document :before ((document tabella-itas) (backend mixin-context-backend))
(export-... | 8,755 | Common Lisp | .lisp | 205 | 37.273171 | 141 | 0.655584 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 7153ef92cc6a84eadfc94e2211b47fc5d7a11c54d2a1220949c2757acbce2ca3 | 17,896 | [
-1
] |
17,897 | physical-quantity.lisp | admich_scliba/physical-quantity.lisp | (in-package #:scliba)
(defparameter *s-o-u* '(:si :deg))
(define-units 'time '((hour (* 3600 second) (hr hours) "h")))
(define-units 'time '((minute (* 60 second) (min minutes) "min")))
(define-units 'length '((decimeter 0.1 (dm decimeters) "dm")))
(define-units 'mass '((hectogram (* 0.1 kilogram) (hg hectog... | 6,094 | Common Lisp | .lisp | 128 | 42.046875 | 148 | 0.595246 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 3bfd78b5884cbe23f2ff27c083daabaacf5def7dc149da10e2d043b2c92e5cea | 17,897 | [
-1
] |
17,898 | macro.lisp | admich_scliba/macro.lisp | (in-package :scliba)
(defmacro with-document-arguments (args document &body body)
(let ((in (gensym)))
`(let ((,in ,document))
;; ,@(maybe-rebinding in documents 'with-slots)
;; ,in
(symbol-macrolet
,(mapcar (lambda (arg-entry)
(destructuring-bind
(var-name &op... | 1,975 | Common Lisp | .lisp | 47 | 33.553191 | 127 | 0.576183 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | f96657599468ee91a14954124ad2cbbc61577e7c3fb3e38f8068b718c20fcb9a | 17,898 | [
-1
] |
17,899 | itas-odt.lisp | admich_scliba/itas-odt.lisp | (in-package :scliba-itas)
(defparameter *xml-indentation* 2)
(defparameter *odf-version* "1.3")
(eval-when (::compile-toplevel :load-toplevel :execute)
(defparameter *namespaces*
'(("manifest" . "urn:oasis:names:tc:opendocument:xmlns:manifest:1.0")
("office" . "urn:oasis:names:tc:opendocument:xmlns:office... | 39,459 | Common Lisp | .lisp | 720 | 44.979167 | 268 | 0.590078 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 85425a2526a9ac21bbfab337661a00a297cd7051aca64e8fb5b8429c76b1fbbd | 17,899 | [
-1
] |
17,900 | physics.lisp | admich_scliba/physics.lisp | (in-package #:physics)
(set-reader-in-file)
(defmacro define-scliba-physical-constant (name pq &key (precision 3) (exponent 0) (s-o-u *s-o-u*) new-unit)
`(progn
(define-physical-constant ,name ,pq)
(defun ,name (&key (precision ,precision) (exponent ,exponent) (s-o-u ',s-o-u) (new-unit ,new-unit))
(... | 4,670 | Common Lisp | .lisp | 104 | 32.5 | 108 | 0.458462 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 493abd2c9e1a0d3d1747c36aae15c7bf73d522e9fa51bb6bfc5e1b845767e8c6 | 17,900 | [
-1
] |
17,901 | esercizio.lisp | admich_scliba/examples/esercizio.lisp | (in-package #:pedb)
(esercizio ()
"In un grafico v-t un moto rettilineo uniforme è rappresentato da: "
(scelte ()
(item (:sol) "una retta orizzontale ")
(item () "una retta qualsiasi ")
(item () "una parabola ")
(item () "una retta verticale ")
)
(soluzione ()
(last-sol) )
)
| 310 | Common Lisp | .lisp | 12 | 22.083333 | 71 | 0.606061 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | d4d85feb3adb860c074b841adba34c91782a8505f9ebf5b349766e30aac535d8 | 17,901 | [
-1
] |
17,902 | compito.lisp | admich_scliba/examples/compito.lisp | (in-package #:pedb)
(compito (:title "Verifica di fisica" :rfoot (format nil " ott. 2016 (W43) f~d" *i-random*) :bodyfont 12 :soluzioni t)
(infoform)
(framedtext (:context "location=middle, bodyfont=8pt") [Punteggio min. 1pt. Esercizi 1--6 0.5pt. Esercizi 7--9 2pt. TOT: 10pt])
(randomize ()
(esercizi ... | 499 | Common Lisp | .lisp | 14 | 31.785714 | 131 | 0.64657 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 0ca7957beb8482cc4401fd42666bcb2cd72f2229cf921d62afb6946be4e184bc | 17,902 | [
-1
] |
17,903 | all-exercise.lisp | admich_scliba/examples/all-exercise.lisp | (in-package #:pedb)
(setf *randomize* nil)
(compito (:title "Eserciziario di fisica" :soluzioni t :rfoot (format nil "Compilato \\date\\ \\currenttime"))
"
\\enablemode[soluzioni]
% \\setupbodyfont[11pt]
\\setupenumerations[esercizio][margin=yes, way=bysection, prefix=yes,prefixsegments=section,width=fit]
\\setu... | 844 | Common Lisp | .lisp | 21 | 35.285714 | 110 | 0.690798 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | af1c239b7d0c1621a4a1c39ce386e0bb0e73caadfa16db69ae2034d4a9a9fa25 | 17,903 | [
-1
] |
17,904 | convert.lisp | admich_scliba/utils/convert.lisp | (in-package #:scliba)
(ql:quickload "split-sequence")
(defvar *in-string* nil)
(defvar *in-item* nil)
(defun remove-comment (line)
"remove comment"
(let ((pos% (position #\% line))
(pos%% (search "\\%" line)))
(cond
((not pos%) line)
((not pos%%) (subseq line 0 (position #\% line)))
((= pos%... | 5,034 | Common Lisp | .lisp | 94 | 49.12766 | 157 | 0.606504 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 8b2c6d6548f1ee49d51981f0abfcfa8c4dde2593d19fef52db45238f17aeb90a | 17,904 | [
-1
] |
17,905 | package.lisp | admich_scliba/gui/package.lisp | ;;
(in-package #:cl-user)
(defpackage #:scliba-gui
(:use #:clim #:clim-lisp #:scliba #:scliba-pedb #:scliba-ptnh)
(:export #:scliba-gui))
| 144 | Common Lisp | .lisp | 5 | 26.6 | 64 | 0.656934 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | cb9899b1802d6c5d2aac93150fb1d24997b28b5163a932124f82650f131bf14a | 17,905 | [
-1
] |
17,906 | climacs-scliba-syntax.lisp | admich_scliba/gui/climacs-scliba-syntax.lisp | (defpackage :climacs-scliba-syntax
(:use :clim-lisp :clim :drei-buffer :drei-base :drei-syntax :flexichain :drei :drei-fundamental-syntax :drei-lisp-syntax :drei-lr-syntax)
(:shadowing-import-from :drei-lisp-syntax :form)
(:export #:scliba-syntax))
(in-package :climacs-scliba-syntax)
(define-syntax-command-tabl... | 6,704 | Common Lisp | .lisp | 123 | 46.487805 | 139 | 0.646771 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 80d02f3909b43db696b287299d7fec4a3246de28beff230ae43ab35ad2be0440 | 17,906 | [
-1
] |
17,907 | scliba-gui.lisp | admich_scliba/gui/scliba-gui.lisp | ;;
(in-package #:scliba-gui)
(defparameter *pedb* (make-hash-table))
(defclass scliba-document ( )
()
(:documentation "general scliba-document"))
(defclass scliba-file-document (scliba-document)
((file :accessor document-file
:initarg :file
:type 'pathname))
(:documentation "scliba-document stored in a f... | 10,319 | Common Lisp | .lisp | 227 | 40.9163 | 183 | 0.696038 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 7676d7a1e17fc1b7270adb1957dd406992c7dab6daac7eea501f8df31312b83c | 17,907 | [
-1
] |
17,908 | scliba-test.lisp | admich_scliba/t/scliba-test.lisp | (defpackage scliba-test
(:use #:cl #:scliba #:fiveam))
(in-package #:scliba-test)
(def-suite scliba-test :description "Test suite for sCLiba")
(in-suite scliba-test)
(test compito
(let ((sclibafile (uiop:merge-pathnames* "examples/compito.lisp" (asdf:system-source-directory "scliba"))))
(finishes (read-file... | 1,753 | Common Lisp | .lisp | 25 | 65.96 | 114 | 0.74173 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 5a4788129b606c8ce17d9800e6e11404bc0d9b36bb1a427168cc80c18915c3bf | 17,908 | [
-1
] |
17,909 | scliba-test.asd | admich_scliba/scliba-test.asd | (asdf:defsystem #:scliba-test
:description "Test suite for sCLiba"
:author "Andrea De Michele <andrea.demichele@gmail.com>"
:license "GPL v3"
:depends-on (#:scliba #:fiveam)
:serial t
:components ((:module "t"
:serial t
:components ((:file "scliba-test")))))
| 292 | Common Lisp | .asd | 9 | 27.888889 | 59 | 0.650177 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 0893100bb53092be30f3b073fc65f90468c421c1ab3fd8a0d9a23e4e21deb3df | 17,909 | [
-1
] |
17,910 | scliba-gui.asd | admich_scliba/scliba-gui.asd | (asdf:defsystem #:scliba-gui
:description "A CLIM gui for sCLiba authoring system in Common Lisp"
:author "Andrea De Michele <andrea.demichele@gmail.com>"
:license "GPL v3"
:depends-on (#:mcclim #:scliba #:climacs)
:serial t
:components ((:module "gui"
:serial t
:components ((:file "pac... | 455 | Common Lisp | .asd | 11 | 31 | 70 | 0.566591 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 11cc23fe74cf7a2243f55a4fdceaa9aa9456522584c213b88ab33ba6e8e372ad | 17,910 | [
-1
] |
17,911 | scliba.asd | admich_scliba/scliba.asd | ;;;; scliba.asd
(asdf:defsystem #:scliba
:description "A authoring system in Common Lisp"
:author "Andrea De Michele <andrea.demichele@gmail.com>"
:license "GPL v3"
:depends-on (#:uiop #:alexandria #:cl-ppcre #:local-time #:scribble #:physical-dimension #:cl-who #:cxml #:zip)
:serial t
:components ((:file... | 675 | Common Lisp | .asd | 19 | 26.578947 | 113 | 0.53681 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | a84925e2df2ba39bbc417b75cccdba744272bb5acef4c07af2522dc6deabd0aa | 17,911 | [
-1
] |
17,912 | scliba-mode.el | admich_scliba/scliba-mode.el |
(define-derived-mode scliba-mode lisp-mode "sCLiba"
"major mode for editing sCLiba code."
)
(defvar scliba-mode-map (make-sparse-keymap)
"Keymap for scliba-mode.")
(define-key scliba-mode-map "\C-c\C-c" 'scliba-compila-guarda-file)
(define-skeleton scliba-skeleton-pq-format
"Box per chiedere il Nome degl... | 631 | Common Lisp | .cl | 17 | 34.058824 | 68 | 0.726368 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | dca7b8d05ef5a58774394cd05598b5a550dccbae6e654d27003ddfa7d2d858e2 | 17,912 | [
-1
] |
17,914 | scliba.el | admich_scliba/scliba.el | (require 'cl)
(load "skeletons-cl-authoring" nil)
(defun pedb-store-dir ()
(substring (second (slime-eval '(swank:eval-and-grab-output "(directory-namestring pedb::*esercizi-directory*)"))) 1 -1))
(defun pedb-preview-dir ()
(substring (second (slime-eval '(swank:eval-and-grab-output "(directory-namestring pedb::*... | 6,709 | Common Lisp | .cl | 152 | 40.493421 | 177 | 0.671825 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | fa0ec180727a40428d7cafce6ddaa5b4c46528be6e39013d7945ce8305026887 | 17,914 | [
-1
] |
17,944 | env_esercizi.el | admich_scliba/tex/auto/env_esercizi.el | (TeX-add-style-hook
"env_esercizi"
(lambda ()
(TeX-add-symbols
"compito"
"makecompitotitle"
"mypagenumber"
"rfoot"
"infoform"
"printsoluzioni"
"olditem"
"var"
"dervar"
"dervarp"
"varp"))
:context)
| 248 | Common Lisp | .l | 16 | 11.3125 | 22 | 0.61039 | admich/scliba | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | c2a011a27d93d932bc2c7cd53bf5298864088e8246acb78110cb0374922ac690 | 17,944 | [
-1
] |
17,960 | rsa.lsp | ored95_rsa/rsa.lsp | ; ==================================
; GENERATE PRIME
; ==================================
; ******** LOOP version ********
; (defun divisible-by (number list)
; "return true if divisible by an element in the list"
; (loop for i in list
; thereis (= (mod number i) 0)
; )
; )
; ***** FUNCTIONAL version... | 3,677 | Common Lisp | .l | 114 | 29.280702 | 117 | 0.551177 | ored95/rsa | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 676262dba41524d2b0b21f6a8e76c351c037757d1cd6671a799cbc9c38191ae9 | 17,960 | [
-1
] |
17,976 | devin.lisp | ColinPitrat_CLispMisc/Devin/devin.lisp | (defun prompt-number (string)
(format t "~a: " string) (read nil 'eof nil))
(defun prompt-string (string)
(format t "~a: " string) (read-line))
(defun game-internal-loop (random-state)
(let ((answer (random 1000 random-state))
(max_essais 12))
; Uncomment to cheat
;(format t "~a~%" answer)
(... | 1,115 | Common Lisp | .lisp | 30 | 30.866667 | 109 | 0.564292 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 6175d51ea024326bca28b642a7183c8a031f8dfa3e33c45fa8f50150af5d8e35 | 17,976 | [
-1
] |
17,977 | pendu.lisp | ColinPitrat_CLispMisc/Pendu/pendu.lisp | (defun prompt-letter (string)
(format t "~a: " string)
(setf result (read-char))
(read-line)
(return-from prompt-letter result))
(defun choose-word (from)
(nth (random (length from)) from))
(defun known-word (word letters)
(map 'string (lambda (x) (if (find x letters) x #\_)) word))
(defun complete (word... | 1,705 | Common Lisp | .lisp | 43 | 34.744186 | 111 | 0.611985 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | e0d972846b7c9fa4d64534fd84cdb47b8fc7acb00d90a396a5d78036485bd1b0 | 17,977 | [
-1
] |
17,978 | test.lisp | ColinPitrat_CLispMisc/Pendu/test.lisp | (load 'asdf)
(asdf:load-system :xlunit)
(load "pendu.lisp")
(defclass pendu-test (xlunit:test-case) ())
(xlunit:def-test-method known-word-with-empty-letter-list ((xlunit:test pendu-test))
(xlunit:assert-equal (known-word "marathon" nil) "________"))
(xlunit:def-test-method known-word-with-s... | 1,369 | Common Lisp | .lisp | 18 | 65.166667 | 107 | 0.613721 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 54a6afa67a57db139512f7dbf89a1f2a67824ed712baf9314b6a30ace36256c1 | 17,978 | [
407689
] |
17,979 | main.lisp | ColinPitrat_CLispMisc/Sudoku/main.lisp | (load "sudoku.lisp")
(pretty-solve-sudoku "tests/empty.txt")
(pretty-solve-sudoku "grids/level1.txt")
(pretty-solve-sudoku "grids/level2.txt")
(pretty-solve-sudoku "grids/level3.txt")
(pretty-solve-sudoku "grids/level4.txt")
| 226 | Common Lisp | .lisp | 6 | 36.5 | 40 | 0.767123 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 8b101c16b2e494598e13e2c669de0a19d03e6d3370324fa2adfc33666a726dc8 | 17,979 | [
-1
] |
17,980 | sudoku.lisp | ColinPitrat_CLispMisc/Sudoku/sudoku.lisp | (defun parse-sudoku-line (line)
(nreverse (reduce #'(lambda (x y) (push y x)) line :initial-value nil)))
(defun load-sudoku (file)
(let ((sudoku nil))
(with-open-file (stream file :direction :input)
(do ((line (read-line stream nil) (read-line stream nil)))
((null line) (nreverse sudoku))
... | 3,200 | Common Lisp | .lisp | 82 | 34.195122 | 112 | 0.621971 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | f2eab4bcaa1e3c1b501a41fd8e170ff2df6e381e54e23a596d9fa2a8192bf4cd | 17,980 | [
-1
] |
17,981 | test.lisp | ColinPitrat_CLispMisc/Sudoku/test.lisp | (require "asdf")
(asdf:load-system :xlunit)
(load "sudoku.lisp")
(defclass sudoku-test (xlunit:test-case) ())
(xlunit:def-test-method parse-sudoku-empty-line ((xlunit:test sudoku-test))
(xlunit:assert-equal '(#\. #\. #\. #\. #\. #\. #\. #\. #\.) (parse-sudoku-line ".........")))
(xlunit:def-... | 7,018 | Common Lisp | .lisp | 81 | 72.925926 | 152 | 0.620995 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | c65b7fa43b334e1db554b45992bed922bf2175620929e95c2d1797c9ecba9785 | 17,981 | [
-1
] |
17,982 | main.lisp | ColinPitrat_CLispMisc/GameOfLife/main.lisp | (load "gameoflife.lisp")
(in-package :gameoflife)
;(load-and-show-evolution "board/pentadecathlon.txt" 16)
(show-evolution (board-randomize (make-instance 'gol :width 127 :height 20)) 1000)
| 192 | Common Lisp | .lisp | 4 | 46.5 | 82 | 0.768817 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 1b404798c3cf4c16556b08658f9f4274d919f9fb8c707c2fb4f03b7a6689ada1 | 17,982 | [
-1
] |
17,983 | gameoflife.lisp | ColinPitrat_CLispMisc/GameOfLife/gameoflife.lisp | (defpackage :gameoflife
(:use :common-lisp)
(:export :idx :gol :set-alive :set-dead :get-cell :get-neighbours-indices
:count-neighbours :next-state :all-indices :next-generation
:load-game-of-life :print-board :board-randomize :show-evolution
:load-and-show-evolution))
(in-package :gameoflife)
(defcla... | 3,784 | Common Lisp | .lisp | 108 | 31.046296 | 114 | 0.652257 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | c0e2267b838c6d4264184905532a834c7df7621c2fbc327fc5ef7461bd219de9 | 17,983 | [
-1
] |
17,984 | test.lisp | ColinPitrat_CLispMisc/GameOfLife/test.lisp | (load 'asdf)
(asdf:load-system :xlunit)
(load "gameoflife.lisp")
(defpackage :gameoflife-test
(:use :common-lisp :xlunit :gameoflife))
(in-package :gameoflife-test)
(defclass gameoflife-test (test-case) ())
(defmacro test-gameoflife (name expr)
`(def-test-method ,name ((test gameoflife-test)) ,expr))
(test-ga... | 5,185 | Common Lisp | .lisp | 124 | 34.403226 | 113 | 0.599364 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 61b59c07979cf07574c97491742fb98990bc1acc8af417d8f1fcaa4ff70a755b | 17,984 | [
-1
] |
17,985 | main.lisp | ColinPitrat_CLispMisc/LabyrinthSolver/main.lisp | (load "labyrinth-solver.lisp")
;(format t "50! = ~a" (factorial 50))
;(format t "~a~%" (load-labyrinth "test1.txt"))
(print-labyrinth (load-labyrinth "test1.txt"))
(format t "~a~%" (find-entrance (load-labyrinth "test1.txt")))
(format t "~a~%" (find-output (load-labyrinth "test1.txt")))
(let ((labyrinth (load-labyrint... | 604 | Common Lisp | .lisp | 12 | 48.916667 | 65 | 0.678511 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 820e9c18b2e58e8bbb731b5dfeac1269db496dbace61d6b84dbea7326df409db | 17,985 | [
-1
] |
17,986 | labyrinth-solver.lisp | ColinPitrat_CLispMisc/LabyrinthSolver/labyrinth-solver.lisp | (defun load-labyrinth (filename)
(with-open-file (stream filename :direction :input)
(do ((line (read-line stream nil) (read-line stream nil))
(labyrinth nil))
((null line) (nreverse labyrinth))
(push (reduce #'(lambda (x y) (push x y)) line :from-end t :initial-value nil) labyrinth))))
(defun prin... | 1,835 | Common Lisp | .lisp | 57 | 27.649123 | 98 | 0.621744 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | c74df9b8bf7c80d69c7fefc514e1b3ae3fbdc437158bd504a4075f490536684d | 17,986 | [
-1
] |
17,987 | test.lisp | ColinPitrat_CLispMisc/LabyrinthSolver/test.lisp | (load 'asdf)
(asdf:load-system :xlunit)
(load "labyrinth-solver.lisp")
(defclass labyrinth-solver-test (xlunit:test-case) ())
;(xlunit:def-test-method factorial-0-is-1 ((xlunit:test factorial-test))
; (xlunit:assert-equal (factorial 0) 1))
| 266 | Common Lisp | .lisp | 6 | 42.833333 | 72 | 0.680934 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 264e7d6d6e9233d040fdfb69e1f071242622868173c588ab92908ef5defb94e1 | 17,987 | [
-1
] |
17,988 | main.lisp | ColinPitrat_CLispMisc/Model/main.lisp | (load "factorial.lisp")
(loop for x from 1 to 50
do (format t "~a! = ~a~%" x (factorial:factorial x)))
| 110 | Common Lisp | .lisp | 3 | 33.333333 | 59 | 0.613208 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | d1fece1fded8537c98ec024afb774d9fd1e44e30726e02265b5e88aa89a7e7e9 | 17,988 | [
-1
] |
17,989 | factorial.lisp | ColinPitrat_CLispMisc/Model/factorial.lisp | (defpackage :factorial
(:use :common-lisp)
(:export :factorial))
(in-package :factorial)
(defun factorial (n)
(if (> n 1)
(* (factorial (- n 1)) n)
1))
| 169 | Common Lisp | .lisp | 8 | 18 | 29 | 0.613924 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 783f93ee9aac62187ec8dfd5726fbb7aa1efd0d4be287535ddc2e1e3e55173b8 | 17,989 | [
-1
] |
17,990 | test.lisp | ColinPitrat_CLispMisc/Model/test.lisp | (load 'asdf)
(asdf:load-system :xlunit)
(load "factorial.lisp")
(defpackage :factorial-test
(:use :common-lisp :xlunit :factorial))
(in-package :factorial-test)
(defclass factorial-test (test-case) ())
(defmacro test-factorial (name expr)
`(def-test-method ,name ((test factorial-test)) ,expr))
(test-factorial... | 842 | Common Lisp | .lisp | 20 | 39.65 | 78 | 0.765142 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 2571c7dd203818add15d34c2a5710098205d46a649a5dbc98ba6975a93efcae9 | 17,990 | [
-1
] |
18,001 | pentadecathlon.txt | ColinPitrat_CLispMisc/GameOfLife/board/pentadecathlon.txt | 11
18
00000000000
00000000000
00000000000
00000000000
00000000000
00001110000
00001010000
00001110000
00001110000
00001110000
00001110000
00001010000
00001110000
00000000000
00000000000
00000000000
00000000000
00000000000
| 222 | Common Lisp | .l | 20 | 10.1 | 11 | 1 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | f41c8fd74eeb6047b995a2275f447a5f2c38650c36f97d3a5a361bea9d235dcc | 18,001 | [
-1
] |
18,002 | pulsar.txt | ColinPitrat_CLispMisc/GameOfLife/board/pulsar.txt | 17
17
00000000000000000
00000000000000000
00001110001110000
00000000000000000
00100001010000100
00100001010000100
00100001010000100
00001110001110000
00000000000000000
00001110001110000
00100001010000100
00100001010000100
00100001010000100
00000000000000000
00001110001110000
00000000000000000
00000000000000000
| 312 | Common Lisp | .l | 19 | 15.421053 | 17 | 1 | ColinPitrat/CLispMisc | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 90787a5fdde82087bd6f22d63253c745f89f7867052c52f3c5eee642d9654a1c | 18,002 | [
-1
] |
18,023 | clasm.lisp | gentoomen_CLASM/clasm.lisp | (defun asm (&rest rest)
(mapcar (lambda (str) (progn (princ str)
(terpri)))
rest)
t)
(defun join-strings-with-comma (s1 s2)
(concatenate 'string s1 "," s2))
(defun operands-from-list (l)
(reduce #'join-strings-with-comma
(mapcar #'princ-to-string l)))
(defma... | 1,322 | Common Lisp | .lisp | 48 | 20.375 | 70 | 0.586797 | gentoomen/CLASM | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 9d1e17bb68c18c8219b85a0fe6d0018da6dbf149a84d920118d978eb5eba485f | 18,023 | [
-1
] |
18,040 | compile.lisp | clarkeaa_jsresume/compile.lisp | (require 'parenscript)
(in-package :parenscript)
(defun compile-fish ()
(with-open-file (ostr "fish.js"
:if-does-not-exist :create
:direction :output
:if-exists :supersede)
(let ((js (parenscript:ps-compile-file
"/Users/c... | 411 | Common Lisp | .lisp | 11 | 26.272727 | 58 | 0.532663 | clarkeaa/jsresume | 3 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 6ee9042058ad7806978a7521971d875126d254987ea63c7e746eda291af0827b | 18,040 | [
-1
] |
18,041 | fish.lisp | clarkeaa_jsresume/fish.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;
;;; fish resume
;;; (c) Aaron Clarke 2014
;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defvar *ctx* nil)
(defvar *width* 640)
(defvar *height* 480)
(defvar *position* 0)
(defvar *loc-widget-hei... | 6,015 | Common Lisp | .lisp | 152 | 32.75 | 82 | 0.53233 | clarkeaa/jsresume | 3 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | cb46ef755d4ff2f0820eb3591d43b9d2a5c015c32082cfc626f7b28c7559d446 | 18,041 | [
-1
] |
18,045 | index.html | clarkeaa_jsresume/index.html | <html>
<head>
<link href="jsresume.css" rel="stylesheet" type="text/css">
<script src="fish.js" type="text/javascript"></script>
<title>A. Clarke Resume</title>
</head>
<body onload="main();">
<div id="canvas-div">
<canvas id="resume-canvas" width=640 height=480>
The canvas element... | 1,280 | Common Lisp | .l | 31 | 35.387097 | 69 | 0.598879 | clarkeaa/jsresume | 3 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | f30a9a2bcdbc20809f4a9bced627f53961ebf08dfcdc9cf02648c37768e51aa6 | 18,045 | [
-1
] |
18,060 | menus.lisp | eadmund_cl-xdg/menus.lisp | ;;;; menus.lisp
;;;; Copyright (C) 2016 Robert A. Uhl
(in-package #:cl-xdg)
(defun dont-resolve-entities (a b)
(declare (ignore a b))
(flexi-streams:make-in-memory-input-stream nil))
(defun dtd-resolver (public-id system-id)
(declare (ignore system-id))
(cond
((find public-id '("-//freedesktop//DTD Menu... | 12,536 | Common Lisp | .lisp | 277 | 34.761733 | 89 | 0.514132 | eadmund/cl-xdg | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 81b5a271fb4b418cdb12c9b90e3265b5bd1d1e38f957a03a99a7748602704f7f | 18,060 | [
-1
] |
18,061 | package.lisp | eadmund_cl-xdg/package.lisp | ;;;; package.lisp
;;;; Copyright (C) 2016 by Robert A. Uhl
(in-package "CL-USER")
(defpackage #:cl-xdg
(:use #:cl)
(:export #:load-desktop-file
#:load-desktop-files
#:find-desktop-file-by-id
#:desktop-file
#:desktop-files
#:id
#:path
#... | 1,581 | Common Lisp | .lisp | 64 | 14.046875 | 40 | 0.405423 | eadmund/cl-xdg | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 4c4f663dbcffad672abb2face347525b23341032b67d4aa345d78f46422becd4 | 18,061 | [
-1
] |
18,062 | ordered-hash-table.lisp | eadmund_cl-xdg/ordered-hash-table.lisp | ;;;; ordered-hash-table.lisp
;;;; Copyright (C) 2016 Robert A. Uhl
(in-package :cl-xdg)
(defclass ordered-hash-table ()
((hash :type hash-table
:initarg :hash)
(keys :type (vector t 1)
:initarg :keys)))
(defun make-ordered-hash-table (&key
(test 'eql)
... | 1,930 | Common Lisp | .lisp | 43 | 32.186047 | 75 | 0.547632 | eadmund/cl-xdg | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 54a3cbfc08ea8b35c17d0f7ebe2e0f09cec9e0889213c4b5f064f81b9184a93f | 18,062 | [
-1
] |
18,063 | desktop.lisp | eadmund_cl-xdg/desktop.lisp | ;;;; cl-xdg.lisp
;;;; cl-xdg - freedesktop.org desktop file handling
;;;; Copyright (C) 2016 Robert A. Uhl
;;;;
;;;; 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 3 of the... | 10,809 | Common Lisp | .lisp | 238 | 33.941176 | 124 | 0.548289 | eadmund/cl-xdg | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 97015959281cee85eb879595bd12a1a0f30f24789c8989cc82146428cecfcefe | 18,063 | [
-1
] |
18,064 | test.lisp | eadmund_cl-xdg/test.lisp | ;;;; test.lisp
;;;; Copyright (C) 2016 by Robert A. Uhl
(in-package "CL-USER")
(defpackage #:cl-xdg-test
(:use #:cl #:fiveam #:cl-xdg))
(in-package #:cl-xdg-test)
(def-suite cl-xdg)
(in-suite cl-xdg)
(eval-when (:compile-toplevel :load-toplevel :execute)
(defun canonicalise-env-binding (binding)
;; user bi... | 3,483 | Common Lisp | .lisp | 66 | 45.227273 | 100 | 0.62232 | eadmund/cl-xdg | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 2aafb5ce3930ba960b9a0f95be48e23c2eb15e545eb2eb0dd24d6fdda1f52822 | 18,064 | [
-1
] |
18,065 | cl-xdg.asd | eadmund_cl-xdg/cl-xdg.asd | ;;;; cl-xdg.asd
;;;; Copyright (C) 2016 by Robert A. Uhl
(asdf:defsystem #:cl-xdg
:description "freedesktop.org standards handling"
:author "Bob Uhl <bob.denver.co@gmail.com>"
:license "GNU General Public License"
:serial t
:depends-on (#:uiop
#:split-sequence
#:parse-number
... | 1,347 | Common Lisp | .asd | 33 | 24.939394 | 82 | 0.4375 | eadmund/cl-xdg | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | a024f22477aacfe257ed89aca83c2952537d6c4473a75f7e2685ecdd5ce4bd4e | 18,065 | [
-1
] |
18,073 | applications.menu | eadmund_cl-xdg/test/menus/applications.menu | <!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<!--
taken from https://specifications.freedesktop.org/menu-spec/menu-spec-1.1.html#example
-->
<Menu>
<Name>Applications</Name>
<Directory>Applications.directory</Directory>
<DefaultAppDirs/>
<D... | 1,047 | Common Lisp | .l | 41 | 22.195122 | 87 | 0.703815 | eadmund/cl-xdg | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 46542b4a4b0853b6026f28e2a990a666dc5371d7d12e3051b69908c0d5d3a1db | 18,073 | [
-1
] |
18,074 | menu-latest.dtd | eadmund_cl-xdg/dtds/menu-latest.dtd | <!-- For explanations see http://www.freedesktop.org/standards/menu-spec -->
<!ELEMENT Menu (
Name, (
Directory
| DefaultAppDirs
| AppDir
| DefaultDirectoryDirs
| DirectoryDir
| LegacyDir
| KDELegacyDirs
| MergeFile
| DefaultMergeDirs
| MergeDir
| OnlyUnallocated
| NotOnlyUnallocated
| Deleted
| NotDel... | 2,220 | Common Lisp | .l | 68 | 31.058824 | 76 | 0.738764 | eadmund/cl-xdg | 3 | 0 | 1 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 2026d6866c5f769ec4e34a630d6daa456c375a89ce879fadbff33cb87d6d69b0 | 18,074 | [
-1
] |
18,089 | package.lisp | iamgreaser_orionsfurnace-cl/src/package.lisp | ;;;; package.lisp
(defpackage #:orions-furnace
(:use #:cl #:alexandria)
(:export #:run))
(in-package #:orions-furnace)
(defmacro standard-optimisation-settings ()
(progn))
;; Feel free to play around with these if it starts sucking in one direction --GM
(defmacro standard-optimisation-settings ()
`(declaim ... | 396 | Common Lisp | .lisp | 10 | 37.4 | 87 | 0.722513 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | f1a90419a801a3a07bf35cfb79e0a032150ce797d881f1249b5e1064d98b5549 | 18,089 | [
-1
] |
18,090 | orions-furnace.lisp | iamgreaser_orionsfurnace-cl/src/orions-furnace.lisp | ;;;; orions-furnace.lisp
(in-package #:orions-furnace)
(standard-optimisation-settings)
(defparameter *base-screen-width* 640)
(defparameter *base-screen-height* 360)
(defparameter *screen-scale* 2)
(defparameter *cell-w* 24)
(defparameter *cell-h* 24)
(defparameter *cam-w-cells* 15)
(defparameter *cam-h-cells* 15)... | 1,227 | Common Lisp | .lisp | 32 | 37.03125 | 76 | 0.69789 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 11dd271ff3b6e1279554b790ff3221e2a4265c9f8be40d361acd9b4708018669 | 18,090 | [
-1
] |
18,091 | board.lisp | iamgreaser_orionsfurnace-cl/src/board.lisp | (in-package #:orions-furnace)
(standard-optimisation-settings)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Generics
(defgeneric cell-on-board (board cx cy)
(:documentation "Given a board, does the given cell exist?"))
(defgeneric can-enter-cell (board entity cx cy)
(:document... | 7,027 | Common Lisp | .lisp | 164 | 33.176829 | 101 | 0.555117 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | a5ca6158f2f1cfc29a473141e0c4ca92066e92ce344a224f32b370ae139a2aa1 | 18,091 | [
-1
] |
18,092 | tick.lisp | iamgreaser_orionsfurnace-cl/src/tick.lisp | ;;;; tick.lisp
(in-package #:orions-furnace)
(standard-optimisation-settings)
(defparameter *ticks-per-second* 60)
(defparameter *last-tick-secs* nil)
(defparameter *last-tick-frames* nil)
(defun run-ticks ()
(let* ((sec-current (/ (get-internal-real-time) internal-time-units-per-second))
(frame-current (... | 1,224 | Common Lisp | .lisp | 33 | 32.212121 | 82 | 0.632291 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | aa30b3913c698d0f3758b48ce39fd6b049fb25b8b53aef9e24c885cf18514f9f | 18,092 | [
-1
] |
18,093 | classes.lisp | iamgreaser_orionsfurnace-cl/src/classes.lisp | (in-package #:orions-furnace)
(standard-optimisation-settings)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Serialisation
(defmacro define-serial-class (class-name (&rest subclasses)
(&body field-defs)
... | 3,400 | Common Lisp | .lisp | 89 | 28.516854 | 91 | 0.525917 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 5a32b775d3223cfe868dcd5573bd4e32dc31af32990b1d4f865712ad60756c87 | 18,093 | [
-1
] |
18,094 | run.lisp | iamgreaser_orionsfurnace-cl/src/run.lisp | ;;;; run.lisp
(in-package #:orions-furnace)
(standard-optimisation-settings)
(defun main ()
(sdl2:with-init (:video)
(with-overall-rects-pool ()
(sdl2:with-window (*window* :title "Orion's Furnace (Lisp version)"
:w (* *base-screen-width* *screen-scale*)
... | 2,139 | Common Lisp | .lisp | 61 | 24.704918 | 77 | 0.504112 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | fffe8821d6d31d48096d7014201e424ac9efe3384203513ded4228a60c6b2a15 | 18,094 | [
-1
] |
18,095 | draw.lisp | iamgreaser_orionsfurnace-cl/src/draw.lisp | ;;;; draw.lisp
(in-package #:orions-furnace)
(standard-optimisation-settings)
(defun draw-frame ()
(with-render-target (*renderer* *backbuf*)
;; Clear screen
(sdl2:set-render-draw-color *renderer* 85 85 255 0)
(sdl2:render-clear *renderer*)
;; Draw things
(draw-playfield)
(draw-sidebar)
... | 3,912 | Common Lisp | .lisp | 94 | 33.978723 | 79 | 0.560084 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | df8f1377b6d6c45d3eda41c3bc88f69367d97c6abe014353180b70787d9bbc9d | 18,095 | [
-1
] |
18,096 | macros.lisp | iamgreaser_orionsfurnace-cl/src/macros.lisp | ;;;; macros.lisp
(in-package #:orions-furnace)
(standard-optimisation-settings)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; SDL2 WITH- helpers
(defmacro with-image-lib ((&key (formats '(:png))) &body body)
"Temporarily loads the SDL2_Image library."
`(unwind-protect
(pr... | 3,697 | Common Lisp | .lisp | 93 | 34.053763 | 91 | 0.570911 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 9a07d855e6bdb114a8a01b8244bbd448e80d083880edfa5cae59611cdd86117c | 18,096 | [
-1
] |
18,097 | assets.lisp | iamgreaser_orionsfurnace-cl/src/assets.lisp | ;;;; assets.lisp
(in-package #:orions-furnace)
(standard-optimisation-settings)
(defparameter *img-floor* ())
(defparameter *asset-image-tuples*
'((*gfx-unknown* #p"dat/gfx/unknown.png")
(*gfx-tiles-floor001* #p"dat/gfx/tiles/floor001.png")
(*gfx-tiles-floortile001* #p"dat/gfx/tiles/floortile001.png")
... | 2,101 | Common Lisp | .lisp | 53 | 34.320755 | 84 | 0.654563 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 113cddb55b9acb296f638c23e0e0f783ad5546dd5d882820788d37a8d46449c5 | 18,097 | [
-1
] |
18,098 | player.lisp | iamgreaser_orionsfurnace-cl/src/entity/player.lisp | (in-package #:orions-furnace)
(standard-optimisation-settings)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-serial-class player-entity (dir4-entity entity)
()
(:documentation "A player entity."))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | 451 | Common Lisp | .lisp | 9 | 48 | 76 | 0.497706 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | d5a27e31442b5cb4cc89ab4c673021c7c74b3dc920ddff32b77f9943725ed239 | 18,098 | [
-1
] |
18,099 | item.lisp | iamgreaser_orionsfurnace-cl/src/entity/item.lisp | (in-package #:orions-furnace)
(standard-optimisation-settings)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-serial-class item-entity (entity)
()
(:documentation "An entity that can be picked up."))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | 323 | Common Lisp | .lisp | 7 | 44 | 76 | 0.387821 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 9d3cbda758a618cc7922c5849f0843475d9cc7719d04f768691b044805af5aec | 18,099 | [
-1
] |
18,100 | base.lisp | iamgreaser_orionsfurnace-cl/src/entity/base.lisp | (in-package #:orions-furnace)
(standard-optimisation-settings)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; Entity generics
(defgeneric entity-vis-px (entity)
(:documentation "Visual pixel X coordinate."))
(defgeneric entity-vis-py (entity)
(:documentation "Visual pixel Y coor... | 5,959 | Common Lisp | .lisp | 142 | 34.626761 | 131 | 0.605245 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | f27c75ded256583359eaa9719ec66396954402a319961d4ab10033f01fb736d5 | 18,100 | [
-1
] |
18,101 | floor-tile.lisp | iamgreaser_orionsfurnace-cl/src/entity/floor-tile.lisp | (in-package #:orions-furnace)
(standard-optimisation-settings)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(define-serial-class floor-tile-entity (item-entity)
()
(:documentation "A floor tile item."))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
... | 396 | Common Lisp | .lisp | 8 | 47.375 | 76 | 0.462141 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | fa5cca111184edf66d049537f8052c3a3731fcdc399a21e445a0bbfeaf0c76e1 | 18,101 | [
-1
] |
18,102 | dir4.lisp | iamgreaser_orionsfurnace-cl/src/entity/mixin/dir4.lisp | (in-package #:orions-furnace)
(standard-optimisation-settings)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; TODO: Make an enum system for dir --GM
(define-serial-class dir4-entity (entity)
((dir :type symbol
:accessor entity-dir
:initform :south
:initarg :... | 972 | Common Lisp | .lisp | 25 | 31.88 | 76 | 0.481403 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 59b2d168202b9d21a7e9f5157b94d0a7e59cb0312d645761252a61bd9cf46893 | 18,102 | [
-1
] |
18,103 | orions-furnace.asd | iamgreaser_orionsfurnace-cl/orions-furnace.asd | ;;;; orions-furnace.asd
(asdf:defsystem #:orions-furnace
:description "Describe orions-furnace here"
;; :author "Your Name <your.name@example.com>"
:license "AGPLv3+"
:version "0.0.0"
:serial t
:depends-on (#:alexandria
#:bordeaux-threads
#:cffi
#:sdl2
... | 1,096 | Common Lisp | .asd | 34 | 20.058824 | 63 | 0.461248 | iamgreaser/orionsfurnace-cl | 3 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 032fd4c759cde5159e656c7c9626356910936265f07aaee2befd99ef1c9f6d92 | 18,103 | [
-1
] |
18,133 | roswell.lisp | jstoddard_roswell/roswell.lisp | ;;;;---------------------------------------------------------------------------
;;;; roswell.lisp
;;;; A game for the 2011 Spring Lisp Game Jam
;;;; Copyright (C) 2011 Jeremiah Stoddard
;;;;
;;;; This program is free software: you can redistribute it and/or modify
;;;; it under the terms of the GNU General Publ... | 16,125 | Common Lisp | .lisp | 365 | 38.843836 | 83 | 0.636127 | jstoddard/roswell | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | b0235302a3af2506c6ac9d4a7283998b97d4eed952fbf79541b6ff81ca05f9f2 | 18,133 | [
-1
] |
18,134 | roswell.asd | jstoddard_roswell/roswell.asd | ;;;; roswell.asd
(asdf:defsystem #:roswell
:serial t
:depends-on (#:lispbuilder-sdl)
:components ((:file "package")
(:file "roswell")))
| 159 | Common Lisp | .asd | 6 | 21.666667 | 34 | 0.609272 | jstoddard/roswell | 3 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:27:44 AM (Europe/Amsterdam) | 8982dd214144304b990178394aaebff51caefdf485b6e0bb252c1a79f209d497 | 18,134 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.