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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
23,096 | funcion-01.lisp | josrr_lisp2js/pruebas/funcion-01.lisp | (defun fibonacci-recursive (n)
(if (< n 2)
n
(+ (fibonacci-recursive (- n 2)) (fibonacci-recursive (- n 1)))))
(defun fibonacci-tail-recursive ( n &optional (a 0) (b 1))
(if (= n 0)
a
(fibonacci-tail-recursive (- n 1) b (+ a b))))
| 260 | Common Lisp | .lisp | 8 | 27.875 | 71 | 0.561753 | josrr/lisp2js | 1 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 89ef0b0a6dd41e4d07c528585f4a4285d19f20b484a8850c17517b546497ff03 | 23,096 | [
-1
] |
23,097 | lisp2js.asd | josrr_lisp2js/lisp2js.asd | ;;;; -*- coding: utf-8-unix; -*-
;;;; Copyright (C) 2016 José Ronquillo Rivera <josrr@ymail.com>
;;;; This file is part of lisp2js.
;;;;
;;;; lisp2js 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, eithe... | 1,090 | Common Lisp | .asd | 24 | 43.708333 | 73 | 0.723845 | josrr/lisp2js | 1 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 8562641c97eda364ae3713a4d8d92f4dec923b86aaa626ff0b28e61776233b78 | 23,097 | [
-1
] |
23,118 | alist-plist.lisp | phoe-trash_lispfurc/alist-plist.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; LispFurc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Copyright 2015, Michal "phoe" Herda.
;;;;
;;;; The whole project is licensed under GPLv3.
;;;;
(in-package #:lispfurc)
;;;;========================================================... | 4,527 | Common Lisp | .lisp | 99 | 42.060606 | 95 | 0.67196 | phoe-trash/lispfurc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 7a0e08e9d5a59d05d8373e9010e5e5eb5010b72f4ba64676b3fed52b13b2d403 | 23,118 | [
-1
] |
23,119 | color-code.lisp | phoe-trash_lispfurc/color-code.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; LispFurc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Copyright 2015, Michal "phoe" Herda.
;;;;
;;;; The whole project is licensed under GPLv3.
;;;;
(in-package #:lispfurc)
;;;;========================================================... | 24,073 | Common Lisp | .lisp | 212 | 110.811321 | 144 | 0.559082 | phoe-trash/lispfurc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a0e2c6316caa842595f06477a236cbb730e8b59dfe8009bec35bd5c2f539ff73 | 23,119 | [
-1
] |
23,120 | structure.lisp | phoe-trash_lispfurc/structure.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; LispFurc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Copyright 2015, Michal "phoe" Herda.
;;;;
;;;; The whole project is licensed under GPLv3.
;;;;
(in-package #:lispfurc)
;;;;========================================================... | 1,853 | Common Lisp | .lisp | 50 | 33.52 | 93 | 0.61423 | phoe-trash/lispfurc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 94919b1802a7bb5b8a3366e8ae4707b5d12f86d99c7811a866aabb9781e76e58 | 23,120 | [
-1
] |
23,121 | base-220-95.lisp | phoe-trash_lispfurc/base-220-95.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; LispFurc
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Copyright 2015, Michal "phoe" Herda.
;;;;
;;;; The whole project is licensed under GPLv3.
;;;;
(in-package #:lispfurc)
;;;;========================================================... | 1,513 | Common Lisp | .lisp | 43 | 31.488372 | 66 | 0.545579 | phoe-trash/lispfurc | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 9c4dfe517fb9aa72cfcfa9ec46595d39c7c5941369389d16d44702cc1dcb63b0 | 23,121 | [
-1
] |
23,141 | package.lisp | phoe-trash_lispfurcproxy/package.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; LispFurcProxy
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Copyright 2015, Michal "phoe" Herda.
;;;;
;;;; The whole project is licensed under GPLv3.
;;;;
(defpackage #:lispfurcproxy
(:use #:cl
#:bordeaux-threads
#:usocket
#:itera... | 384 | Common Lisp | .lisp | 15 | 24 | 59 | 0.480978 | phoe-trash/lispfurcproxy | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 090f1c4ce680e13c10f9094135939aa408f8f2f5010f930201ca74e5801935cf | 23,141 | [
-1
] |
23,142 | lispfurcproxy.lisp | phoe-trash_lispfurcproxy/lispfurcproxy.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; LispFurcProxy
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Copyright 2015, Michal "phoe" Herda.
;;;;
;;;; The whole project is licensed under GPLv3.
;;;;
(in-package #:lispfurcproxy)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | 4,591 | Common Lisp | .lisp | 124 | 33.524194 | 71 | 0.589986 | phoe-trash/lispfurcproxy | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | ce4654477104b2f01e18c7d905aa80fe3d067c2209a6c08ffda937fbcebbda81 | 23,142 | [
-1
] |
23,143 | config.lisp | phoe-trash_lispfurcproxy/config.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; LispFurcProxy
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Copyright 2015, Michal "phoe" Herda.
;;;;
;;;; The whole project is licensed under GPLv3.
;;;;
(in-package #:lispfurcproxy)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | 613 | Common Lisp | .lisp | 19 | 29.157895 | 59 | 0.458545 | phoe-trash/lispfurcproxy | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 4bc5341d8a9eefdf17bf5e095fcab6f1d5a247895acdf6de0e798f22e8eba8c8 | 23,143 | [
-1
] |
23,144 | socket-reader.lisp | phoe-trash_lispfurcproxy/socket-reader.lisp | ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; LispFurcProxy
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;; Copyright 2015, Michal "phoe" Herda.
;;;;
;;;; The whole project is licensed under GPLv3.
;;;;
(in-package :lispfurcproxy)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;... | 2,165 | Common Lisp | .lisp | 61 | 31.311475 | 83 | 0.622254 | phoe-trash/lispfurcproxy | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 91a4438da7dc2a714cadd9312ae024361dc020131493d24c812d4308ed7f0431 | 23,144 | [
-1
] |
23,145 | lispfurcproxy.asd | phoe-trash_lispfurcproxy/lispfurcproxy.asd | ;;;; lispfurcproxy.asd
(asdf:defsystem #:lispfurcproxy
:description "Furcadia DS processor and proxy written in Common Lisp"
:author "Michal \"phoe\" Herda <phoe@openmailbox.org>"
:license "GPLv3"
:depends-on (#:usocket
#:flexi-streams
#:iterate
#:trivial-features
#:external-pro... | 523 | Common Lisp | .asd | 17 | 24.294118 | 71 | 0.625 | phoe-trash/lispfurcproxy | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 630505129df102223373ee19399ca7c3037ce308022fd886005265b61bd5fc13 | 23,145 | [
-1
] |
23,165 | lispbot.lisp | softpunk_lispbot/lispbot.lisp | (proclaim '(optimize (speed 0) (safety 3) (debug 3) (space 0)))
;(declaim #+sbcl(sb-ext:muffle-conditions style-warning))
;(declaim #+sbcl(sb-ext:muffle-conditions warning))
;; TODO
;; [x] switch over to destructuring-match for give and award
;; [ ] make a more general inventory system
;; [ ] note/definition thing
;; ... | 13,750 | Common Lisp | .lisp | 294 | 37.329932 | 100 | 0.575492 | softpunk/lispbot | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 0c01ab529be8b12eb8e3d616137160402f7892b3995b4cf755b59eafc329058d | 23,165 | [
-1
] |
23,166 | lispbot.asd | softpunk_lispbot/lispbot.asd | (asdf:defsystem "lispbot"
:serial t
:version "0.1"
:author "Dylan Ball <arathnim@gmail.com>"
:maintainer "Dylan Ball <arathnim@gmail.com>"
:description "cute irc bot"
:depends-on (alexandria cl-store cl-ppcre iterate anaphora cl-irc destructuring-match)
:components ((:file "lispbot")))
| 294 | Common Lisp | .asd | 8 | 34.875 | 87 | 0.751748 | softpunk/lispbot | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | fc397f053213648af2a25b9ec68944e235b86a1eb9981ebc3e5fe7ba76785a54 | 23,166 | [
-1
] |
23,183 | GLOL.lisp | SoyOscarRH_AIWithLisp/UninformSearch/GLOL.lisp | ;;;======================================================================================
;;; GLOL.lisp
;;; Resuelve el problema de Granjero, lobo, oveja y legumbres con
;;; búsqueda ciega: a lo profundo y a lo ancho.
;;;
;;; Representación de los estados:
;;; Lista con dos sublistas interna... | 14,699 | Common Lisp | .lisp | 254 | 51.84252 | 139 | 0.515488 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | d59fa0154cfd3274e11e3f13a1ed627dee0b374514876f827cfd1469f09b4aa3 | 23,183 | [
-1
] |
23,184 | Frogs.lisp | SoyOscarRH_AIWithLisp/UninformSearch/Frogs.lisp | ;;;======================================================================================
;;; GLOL.lisp
;;; Resuelve el problema de las 6 ranas / ranas saltarinas por
;;; búsqueda ciega: a lo profundo y a lo ancho.
;;;
;;; Representación de los estados:
;;; Lista con 7 elementos, los elemento... | 13,994 | Common Lisp | .lisp | 240 | 51.545833 | 139 | 0.518234 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 704f6f1f9d267386d56a13897c86df1f7fe89043603de302ed66ea247432895f | 23,184 | [
-1
] |
23,185 | NineMensMorris.lisp | SoyOscarRH_AIWithLisp/NineMensMorris/NineMensMorris.lisp | ;;; NineMensMorris.lisp
;;;
;;; Oscar Andres Rosas Hernandez
;;; a - - b - - c
;;; | d - e - f |
;;; | | g h i | |
;;; j k l + m n o
;;; | | p q r | |
;;; | s - t - u |
;;; v - - w - - x
;;; ==================================================
;;; ===... | 9,079 | Common Lisp | .lisp | 249 | 29.385542 | 111 | 0.489189 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 746e2c67284073f3a1ccfe887f0922f11485329b8b37b29a6a3f6a7ba30803f7 | 23,185 | [
-1
] |
23,186 | rules example 1.lisp | SoyOscarRH_AIWithLisp/MicroMundo/rules example 1.lisp | ;Muchas muertes por inanición
/*
Manadas muy grandes
*/
;Regla de inicialización de entidades
(defrule start
:group
:initialization
:when
:do
(set-entities :herbivore 15 :desert)
(set-entities :carnivore 15 :desert)
(set-entities :scavenger 15 :desert)
)
;Regla para recuperar puntos :food
(defrule f... | 6,311 | Common Lisp | .lisp | 191 | 29.790576 | 99 | 0.698756 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 06fbaf939ee2efbc2ca34ccc3724370b5fbf14ea710e64d8209a1f51bc431d7f | 23,186 | [
-1
] |
23,187 | Completov2.lisp | SoyOscarRH_AIWithLisp/MicroMundo/Completov2.lisp | ; ==== Start rule (create 10 herbivores) ====
(defrule start
:group :initialization
:when
:do
(set-entities :herbivore 3 :grass)
(set-entities :carnivore 3 :desert)
(set-entities :scavenger 3 :desert))
(defrule move
:group :herbivores
:when
(search-cell @cell1
(equal :desert (get-cell-type ... | 2,217 | Common Lisp | .lisp | 82 | 23.743902 | 80 | 0.670588 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 94c96ef5cc0e66ab1358d43d84ac801c3c54a5216d1434e01a83f7424f14a701 | 23,187 | [
-1
] |
23,188 | rules example 2.lisp | SoyOscarRH_AIWithLisp/MicroMundo/rules example 2.lisp | ;Manadas de herbívoros y comiendo carroñeros
;Regla de inicialización de entidades
(defrule start
:group
:initialization
:when
:do
(set-entities :herbivore 5 :desert)
(set-entities :carnivore 5 :desert)
(set-entities :scavenger 5 :desert)
)
;Regla para recuperar puntos de :food
(defrule food-herbivores
:... | 6,448 | Common Lisp | .lisp | 192 | 30.838542 | 99 | 0.711279 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 54cecb9fa96595905d0436a1ddbcc37921f50b5ec0c7d69abb7a94fa02c8075b | 23,188 | [
-1
] |
23,189 | HerbivorosCastrados.lisp | SoyOscarRH_AIWithLisp/MicroMundo/HerbivorosCastrados.lisp | ; ==== Start rule (create 10 herbivores) ====
(defrule start
:group :initialization
:when
:do (set-entities :herbivore 3 :desert))
(defrule move
:group :herbivores
:when
(search-cell @cell1
(equal :desert (get-cell-type @cell1))
(not (area-around @cell1 :water))
(equal 0 (get-cell-entity-type-number... | 2,009 | Common Lisp | .lisp | 66 | 27.242424 | 80 | 0.678369 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 2b66c189c3f181f84e7bf22eadc3691ebd81db8e03c325c1c3391d0edaa77b57 | 23,189 | [
-1
] |
23,190 | CompletoSpecialForLagoon.lisp | SoyOscarRH_AIWithLisp/MicroMundo/CompletoSpecialForLagoon.lisp | ; ==== Start rule (create 10 herbivores) ====
(defrule start
:group :initialization
:when
:do
(set-entities :herbivore 3 :grass)
(set-entities :carnivore 3 :desert)
(set-entities :scavenger 3 :desert))
(defrule move
:group :herbivores
:when
(search-cell @cell1
(equal :desert (get-cell-type ... | 2,476 | Common Lisp | .lisp | 91 | 23.912088 | 80 | 0.663016 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 080b5ddec0ccb7dea54f2c0ea8fd02d54bcb6fe1fcbc8209e14a98af09f5ade5 | 23,190 | [
-1
] |
23,191 | test.lisp | SoyOscarRH_AIWithLisp/MicroMundo/test.lisp | ; ==== Start rule (create 10 herbivores) ====
(defrule start
:group :initialization
:when
:do (set-entities :herbivore 10 :desert))
(defrule move-dos
:group :herbivores
:when
(view-field-vision @id1
(> 2 (get-entity-type-count @id1 :herbivore))
(equal :desert (get-cell-type (get-entity-coordinates @id1))... | 391 | Common Lisp | .lisp | 13 | 27.769231 | 65 | 0.703704 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | defe677b815de6733a128cdb0ad381cec3f22ae290c00fd2d069cf61be192fab | 23,191 | [
-1
] |
23,195 | BestFS-3D.lisp | SoyOscarRH_AIWithLisp/Exam1/BestFS-3D.lisp | (load "maze_lib.lisp")
;;; BestF.lisp
;;; Resuelve el problema de los laberintos en 3D usando BEST First Search
;;;
;;; Representación de los estados:
;;; Lista con dos elementos: Un valor de aptitud y una lista (x, y) de su posicion
;;; (aptitud (x y z))
;;;
;;; Oscar Andres Rosas Hernandez
;;; ======... | 11,637 | Common Lisp | .lisp | 298 | 31.312081 | 128 | 0.48674 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 5bceb296dfaa31b17102d14d0fb3d465db988f70a75def811193fac8ad19a655 | 23,195 | [
-1
] |
23,196 | AStar-2D.lisp | SoyOscarRH_AIWithLisp/Exam1/AStar-2D.lisp | (load "maze_lib.lisp")
;;; BestF.lisp
;;; Resuelve el problema de los laberintos usando A*
;;;
;;; Representación de los estados:
;;; Lista con dos elementos: Un valor de aptitud y una lista (x, y) de su posicion
;;; (aptitud (x y))
;;;
;;; Oscar Andres Rosas Hernandez
;;; ==============================... | 15,120 | Common Lisp | .lisp | 362 | 33.870166 | 127 | 0.504216 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | f847a988c6d9e86d81eb3d77f9ac507b2ba25e068d3052f46a274cd3905701ff | 23,196 | [
-1
] |
23,197 | BestFS-2D.lisp | SoyOscarRH_AIWithLisp/Exam1/BestFS-2D.lisp | (load "maze_lib.lisp")
;;; BestF.lisp
;;; Resuelve el problema de los laberintos usando BEST First Search
;;;
;;; Representación de los estados:
;;; Lista con dos elementos: Un valor de aptitud y una lista (x, y) de su posicion
;;; (aptitud (x y))
;;;
;;; Oscar Andres Rosas Hernandez
;;; ==============... | 13,042 | Common Lisp | .lisp | 307 | 34.905537 | 128 | 0.495562 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | d8836fbf466a99a1f8d733ef18874f9aa5a4d28fc6d32cfe68a9bdb0bcbc7981 | 23,197 | [
-1
] |
23,199 | AStar-3D.lisp | SoyOscarRH_AIWithLisp/Exam1/AStar-3D.lisp | (load "maze_lib.lisp")
;;; BestF.lisp
;;; Resuelve el problema de los laberintos usando A*
;;;
;;; Representación de los estados:
;;; Lista con dos elementos: Un valor de aptitud y una lista (x, y) de su posicion
;;; (aptitud (x y))
;;;
;;; Oscar Andres Rosas Hernandez
;;; ==============================... | 13,789 | Common Lisp | .lisp | 356 | 31.19382 | 127 | 0.506001 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 510ec1f5f0ee25f0efc279836527b7e94d93aac268c1eea98c6eb898b62b03ad | 23,199 | [
-1
] |
23,200 | MiniMaxAlphaBeta.lisp | SoyOscarRH_AIWithLisp/Gato/MiniMaxAlphaBeta.lisp | ;;; MiniMaxAlphaBeta.lisp
;;; Resuelve el problema de gato usando minimax
;;;
;;; Oscar Andres Rosas Hernandez
;;; ==================================================
;;; ========= FUNCIONES AUXILIARES =========
;;; ==================================================
(defun copy-array (array &key (element-t... | 7,361 | Common Lisp | .lisp | 212 | 27.377358 | 111 | 0.573592 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | aca620aeb2787f35a4f8633aca0f997566d934483257b90706660fef7e79aeef | 23,200 | [
-1
] |
23,201 | EjemploGato4x4.lisp | SoyOscarRH_AIWithLisp/Gato/EjemploGato4x4.lisp | ;;;============================================================================================================
;;; GATO4X4
;;; Este es un ejemplo del uso de los elementos que debe incluir el agente jugador en
;;; su código.
;;;
;;; Función tictactoe:
;;; Debe existir una función llamada tictactoe... | 2,325 | Common Lisp | .lisp | 42 | 52.47619 | 111 | 0.612245 | SoyOscarRH/AIWithLisp | 1 | 0 | 0 | GPL-2.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 284518ce6ae766e5a0d0b9b8099e767da16dad1a47d1cb4ab7b9faafe98a0bb0 | 23,201 | [
83417
] |
23,236 | dreamhost.lisp | adventuring_dreamhost_lisp/dreamhost.lisp | (defpackage dreamhost
(:use :cl :alexandria :drakma :puri)
(:export
#:*api-key*
#:dns-add-record
#:dns-list-records
#:dns-remove-record
))
(in-package :dreamhost)
(defvar *api-key* (values)
"The Dreamhost API Key to be used.
Generate one in the Panel at
https://panel.dreamhost.com/?tree=hom... | 9,045 | Common Lisp | .lisp | 240 | 35.8 | 103 | 0.766323 | adventuring/dreamhost.lisp | 1 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 5532e1c0089d129182e5c3d3f8bcfa6df3c4f0adb718dcc272c0fd7387c69a0f | 23,236 | [
-1
] |
23,237 | dreamhost.asd | adventuring_dreamhost_lisp/dreamhost.asd | (cl:in-package :cl-user)
(asdf:defsystem dreamhost
:version "0.1"
:author "Bruce-Robert Pocock <brpocock@ciwta.org>"
:license "AGPL v3+"
:description "Access the Dreamhost API"
:depends-on (
:drakma)
:components ((:file "dreamhost")))
| 264 | Common Lisp | .asd | 9 | 25.111111 | 52 | 0.671937 | adventuring/dreamhost.lisp | 1 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | ecd847d458ab3aaaedce84189c17a767b7a0b3aea2f57570fa823cfe140d7244 | 23,237 | [
-1
] |
23,254 | main.lisp | lambdanil_lispy-tree/main.lisp | (defmacro make-vector (&aux type)
(if type
`(make-array 0 :fill-pointer 0 :adjustable t :element-type ,type)
`(make-array 0 :fill-pointer 0 :adjustable t)))
(defun vector-push-resize (var vec)
(adjust-array vec (1+ (array-dimension vec 0)))
(vector-push var vec))
(defun delete-nth (i seq)
"Delete nth ... | 2,951 | Common Lisp | .lisp | 81 | 30.037037 | 83 | 0.60238 | lambdanil/lispy-tree | 1 | 1 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 8a02b3b95ddb2b39c9faa576aa6903d405d24de6234468edba1d772c9a6c9ab9 | 23,254 | [
-1
] |
23,271 | passwd-manager.lisp | thefossenjoyer_lisp-passwd/src/passwd-manager.lisp | (defpackage #:passwd-manager
(:use :cl))
(in-package #:passwd-manager)
(ql:quickload :cl-fad)
(defun create-passwd ()
(format t "Programme name: ~&")
(defvar programme-name)
(defvar programme-password)
(setf programme-name (read))
(cond
((cl-fad:file-exists-p (format nil "./~a/" programme-name)) ... | 1,837 | Common Lisp | .lisp | 57 | 27.473684 | 131 | 0.621005 | thefossenjoyer/lisp-passwd | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 6c0971be29cc8514a6cd5c07b7fa0fcb555e804766546132b83e1085aca2e2f7 | 23,271 | [
-1
] |
23,272 | passwd-manager.asd | thefossenjoyer_lisp-passwd/passwd-manager.asd | (defsystem "passwd-manager"
:depends-on (
#:cl-fad
)
:components ((:module "src"
:components
((:file "passwd-manager"))))
:build-operation "program-op"
:build-pathname "lisp-passwd"
:entry-point "passwd-manager::main"
)
| 298 | Common Lisp | .asd | 11 | 19 | 44 | 0.547703 | thefossenjoyer/lisp-passwd | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 9269ba64f9706883162e25e06f74d1a490aad5f2acb69a01154dba222938d9e3 | 23,272 | [
-1
] |
23,289 | ttable.lisp | Cledersonbc_lisp-impl/basic/ttable.lisp | #|
Times table of n (from 0 to 10).
|#
;; Author: Clederson Cruz
(defun tab (n x)
(if (> n 0) (tab (- n 1) x))
(format t "~D x ~D = ~D~%" x n (* x n)))
(format t "Integer Number: ")
(tab 10 (read))
| 204 | Common Lisp | .lisp | 9 | 21 | 42 | 0.544041 | Cledersonbc/lisp-impl | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 50eb1227625f038223ee798ac37847f6124753cac690aa8045089a6aff238696 | 23,289 | [
-1
] |
23,290 | 2dg.lisp | Cledersonbc_lisp-impl/basic/2dg.lisp | #|
Quadratic equation calculed by lisp
|#
;; Author: Clederson Cruz
(defun 2dg (a b c)
(setq delta (- (expt b 2) (* 4 a c)))
(if (< delta 0)
nil
(list
(/ (+ (- 0 b) (sqrt delta)) (* 2 a))
(/ (- (- 0 b) (sqrt delta)) (* 2 a)))))
(format t "Type A, B, C:~%")
(format t "Real Solution: ~S" (2dg (read) (... | 335 | Common Lisp | .lisp | 13 | 23.230769 | 57 | 0.528125 | Cledersonbc/lisp-impl | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 1051b555c707267d896d7785979b192c64100bb3030333c61e951f7ba4942199 | 23,290 | [
-1
] |
23,291 | fat.lisp | Cledersonbc_lisp-impl/basic/fat.lisp | #|
Factorial of n is n if n = 0 or 1;
Factorial n is n * (n - 1) if n > 1.
|#
;; Author: Clederson Cruz
(defun fat (n)
(if (< n 2)
n
(* n (fat (- n 1)))))
(format t "Factorial of ~D is ~D.~%" (setq n (read)) (if (< n 0) nil (fat n)))
| 244 | Common Lisp | .lisp | 10 | 22.4 | 78 | 0.525862 | Cledersonbc/lisp-impl | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | d0daac462cc3e13b365f515be6d12d676d46e4b94cbfa84fe026f8ca4c082eed | 23,291 | [
-1
] |
23,292 | fib.lisp | Cledersonbc_lisp-impl/basic/fib.lisp | #|
Fibonacci Sequence: 1, 1, 2, 3, 5, 8, 13, ...
Author: Clederson
|#
(defun fib (n)
(if (< n 2)
n
(+ (fib (- n 1)) (fib (- n 2)))))
(defun print-fib (n)
(if (> n 1) (print-fib (- n 1)))
(format t "~D " (fib n)))
(format t "**Fibonacci**~%Number: ")
(setq x (read))
(if (> x 0) (print-fib x) (format t "~S... | 328 | Common Lisp | .lisp | 14 | 21.357143 | 46 | 0.511254 | Cledersonbc/lisp-impl | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 04912ea3c55df050d103eee763c3597904ca35f552172710821ede6b879884bb | 23,292 | [
-1
] |
23,312 | package.lisp | afranson_Lisp-MCMC/package.lisp | ;;;; package.lisp
(defpackage :mcmc-fitting
(:nicknames :mfit)
(:use :cl)
(:documentation "# mcmc-fitting
Provides an interface for using Markov Chain Monte Carlo to do fitting of various functions.
Makes it easy to generate walker and probability distributions as well as advancing and visualizing the walkers.... | 353 | Common Lisp | .lisp | 9 | 37.111111 | 112 | 0.791176 | afranson/Lisp-MCMC | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 6efd110a0069adfeb3e73ee9f3b71b84ce9150a8adb6de11d8fd5065c8d50fe5 | 23,312 | [
-1
] |
23,313 | mcmc-fitting_230522.lisp | afranson_Lisp-MCMC/mcmc-fitting_230522.lisp | ;;; mcmc-fitting.lisp
#|
create walker
advance it
visualize it
|#
;;; Example use
;; (defparameter woi (mcmc-fit :function (lambda (x &key m b &allow-other-keys) (+ b (* -3 m) (* (- m (/ b 60)) x))) :data '((-4 -1 2 5 10) (0 2 5 9 13)) :params '(:b -1 :m 2) :data-error 0.2))
;; (defparameter woi (mcmc-fit :function (... | 59,281 | Common Lisp | .lisp | 1,118 | 48.809481 | 517 | 0.654749 | afranson/Lisp-MCMC | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 6ec1ee0fe2d90f43070b1f8637ed7130208692576e20c4c29b9e4a3681b07b2e | 23,313 | [
-1
] |
23,314 | mcmc-fitting.lisp | afranson_Lisp-MCMC/mcmc-fitting.lisp | ;;; mcmc-fitting.lisp
;;; Example basic use
;; Basic line fit
;; (defparameter woi (mfit:mcmc-fit :function (lambda (x &key m b &allow-other-keys) (+ b (* m x))) :data '((-4 -1 2 5 10) (0 2 5 9 13)) :params '(:b -1 :m 2) :data-error 0.2))
;; Single param list fit
;; (defparameter woi (mfit:mcmc-fit :function (lambda ... | 79,099 | Common Lisp | .lisp | 1,400 | 52.220714 | 517 | 0.661937 | afranson/Lisp-MCMC | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | a4b916d1a9f88163f218a625a43b2b42fbe1d9d8ea67542aa1ce7d40c8fb0435 | 23,314 | [
-1
] |
23,315 | nv-specific.lisp | afranson_Lisp-MCMC/nv-specific.lisp | ;;;; nv magnetometry specific walker fitting stuff
(in-package :mcmc-fitting)
(defun nv-data->separated (data)
(mapcar #'(lambda (x) (list (elt data 0) x)) (subseq data 1)))
(defun nv-dir->data (directory)
(let ((files (uiop:directory-files directory)))
(mapcan #'(lambda (x) (nv-data->separated (read-file->d... | 3,914 | Common Lisp | .lisp | 89 | 39.41573 | 99 | 0.615385 | afranson/Lisp-MCMC | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 81ac874832bff25985f67ae497992009f5c98985f1fbfebc21cc62137fa2ffcc | 23,315 | [
-1
] |
23,316 | test.lisp | afranson_Lisp-MCMC/test.lisp | ;;; test.lisp
;;
;; Test the mcmc-fitting package for a lorentzian lineshape
(require 'mcmc-fitting)
(in-package :mcmc-fitting)
;; Quickly gather a list of the files you want to process
(print (get-filename "." :include '("example" ".xls") :exclude '("test")))
(defparameter data (read-file->data "example-data.xls")... | 3,015 | Common Lisp | .lisp | 62 | 44.919355 | 151 | 0.697991 | afranson/Lisp-MCMC | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 39d5849619fa18c2162979e32af8b12162b2800bf7781e179a62eea5f750a7fc | 23,316 | [
-1
] |
23,317 | mcmc-fitting.asd | afranson_Lisp-MCMC/mcmc-fitting.asd | ;;;; mcmc-fitting.asd
(asdf:defsystem :mcmc-fitting
:serial t
:description "MCMC-Based Library for Fitting Data"
:author "Andrew Franson"
:license "GPLv3"
:depends-on (:cl-gnuplot
:alexandria)
:components ((:file "package")
(:file "mcmc-fitting")))
| 285 | Common Lisp | .asd | 10 | 23.9 | 52 | 0.660584 | afranson/Lisp-MCMC | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | f5ef7f918585239243de21e8f8b58dcb3a44f7cd1a86d1705086143cb7252360 | 23,317 | [
-1
] |
23,320 | example-data.xls | afranson_Lisp-MCMC/example-data.xls | Set Magnetic Field (Oe) Probe field FMR Phase X Y FMR frequency FMR Power Integrated X
2.000E+3 2.000E+3 -4.172E-7 1.766E+2 -4.220E-7 1.948E-8 2.000E+1 0.000E+0 -4.220E-7
2.003E+3 2.000E+3 -4.431E-7 1.683E+2 -4.337E-7 8.937E-8 2.000E+1 0.000E+0 -4.337E-7
2.006E+3 2.001E+3 -5.365E-7 1.532E+2 -4.821E-7 2.471E-7 2.000E... | 28,510 | Common Lisp | .l | 335 | 83.104478 | 87 | 0.642662 | afranson/Lisp-MCMC | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | b7f3ff058a83dbd074b206a01e9a9cb59310538c1e73d4f27775506a8cc2f56e | 23,320 | [
-1
] |
23,340 | recognition.lisp | drea8_wa/recognition.lisp | (in-package :wa)
(defstruct clock
minute
second
millisecond)
(defparameter current-clock (make-clock))
(defun next-clock ()
(setf (minute current-clock) (local-time:timestamp-minute (local-time:now))
(second current-clock) (local-time:timestamp-second (local-time:now))
(millisecond current-cl... | 1,925 | Common Lisp | .lisp | 53 | 32.660377 | 92 | 0.698756 | drea8/wa | 1 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | db89428871420fed3cc1bc6f8734b8fd31341112133184abd1d11a200aae4a96 | 23,340 | [
-1
] |
23,341 | wa.lisp | drea8_wa/wa.lisp | (defpackage :wa
(:use #:cl))
(in-package :wa)
(load "utils.lisp")
;; (load "recognition.lisp")
(load "cl-event-handler/cl-event-handler.asd")
(load "cl-evdev/cl-evdev.asd")
(mapcar
#'ql:quickload
'(local-time
cl-glut
bordeaux-threads
cl-event-handler
cl-evdev
))
(defun compile-wa-image ()
(cl-u... | 3,893 | Common Lisp | .lisp | 122 | 27.459016 | 82 | 0.61194 | drea8/wa | 1 | 0 | 0 | AGPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 91d0aec1d7a0091e6a7e038488dfbb8d451904142f1ee8a6b84b79f1c46fd4aa | 23,341 | [
-1
] |
23,360 | css.lisp | ivvil_acylx-lisp/css.lisp | ;;;; css.lisp
(in-package #:acylx-lisp)
(defparameter *main-css*
'(body
:background-color "red"
:font-family "Starbirl"))
;; @font-face {
;; font-family: "Starbirl";
;; src: url(assets/fonts/Starbirl.otf);
;; }
(defparameter *font-css*
'(:font-face))
(defun cut-string-at-dot (input-string)
(if (position ... | 1,311 | Common Lisp | .lisp | 31 | 40.096774 | 136 | 0.680347 | ivvil/acylx-lisp | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 79c96eacc8b441f15483fb3403dfcc8180ead9b25c4eccf9e36e58af8a2a7ed3 | 23,360 | [
-1
] |
23,361 | acylx-lisp.asd | ivvil_acylx-lisp/acylx-lisp.asd | ;;;; aluminum.asd
(asdf:defsystem #:acylx-lisp
:description "Port of my personal web page (acylx)"
:author "Iv√°n Villagrasa<ivvil412@gmail.com>"
:license "GPL V3"
:version "0.0.1"
:serial t
:depends-on (#:spinneret
#:parenscript
#:clack
#:lass
#:pathname-utils)
:components ((:fi... | 378 | Common Lisp | .lisp | 15 | 20.8 | 53 | 0.618785 | ivvil/acylx-lisp | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | f63ccd143570bc1e00f42b86ce694993c7eed0221af0c635e2ca9c204eef9b95 | 23,361 | [
-1
] |
23,362 | acylx.lisp | ivvil_acylx-lisp/acylx.lisp | ;;;; acylx.lisp
(in-package #:acylx-lisp)
(defun acylx-head (title)
(spinneret:with-html
(:title title)
;; (:link :rel "icon" :type "image/x-icon" :href "/assets/favicon.png")
;; (:meta :name "viewport" :content "width=device-width, initial-scale=1.0")
))
(defun acylx-background ()
)
;; Seems like spinne... | 853 | Common Lisp | .lisp | 26 | 27.692308 | 101 | 0.627139 | ivvil/acylx-lisp | 1 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:28:28 AM (Europe/Amsterdam) | 01605c06c0e6dffc13f17d2f52d023aff4535f85687327cc6d6e69ae333344a8 | 23,362 | [
-1
] |
23,368 | Starbirl.otf | ivvil_acylx-lisp/assets/fonts/Starbirl.otf |