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 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
41,914 | utility.lisp | staudtlex_calcal-lisp/utility.lisp | ;;;; -*- mode: Lisp; indent-tabs-mode: nil; -*-
;;;; Copyright (C) 2022 Alexander Staudt
;;;;
;;;; 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 License, or
;;;; ... | 8,670 | Common Lisp | .lisp | 226 | 31.10177 | 89 | 0.60446 | staudtlex/calcal-lisp | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | 1888a3d3342f496555ff15c74a9edc76ac04d24c8e05a5c9345e20091845109e | 41,914 | [
-1
] |
41,915 | calcal.asd | staudtlex_calcal-lisp/calcal.asd | ;;;; -*- mode: Lisp; indent-tabs-mode: nil; -*-
;;;; Copyright (C) 2022 Alexander Staudt
;;;;
;;;; 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 License, or
;;;; ... | 1,277 | Common Lisp | .asd | 29 | 40.758621 | 89 | 0.682692 | staudtlex/calcal-lisp | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | eec7eef3a15acd7f46fb3e4d7f98d75eb0acb6f933ded3496852b981103f0812 | 41,915 | [
-1
] |
41,919 | Makefile | staudtlex_calcal-lisp/Makefile | # This is the Makefile of calcal-lisp
LISP=sbcl --no-userinit --no-sysinit
all: asd
asd: calcal.asd calendar.lisp
@LISP_BIN=`echo $(LISP) | \
sed -E 's/(.*\/)?(.*)/\2/g' | sed -E 's/( -+.*)//g'`; \
if [ "$$LISP_BIN" = "clisp" ]; then \
$(LISP) \
-x "(require 'asdf)" \
-x "(setf asdf:*central-registry* (li... | 784 | Common Lisp | .l | 27 | 26.592593 | 65 | 0.621838 | staudtlex/calcal-lisp | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | 39941c61be21f0fb5f44ffd3a5f2907de4b0d0bd72ead3877981ef1221cf824d | 41,919 | [
-1
] |
41,921 | calendar.l | staudtlex_calcal-lisp/calendar.l | ;; The following Lisp code is from ``Calendrical
;; Calculations'' by Nachum Dershowitz and Edward
;; M. Reingold, Software---Practice & Experience, vol. 20,
;; no. 9 (September, 1990), pp. 899--928 and from
;; ``Calendrical Calculations, II: Three Historical
;; Calendars'' by Edward M. Reingold, Nachum Dershowitz,
;;... | 33,811 | Common Lisp | .l | 798 | 33.932331 | 76 | 0.56094 | staudtlex/calcal-lisp | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | c890e3365040a8157b8c5a0d1cf927c0cc05db8a0e454878c83438d4d187dd7c | 41,921 | [
357087
] |
41,936 | pong.lisp | lambdanil_lispy-sdl2-stuff/pong.lisp | (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
(ql:quickload :sdl2)
(ql:quickload :sdl2-image)
(ql:quickload :sdl2-ttf)
(ql:quickload :bt-semaphore)
(defparameter *font* nil... | 9,900 | Common Lisp | .lisp | 279 | 28.62724 | 93 | 0.544355 | lambdanil/lispy-sdl2-stuff | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | d0e0569a20ee9ff51b793d4b53e234dcffbbb1b4196dfc2410e63ddce176eed2 | 41,936 | [
-1
] |
41,937 | tetris.lisp | lambdanil_lispy-sdl2-stuff/tetris.lisp | (let ((quicklisp-init (merge-pathnames "quicklisp/setup.lisp"
(user-homedir-pathname))))
(when (probe-file quicklisp-init)
(load quicklisp-init)))
(ql:quickload :sdl2)
(ql:quickload :sdl2-image)
(ql:quickload :bt-semaphore)
(ql:quickload :sdl2-ttf)
(setf *random-state* (m... | 14,856 | Common Lisp | .lisp | 429 | 29.433566 | 100 | 0.589972 | lambdanil/lispy-sdl2-stuff | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | fbb5120c285661af96370d1ce28bf227039e5cfc0bb3242167665fccfb9fae0c | 41,937 | [
-1
] |
41,938 | sdl-fn.lisp | lambdanil_lispy-sdl2-stuff/sdl-fn.lisp | (defmacro with-window-renderer ((window renderer) &body body)
`(sdl2:with-init (:video)
(sdl2:with-window (,window
:title "Common Lisp SDL2 Tetris"
:w *screen-width*
:h *screen-height*
:flags '(:shown))
(let ((... | 3,820 | Common Lisp | .lisp | 107 | 27.224299 | 93 | 0.516608 | lambdanil/lispy-sdl2-stuff | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | f1f43062979ef14572ef380175d55a736dc5fe28dd37fc21d59a7a8774198de8 | 41,938 | [
-1
] |
41,957 | example.lisp | agentlans_clinalg/example.lisp | (ql:quickload 'clinalg)
(defpackage :foo (:use :cl :clinalg))
(in-package :foo)
(make-vector 3)
(let ((m (make-matrix 3 15)))
(fill-with (lambda (i j) (+ i j)) m))
(let ((m (make-matrix 5 4 :complex-double)))
(fill-with (lambda (i j) (complex i j))
m))
;; Slice part of vector from index 4 (inclusive)
;; t... | 658 | Common Lisp | .lisp | 21 | 29.238095 | 55 | 0.64557 | agentlans/clinalg | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | f4cf614414d2185e579391bf4323752ceec6539bd6fa6979b43b4d1e743f4175 | 41,957 | [
-1
] |
41,958 | array.lisp | agentlans_clinalg/array.lisp | ;; Copyright 2022 Alan Tseng
;;
;; This file is part of clinalg.
;;
;; clinalg is free software: you can redistribute it and/or modify it under the
;; terms of the GNU Lesser General Public License as published by the Free
;; Software Foundation, either version 3 of the License, or (at your option)
;; any later ve... | 6,504 | Common Lisp | .lisp | 218 | 26.252294 | 80 | 0.649249 | agentlans/clinalg | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | a17917841235cd9af1592f623897b42e31b4fec9edbd173f4c8fc1c26812f64c | 41,958 | [
-1
] |
41,959 | print.lisp | agentlans_clinalg/print.lisp | (in-package :clinalg)
(defun number->string (x)
"String indicating the base 10 number
to 4 decimal places in normal or scientific notation."
(cond ((integerp x) (format nil "~A" x))
((complexp x)
;; Complex number
(let ((re (realpart x))
(im (imagpart x)))
(format nil "~A~A~Ai"
(number->stri... | 3,193 | Common Lisp | .lisp | 95 | 29.410526 | 77 | 0.618924 | agentlans/clinalg | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | a79b7528f40228e2881161cd8fb626f93e3718f0a42473447945fb75cee47925 | 41,959 | [
-1
] |
41,960 | slice.lisp | agentlans_clinalg/slice.lisp | (in-package :clinalg)
(defmethod copy ((v num-vector))
"Creates an independent copy of vector v."
(with-slots (n type) v
(let ((cp (make-vector n type)))
(dotimes (i n)
(setf (vref cp i) (vref v i)))
cp)))
(defmethod copy ((m full-matrix))
"Creates an independent copy of matrix m."
(with-slot... | 1,930 | Common Lisp | .lisp | 63 | 26.15873 | 77 | 0.623858 | agentlans/clinalg | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | b1fd68147b7ad56c13d434698eb2b1915624d8199da370f6706b11c6c4444d7e | 41,960 | [
-1
] |
41,961 | clinalg.asd | agentlans_clinalg/clinalg.asd | (defsystem "clinalg"
:description "Matrices and vector data types to interface with C."
:version "0.0.1"
:author "Alan Tseng"
:licence "LGPL3"
:depends-on ("cffi" "trivial-garbage")
:serial t
:components ((:file "array")
(:file "print")
(:file "slice")))
| 317 | Common Lisp | .asd | 10 | 24.5 | 70 | 0.576547 | agentlans/clinalg | 0 | 0 | 0 | LGPL-2.1 | 9/19/2024, 11:50:58 AM (Europe/Amsterdam) | c33aa08618fb3042a636f45cd07c9fabe628196dbe441604b66192e1a5980925 | 41,961 | [
-1
] |
41,983 | @CREATE_MTXT.lsp | nobodybusiness_lisp-backup/!lsp/@CREATE_MTXT.lsp | ;szybkie tworzenie mtxt
(defun c:TXTTOMTX ()
(setq ss (ssget))
(setq i 0)
(setq multitext "")
(while (< i (sslength ss))
(setq $VAL 0)
(setq $ent (ssname ss i))
(setq $name "none")
(setq $name (cdr (assoc '1 (entget $ent))))
;(print $name)
(setq multitext (strcat multitext $name "\... | 376 | Common Lisp | .l | 16 | 19.375 | 49 | 0.569444 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 99cec073755a130ada4ddf8a34663f20a6b0754d051799949e80df0277c17fc7 | 41,983 | [
-1
] |
41,984 | DelFil.lsp | nobodybusiness_lisp-backup/!lsp/DelFil.lsp | ;; Modified by Chip Harper 09/24/03
;;
;; By R. ROBERT BELL
;;
;; Lisp s³u¿y do usuwania filtrów warstw.
(defun C:DelFil ()
(vl-Load-Com)
(vl-Catch-All-Apply '(lambda ()
(vla-Remove
(vla-GetExtensionDictionary
(vla-Get-Layers
... | 568 | Common Lisp | .l | 19 | 20.947368 | 76 | 0.519196 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 4ab2eeb212846d8b2fce7173528b3d08661a0c9b5cb60295df7edeaeb05af1a6 | 41,984 | [
-1
] |
41,985 | @PIGTAIL_ZMIANA_RODZAJU.lsp | nobodybusiness_lisp-backup/!lsp/@PIGTAIL_ZMIANA_RODZAJU.lsp | (defun c:@pigtail_zmiana_rodzaju ()
(setq ss (ssget))
(setq i 0)
(setq rodzaj (getint "<1>Niewyspawane<2>Wyspawane: "))
(setq HHorLU (getint "<1>HH<2>LU: "))
(setq obecnyNumer 0)
(while (< i (sslength ss))
(setq $VAL 0)
(setq $ent (ssname ss i))
(setq $name "none")
(setq $name (cdr... | 1,899 | Common Lisp | .l | 63 | 23.190476 | 71 | 0.543075 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | ad3bd2831bd3adaaf35050c58a595e85e86730c37ad9d8aa61517a57c8817629 | 41,985 | [
-1
] |
41,986 | @TXT2MTXT.lsp | nobodybusiness_lisp-backup/!lsp/@TXT2MTXT.lsp |
;; Text1MtextJust.lsp [command name: T1MJ]
;; TXT2MTXT command does not preserve all aspects of justification. For
;; one selected Text entity, retains horizontal component [except Aligned/
;; Fit have Center imposed], but imposes Top for vertical component to
;; all, regardless of Text entity's ori... | 3,458 | Common Lisp | .l | 68 | 44.632353 | 98 | 0.638757 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a3f732fe9957d6d736d1cf5353e921391062cd54768025b2a991214742218c0e | 41,986 | [
-1
] |
41,987 | @remeber_prop_mm.lsp | nobodybusiness_lisp-backup/!lsp/@remeber_prop_mm.lsp |
(defun c:@mm ()
(command "matchprop" rememberEntity)
)
(defun c:@rem_ent ()
(setq rememberEntity (car (entsel)))
) | 129 | Common Lisp | .l | 6 | 18.166667 | 38 | 0.663793 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | cb569840a72f4764365b859213a32a0b1d0c7084242341f4bda56fa175645554 | 41,987 | [
-1
] |
41,988 | scalanie.lsp | nobodybusiness_lisp-backup/!lsp/scalanie.lsp | (defun c:scalanie()
(#scalanie)
)
(defun #scalanie()
(vl-load-com)
;pokaz warstwy do scalenia
(command "-layer" "off" "*" "")
(command "-layer" "on" "tkd_do_scalenia" "")
(command "-layer" "on" "tkd_zbr" "")
(command "-layer" "on" "tkd_opisy_zbr" "")
;select circles
(setq $zaznacze... | 392 | Common Lisp | .l | 15 | 21.866667 | 48 | 0.571429 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 2d29853052bdcf3031cee95cc960292b0785eaf48930f52753b45c461ebbbacd | 41,988 | [
-1
] |
41,989 | Compare dwg - CDWG.lsp | nobodybusiness_lisp-backup/!lsp/Compare dwg - CDWG.lsp |
;porownywanie plikow dwg -> zmiany, usunięcia
(vl-load-com)
(defun c:cdwg (/ app cdoc fichier dbx name sp1
sp2 e obj lstmodif lstajout
lstsuppr lst obj sup h
)
(setq app (vlax-get-acad-obje... | 5,159 | Common Lisp | .l | 166 | 18.192771 | 126 | 0.44946 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 08fe89526e7ce3b5159c14e25e891d525dc1f7fd785b68ef24866074d8024f66 | 41,989 | [
-1
] |
41,990 | @NUMERACJA_STUDNI.lsp | nobodybusiness_lisp-backup/!lsp/@NUMERACJA_STUDNI.lsp | ;numeracja studni wyrzuconych z qgis
(defun c:@numeracja_studni (/ $filepath $fil $fl $data $el $x $y $HH $LU $UL $NR $liczba $wsp)
(vl-load-com)
(setq $lsp_adress_num "C:/Users/Desktop/Piotr P/test/automatyczna numeracja dzialek")
(setq $filepath $lsp_adress_num) ; ustawia sciezke do folderu z dwg
(setq ... | 1,955 | Common Lisp | .l | 45 | 38.466667 | 101 | 0.550839 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 23d3bc84976243680a4b067504cba719fe4fa7b3b3aa7e38408206dccb955238 | 41,990 | [
-1
] |
41,991 | @studnie_nazwa.lsp | nobodybusiness_lisp-backup/!lsp/@studnie_nazwa.lsp | (defun c:@studnie_nazwa ()
(vl-load-com)
(setq $blk nil)
(setq $blk (ssget '((0 . "INSERT") (2 . "numeracja_blok"))))
(setq $ent (ssname $blk 0))
(setq $name "none")
(setq $name (cdr (assoc '0 (entget $ent))))
(while (not (equal $name "SEQEND")) ; asystent
(setq $LST (entget $ent))
(setq... | 786 | Common Lisp | .l | 24 | 27.916667 | 63 | 0.566138 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | f1378a6b4ec16d208f44194eb988fa7655dff71e65198e287083d229323f9044 | 41,991 | [
-1
] |
41,992 | @layer_select.lsp | nobodybusiness_lisp-backup/!lsp/@layer_select.lsp | ;wybor warstwy
(defun c:@layer_select()
(setq TargEnt (car (entsel "\nSelect object on layer to select: ")))
(setq TargLayer (assoc 8 (entget TargEnt)))
(sssetfirst nil (ssget "_X" (list TargLayer)))
(princ)
) | 219 | Common Lisp | .l | 7 | 29 | 70 | 0.685446 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 57e40868dbe0d2841bc083a5e0d316379ecab8f942da0596b98f77bd1783ad19 | 41,992 | [
-1
] |
41,993 | @przyłącza_wszystkie.lsp | nobodybusiness_lisp-backup/!lsp/@przyłącza_wszystkie.lsp | (defun c:@przylacza_wszytskie ()
(setq $SS (ssget '((0 . "LWPOLYLINE")))) ; przyjecie z zaznaczenie tylko plinii
(setq $zm_linni 0)
(while
(setq $line (ssname $ss $zm_linni))
;znajduje wszytskie pkt plinni i przypisuje je do listy
(setq $plist (mapcar 'cdr
(vl-remove-i... | 2,910 | Common Lisp | .l | 84 | 26.190476 | 114 | 0.480483 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | fda56acec63325469cc7d2ea84e1078ddf154e66f5623a548384447bf1751d4d | 41,993 | [
-1
] |
41,994 | @ON,OFF.lsp | nobodybusiness_lisp-backup/!lsp/@ON,OFF.lsp | ;widoczność warstw
(defun @OFF ()
(setq $selected_layers (ssget))
(setq $i 0)
(setq $zaznaczenie 0)
(command "-layer" "_of" "" "_y" "")
(while $zaznaczenie
(setq $zaznaczenie (ssname $selected_layers $i))
(setq $warstwa (cdr (assoc 8 (entget $zaznaczenie))))
(command "-layer" "_on" $warst... | 3,313 | Common Lisp | .l | 120 | 23.741667 | 148 | 0.580919 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 25a16b1c060977131471da309c656805f8fb48aa0d72f160e90a5a4b7294a9c5 | 41,994 | [
-1
] |
41,995 | @KABEL3x4.lsp | nobodybusiness_lisp-backup/!lsp/@KABEL3x4.lsp | ;wsatwienie schematu kabla 3x4
(defun C:@KABEL3x4 ()
(vl-load-com)
;1.1 SPR BIEZACA WARSTWE
(setq curent_layer (getvar "CLAYER"))
;1.2 USTAW WARSTWE KABLI (pierwszy czerwony)
(setq new_layer "�wiat bud.")
(command "-layer" "s" new_layer "")
(command "cecolor" 1)
;2.1 PL
(command "polyline" ... | 1,416 | Common Lisp | .l | 48 | 20 | 110 | 0.502209 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 89bfdc158a590ef83e0a97e2a6130e44869b7f0b2c70eb3d01d1f1afd8146033 | 41,995 | [
-1
] |
41,996 | liczenie_potrzebnego_zbrojenia.lsp | nobodybusiness_lisp-backup/!lsp/liczenie_potrzebnego_zbrojenia.lsp | ;funkcja do liczenia wystarczanjacego zbrojenia do plyty
(defun C:az ()
(progn
;ustalenie srednic zbrojenia
(setq srednice (list 8 10 12 16 20 25))
(setq liczba_srednic (length srednice))
;podanie wartosci z abc przez uzytkownika
(setq
wartosc_abc (getreal "Wprowadz wartosc z ABC: ")
)
(se... | 1,107 | Common Lisp | .l | 40 | 22.5 | 65 | 0.629213 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 1eac236f4db20a79ec55114d487f51c27f2353227fba550dd517ae399a420573 | 41,996 | [
-1
] |
41,997 | @tabelka.lsp | nobodybusiness_lisp-backup/!lsp/@tabelka.lsp | (defun c:@tabelka ()
(vl-load-com)
(setq $changeOnlyProjAndDate (getstring "Zmiana tylko projektabta i daty <y>"))
(if (= $changeOnlyProjAndDate "")
(progn
(setq $NAZWA_PROJEKTU "s")
(setq $SKALA "s")
(setq $NR-RYS "s")
(setq $inne_oznacz "")
)
(progn
(setq $NA... | 7,990 | Common Lisp | .l | 261 | 23.586207 | 82 | 0.502012 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 1fa913be72d8d1b0e18608bb91ed6b7d97aef25375ee6a1de3c12f8bfe3181a4 | 41,997 | [
-1
] |
41,998 | @SUM_D_LINE.lsp | nobodybusiness_lisp-backup/!lsp/@SUM_D_LINE.lsp | (defun @SUM_D_LINE ()
(setq $dline_zm 0)
(setq $dline1 0)
(if (setq $SS (ssget '((0 . "LWPOLYLINE")))) ; przyjecie z zaznaczenie tylko plinii
(progn
(setq $ss_length (sslength $ss))
(setq $ss_i 0)
(while (< $ss_i $ss_length)
(setq $line (ssname $ss $ss_i))
;znajduje... | 1,500 | Common Lisp | .l | 43 | 23.55814 | 87 | 0.4372 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 7b3448636b94bda029bb86afc572e5afc4617114b06e199f80bdc8aa5ab61eca | 41,998 | [
-1
] |
41,999 | @angle.lsp | nobodybusiness_lisp-backup/!lsp/@angle.lsp | ;zwraca pelen kat
(defun @angle ()
(setq $p1 (getpoint "Wskaz 1 pkt"))
(setq $p2 (getpoint "Wskaz 2 pkt"))
(setq $angle (@RtD (angle $p2 $p1)))
(@FIX $angle)
)
(defun @fix ($unfixed)()
(setq $fixed (fix $unfixed))
(setq $delta ( - $unfixed $fixed))
(if (> $delta 0.5)
(setq $fixed (+ $fixed 1))
)
... | 340 | Common Lisp | .l | 15 | 20 | 40 | 0.578462 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | c47519814fe1336ba675564f9051f7a9eace11d083d8945852c250f9d92325b6 | 41,999 | [
-1
] |
42,000 | @newDlPoBudynku.lsp | nobodybusiness_lisp-backup/!lsp/@newDlPoBudynku.lsp | ;dlugosci po buynku
(defun c:@dll ()
(vl-load-com)
(setq $okw nil)
(setq $okw (ssget '((0 . "LWPOLYLINE"))))
(setq $okw_name (ssname $okw 0))
(setq $i 1)
(setq $okw_length_sum 0)
(setq $plist (mapcar 'cdr
(vl-remove-if-not
'(lambda (x) (= (car x) 1... | 2,084 | Common Lisp | .l | 60 | 28.616667 | 74 | 0.554169 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 36b8d0d30ba80f3a4976ceda97e9dbab69a31c524164e4d6b9d6d17a5a15ce65 | 42,000 | [
-1
] |
42,001 | @viewport_zoom.lsp | nobodybusiness_lisp-backup/!lsp/@viewport_zoom.lsp | (defun @viewport_zoom ()
(command "mspace"
"zoom" "_e"
"zoom" "_ob" pause ""
)
(princ)
(setq get (ssget "x" '((0 . "viewport") (-4 . ">") (69 . 1))))
(setq $ent_ename (ssname get 0))
(setq $ent_data (entget $ent_ename))
(setq heightInPaper (cdr (assoc 41 $ent_data)))
(set... | 475 | Common Lisp | .l | 15 | 26.6 | 65 | 0.552402 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 178c0c7784d8ed68b3864b69f266250f53b48bffb0a8ed82f444bfb6929e4df5 | 42,001 | [
-1
] |
42,002 | @numeracja_dzialek.lsp | nobodybusiness_lisp-backup/!lsp/@numeracja_dzialek.lsp |
;numeracja pkt adresowych wyrzuconych z qgis
(defun @numeracja_dzialek (/ $filepath $fil $fl $data $el $x $y $HH $LU $UL $NR $liczba $wsp)
(vl-load-com)
(setq $lsp_adress_num "C:/Users/Desktop/test/Signaline/automatyczna numeracja dzialek")
(setq $filepath $lsp_adress_num) ; ustawia sciezke do folderu z dwg... | 3,077 | Common Lisp | .l | 77 | 33.636364 | 101 | 0.512342 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 84d23c36e5eef8b18f4c38c2932e1e51d043041136c019d913f77710327fbd21 | 42,002 | [
-1
] |
42,003 | @MIESZKANIA_USŁUGI_ZMIANA_NUMERACJI.lsp | nobodybusiness_lisp-backup/!lsp/@MIESZKANIA_USŁUGI_ZMIANA_NUMERACJI.lsp | ;zmiana numeracji w blokach
(defun c:@mieszkania_u�ugi_zmiana_numeracji ()
(setq ss (ssget))
(setq i 0)
(setq plus_minus (getint "+/-:"))
(while (< i (sslength ss))
(setq $VAL 0)
(setq $ent (ssname ss i))
(setq $name "none")
(setq $name (cdr (assoc '0 (entget $ent))))
(while (not... | 1,229 | Common Lisp | .l | 38 | 24.447368 | 92 | 0.495382 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 583b3d4e4e3442a797d23ed58cbc094162591793fb9801c80503a535c405bc8e | 42,003 | [
-1
] |
42,004 | @HH_SCHEMAT.lsp | nobodybusiness_lisp-backup/!lsp/@HH_SCHEMAT.lsp | ;tworzenie calej jednej mufy z adresow zaznaczonych
(defun c:@HH_SCHEMAT ()
(vl-load-com)
(setq ss (ssget))
(setq i 0)
(setq $VAL "")
(setq fromTop 0) ;nr HH od g�ry
(setq pta (getpoint "PKT wstawienia:"))
(while (< i (sslength ss))
;#ulice
(setq $VAL "")
(setq $ent (ssname ss i)... | 2,304 | Common Lisp | .l | 73 | 24.547945 | 100 | 0.505603 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | f6c04ce83b2e3b1fdadaa7ca86209054e98d1fcb1be84655fcce577674122e02 | 42,004 | [
-1
] |
42,005 | @uklad_mieszkan_kable_osd.lsp | nobodybusiness_lisp-backup/!lsp/@uklad_mieszkan_kable_osd.lsp | (defun c:@uklad_mieszkan ()
(vl-load-com)
;pkt wstepny
(setq repeatTubes 1)
(setq 1spawNaStart (getstring "Czy jeden spaw na start? : <y>"))
;typ kabla np 2x6
(setq numberOfCabelTubes (getint "Ile tub :"))
(setq numberOfTubesWkl (getint "Ile wlokien w tubie :"))
;liczba wykorzystanych tub
(setq ... | 3,674 | Common Lisp | .l | 96 | 33.052083 | 110 | 0.636643 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | fccb15bfe8c6e08694753fc0706d80afd6d684136525914b523eb54bb2863d24 | 42,005 | [
-1
] |
42,006 | @textChangePlusOne.lsp | nobodybusiness_lisp-backup/!lsp/@textChangePlusOne.lsp | (defun c:@Y ()
(setq $text (entget (ssname (ssget '((0 . "TEXT"))) 0)))
(setq $dist (getdist "Odleg³osc miedzy elementami:"))
(setq $end (getint "Do jakiego numeru:"))
(setq $i (atoi (cdr (assoc 1 $text))))
(command "_copy" (cdr (assoc -1 $text)) "" "d" (strcat "0,-" (rtos $dist 0 2) ",0"))
(setq $i (... | 1,467 | Common Lisp | .l | 36 | 36.361111 | 97 | 0.555168 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 7fb8bf49550d91e5b7e7fa8dc74a824a4d626177756873a8bf81d187b6fe8453 | 42,006 | [
-1
] |
42,007 | @OPP_OSD_OKH_OKW.lsp | nobodybusiness_lisp-backup/!lsp/@OPP_OSD_OKH_OKW.lsp | ;zamiana numeracji na wskazana
(defun c:@OPP_OSD_OKH_OKW ()
(vl-load-com)
(setq $OPP_OSD_OKH_OKW "C:/Users/Desktop/Piotr P/test/OPP_OSD_OKH_OKW/")
(setq $data nil)
(setq $filepath $OPP_OSD_OKH_OKW) ; ustawia sciezke do folderu mieszkan
(setq $fl (open (strcat $filepath "OPP_OSD_OKH_OKW.txt") "r")) ; o... | 3,293 | Common Lisp | .l | 83 | 32.421687 | 106 | 0.579787 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | dd7f1df603e5652000f587eae62d2372245b0b246f2a45d7676d3d94483f9cba | 42,007 | [
-1
] |
42,008 | @oznacznie_dl_l_2.lsp | nobodybusiness_lisp-backup/!lsp/@oznacznie_dl_l_2.lsp | ql(defun c:@oznaczenie_dl_l_2 ()
(vl-load-com)
(if (setq $SS (ssget '((0 . "LWPOLYLINE")))) ; przyjecie z zaznaczenie tylko plinii
(progn
(setq $i 0)
(setq $line 0)
(while $line
(setq $line (ssname $ss $i))
;znajduje wszytskie pkt plinni i przypisuje je do listy
... | 1,556 | Common Lisp | .l | 40 | 25.8 | 127 | 0.412929 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | ea3e1d1c449e2ac01bb4862d5c692307d77c29f73e24bd84c7bf517f9bc9188a | 42,008 | [
-1
] |
42,009 | @studnie_nazwa_v2.lsp | nobodybusiness_lisp-backup/!lsp/@studnie_nazwa_v2.lsp | (defun c:st ()
(vl-load-com)
(setq $blk nil)
(setq $blk (ssget '((0 . "INSERT") (2 . "numeracja_blok"))))
(setq $ent (ssname $blk 0))
(setq $name "none")
(setq $name (cdr (assoc '0 (entget $ent))))
(while (not (equal $name "SEQEND")) ; asystent
(setq $LST (entget $ent))
(setq $attag (cdr... | 1,421 | Common Lisp | .l | 47 | 25.595745 | 70 | 0.577548 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | c87908e88e77130c96c8bf8bb0cc7a43e13f54703d1bb84c1bd24cfdf7ffd2b7 | 42,009 | [
-1
] |
42,010 | @print.lsp | nobodybusiness_lisp-backup/!lsp/@print.lsp | ;wydruk automatyczny wszystkich layoputow
(defun c:@print ()
(vl-load-com)
(foreach lay (layoutlist) (setvar "CTAB" lay) (command "_PLOT" "N" "" "" "" "" "Y" ""))
(command "_qsave")
)
| 196 | Common Lisp | .l | 6 | 29.666667 | 90 | 0.611702 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | c3b61d295b8b7786c23e5bcaf27a17a35947fe60a90dca103c68aff2ce1a2329 | 42,010 | [
-1
] |
42,011 | @dl_insta.lsp | nobodybusiness_lisp-backup/!lsp/@dl_insta.lsp | ;zczytanie dlugosci z blokow + dodanie budynkowych
(defun @dl_insta ()
(vl-load-com)
(setq $blk nil)
(setq $blk (ssget '((0 . "INSERT") (2 . "dl_linni"))))
(setq $i 0)
(setq $blk_length (sslength $blk))
(setq $VAL 0)
(while (< $i $blk_length)
(setq $ent (ssname $blk $i))
(setq $name "non... | 1,914 | Common Lisp | .l | 67 | 23.268657 | 57 | 0.515972 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 9094c18b5c319167e02ec0920a6082f48fb347f148413ff3dc1b2f1f6b722ca5 | 42,011 | [
-1
] |
42,012 | @textAlign.lsp | nobodybusiness_lisp-backup/!lsp/@textAlign.lsp | (defun @textalign ()
(setq $line (entget (ssname (ssget '((0 . "LWPOLYLINE"))) 0)))
(setq $text (ssname (ssget '((0 . "Mtext"))) 0))
(setq $pA (cdr (assoc 10 $line)))
(setq $pB (cdr (assoc 10 (reverse $line))))
(setq $angle (- (@RtD (angle $pB $pA)) 90)) ; -90
(LM:setattributevalue($text "rl@tota... | 1,453 | Common Lisp | .l | 45 | 22.955556 | 74 | 0.467765 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | f85a0ca2a0009f589c4788665a0ea147436d9fd9cc938af80f22884f694a2f82 | 42,012 | [
-1
] |
42,013 | @osd_renumeracja.lsp | nobodybusiness_lisp-backup/!lsp/@osd_renumeracja.lsp | (defun c:@osd_renumeracja ()
(setq ss (ssget))
(setq i 0)
(setq plus_minus (- (getint "od ilu numeracja") 1))
(while (< i (sslength ss))
(setq $VAL 0)
(setq $ent (ssname ss i))
(setq $name "none")
(setq $name (cdr (assoc '0 (entget $ent))))
(while (not (equal $name "SEQEND")) ;NAZW... | 7,127 | Common Lisp | .l | 212 | 26.075472 | 121 | 0.502246 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 4e59004cecacf228e44f49e69ed5c5bb7ea2f5c9cf4fbde5c5425f73f2091832 | 42,013 | [
-1
] |
42,014 | @DELFRZ.lsp | nobodybusiness_lisp-backup/!lsp/@DELFRZ.lsp | ;usuwanie zamrozonych warst
(DEFUN @DELFRZ ()
(PROMPT "\n*ERASE ALL FROZEN ENTITIES BY LAYER(with purge)* ")
(SETQ LTSRL 1)
(SETQ LP 1)
(WHILE LP
(SETQ LTS (TBLNEXT "LAYER" LTSRL))
(SETQ LTSRL NIL)
(SETQ LTSF (CDR (ASSOC 70 LTS)))
(SETQ LTST (CDR (ASSOC 2 LTS)))
(SETQ LTSTF (LIST (CONS 8 LTST)))... | 583 | Common Lisp | .l | 22 | 22.727273 | 64 | 0.588968 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | c92677cb1d2738cee8e3c5e732bb304af370d5ced6ee16f6fd70aff4049f511a | 42,014 | [
-1
] |
42,015 | @dl_okw.lsp | nobodybusiness_lisp-backup/!lsp/@dl_okw.lsp | ;dlogosc po budynku
(defun @dl_okw ()
(vl-load-com)
(setq $okw nil)
(setq $okw (ssget '((0 . "LWPOLYLINE"))))
(setq $okw_name (ssname $okw 0))
(setq $i 1)
(setq $okw_length_sum 0)
(setq $plist (mapcar 'cdr
(vl-remove-if-not
'(lambda (x) (= (car x) ... | 1,688 | Common Lisp | .l | 54 | 25.055556 | 74 | 0.518405 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | c0eeb3bd808eb8b41ec8b0be70b9fb6427200c893af18a5ff4a191e6c068f7dc | 42,015 | [
-1
] |
42,016 | @oznaczenie_sl.lsp | nobodybusiness_lisp-backup/!lsp/@oznaczenie_sl.lsp | ;oznaczenie slupowe
(defun @oznacz_kier_sl ()
(vl-load-com)
(setq $p1 (getpoint "Pocz�tek;")) ;poczatek linni
(setq $p2 (getpoint "Koniec:")) ;koniec linni
(setq $angle (- (@RtD (angle $p1 $p2)) 90)) ; ustawienie obrotu tekstu zgodnie ze standardem
(command "-insert" "kierunek_blok" $p1 "" ... | 423 | Common Lisp | .l | 10 | 38.9 | 96 | 0.617433 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a11688f2152ff3fa2793fb192a85d1c40ae63d638455eb2e0cdb64b31ecbf475 | 42,016 | [
-1
] |
42,017 | @flatten.lsp | nobodybusiness_lisp-backup/!lsp/@flatten.lsp | ; FLATTEN.LSP version 2.2, 25 June 1997
;
; FLATTEN sets the Z-coordinates of LINEs, POLYLINEs, LWPOLYLINEs, CIRCLEs,
; ARCs, TEXT, DIMENSIONs, Block INSERTs, POINTs, HATCHes, and SOLIDs to 0.
;------------------------------------------------------------------------
; copyright 1990, 1993, 1994, 1997 by Mark Midd... | 8,150 | Common Lisp | .l | 187 | 33.508021 | 82 | 0.527146 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 6ff8e0c649ae098e35a16be5df2cbea2b51c99d792efbf29b7c153794eded130 | 42,017 | [
-1
] |
42,018 | @przejscie_kabla_po_dzialkach.lsp | nobodybusiness_lisp-backup/!lsp/@przejscie_kabla_po_dzialkach.lsp | (defun C:@przejscie_kabla_po_dzialkach ()
(setvar "CmdEcho" 0)
(@area_for_pts) ;odnalezienie pts dla zaznaczenia
(command "_zoom" "e") ; zoom na calosc, aby lapalo zaznaczenie wartosci z calego rysunku a nie tylko z "widoku"
(@select_texts) ;wyrzucenie danych z tekstow
(setvar "CmdEcho" 1)... | 3,160 | Common Lisp | .l | 71 | 36.816901 | 144 | 0.553102 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 7268d4a2f015d027214d762fceba9f83689360e1bf9d7781c3160b3b0fcec5ff | 42,018 | [
-1
] |
42,019 | @MTEXT_BETTER.lsp | nobodybusiness_lisp-backup/!lsp/@MTEXT_BETTER.lsp | ;tworzenie mtxt o okreslonej wielkosci
(defun C:@T2 ()
(vl-load-com)
(command "insert" "TEXT_2" pause "" "" "")
(command "explode" "l" )
(command "_ddedit" "l" )
)
(defun C:@T5 ()
(vl-load-com)
(command "insert" "TEXT_5" pause "" "" "")
(command "explode" "l" )
(command "_ddedit" "l" )
)
(defun C... | 448 | Common Lisp | .l | 19 | 20.894737 | 45 | 0.562791 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 4232f774d6944562349745627b342cc435ec957b4c5b6fcba8b0bd3021227b7e | 42,019 | [
-1
] |
42,020 | @getCoordinates.lsp | nobodybusiness_lisp-backup/!lsp/@getCoordinates.lsp | ;nie uzywac wip
(defun C:@getCoordinates ()
(vl-load-com)
;.........
(setq coordninates ( getpoint "Wska� pkt"))
;.............
(setq Dx (car coordninates))
(setq Dy (cadr coordninates))
;X
(setq fixDx (fix Dx))
(setq Mx (* 60 (- Dx fixDx)))
(setq fixMx ( fix Mx))
(setq Sx (* 60 (- Mx fixM... | 829 | Common Lisp | .l | 29 | 24.586207 | 78 | 0.56901 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a159eba6c86d544fde099ba21ab6609621f5a82fa37526f7bf6b6fe7743ddef5 | 42,020 | [
-1
] |
42,021 | @uwagi.lsp | nobodybusiness_lisp-backup/!lsp/@uwagi.lsp | ;dodawanie warstwy dzisiaj
(defun @uwagi ()
(vl-load-com)
(@today)
(setq $nazwa (strcat $dzis "_uwagi"))
(command "-layer" "_m" $nazwa "_c" "red" "" "_p" "_n" "" "")
)
(defun @TODAY (/ d yr mo day)
;define the function and declare all variabled local
(setq d (rtos (getvar "CDATE") 2 6)
;get th... | 618 | Common Lisp | .l | 21 | 23.47619 | 63 | 0.569231 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 7962dd2bb96131488bce6ee607b790bb068558c6d05351f284d27a31b1c16f15 | 42,021 | [
-1
] |
42,022 | @nr_wkl.lsp | nobodybusiness_lisp-backup/!lsp/@nr_wkl.lsp | ;numeracja kolenych wlokien
(defun c:@wkl ()
(setq $nr_pocz (getint "Nr poczt.:"))
(setq $pt (getpoint "PKT wstawienia"))
(setq $n_string "")
(setq $n 0)
(while (< $n 12)
(setq $n_string (rtos (+ $n 1) 2 0))
(setq $pA (read (strcat "$p" $n_string)))
(setq $nr_wkl (rtos (+ $n $nr_pocz) 2 0... | 831 | Common Lisp | .l | 24 | 31 | 131 | 0.549505 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | f15830ec5443c7a7cd68eef9d5586f69b595a9160c07263a8bbafe4eabc2f8cf | 42,022 | [
-1
] |
42,023 | @viewport_trasa.lsp | nobodybusiness_lisp-backup/!lsp/@viewport_trasa.lsp | ;tworzenie layoutow
(defun c:@viewport_trasa ()
(setq scaleType nil)
(setq testScale nil)
(while (/= testScale T)
(setq scaleType (getstring "<S>chemat,<T>rasowy,<R>zut: "))
(if (or (= scaleType "s") (= scaleType "t") (= scaleType "r"))
(setq testScale T)
)
)
(@ALL_VIEWPORTS)
(s... | 2,350 | Common Lisp | .l | 70 | 29.085714 | 97 | 0.621145 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 3896911149e7e4d79d7571560f3dd9f72561604f6557aaf9cca52a1cbb48e7f6 | 42,023 | [
-1
] |
42,024 | @getangle.lsp | nobodybusiness_lisp-backup/!lsp/@getangle.lsp | ;nie uzywac
(defun @getangle ()
;!zbedne
(setq $p1 (getpoint "Wskaz pkt w kierunku strzalki"))
(setq $p2 (getpoint "Wskaz pkt w kierunku konca"))
(setq $angle (- (@RtD (angle $p2 $p1)) 90))
(command "_ro" pause pause pause pause $angle )
(princ)
(command "_.move" "_p" "" )
) | 298 | Common Lisp | .l | 10 | 26.6 | 56 | 0.612457 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 204f9efb170ad482ced632d593ee275aa1835bbaa874eff8286b2f8f8d99d5ca | 42,024 | [
-1
] |
42,025 | @MieszkaniaSzybkie.lsp | nobodybusiness_lisp-backup/!lsp/@MieszkaniaSzybkie.lsp | ;mieszkania schemat przy nie kolejnym numerowaniu
(defun c:@mieszkania ()
(setq $fromNumber 0)
(setq $numberOf 0)
(setq $ifUslugi (getint "<1 - LU><0 - HH>"))
(setq $fromNumber (getint "from number:"))
(setq $numberOf (getint "number of:"))
(setq $i 0)
(setq $j 0)
(setq $licz_wierszy 4)
(set... | 1,153 | Common Lisp | .l | 37 | 24.567568 | 72 | 0.514337 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 939e7621dd0264d6f1b4e46cf8b075b3171cd5dd666cabf7e2f2d6641645b4a6 | 42,025 | [
-1
] |
42,026 | @PIGTAIL ZMIANA NUMERACJI.lsp | nobodybusiness_lisp-backup/!lsp/@PIGTAIL ZMIANA NUMERACJI.lsp | (defun c:@pigtail_zmiana_numeracji ()
(setq ss (ssget))
(setq i 0)
(setq plus_minus (getint "+/-:"))
(while (< i (sslength ss))
(setq $VAL 0)
(setq $ent (ssname ss i))
(setq $name "none")
(setq $name (cdr (assoc '0 (entget $ent))))
(while (not (equal $name "SEQEND")) ;NAZWA PROJEKTU
... | 893 | Common Lisp | .l | 28 | 24.75 | 79 | 0.50289 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 7bd87af60fcfaa785460b1a6a1d606ec207eadddc8413afb93066f5aee3594b0 | 42,026 | [
-1
] |
42,027 | @deletelayouts.LSP | nobodybusiness_lisp-backup/!lsp/@deletelayouts.LSP | ;usuwanie wszystkich layoutow
(defun C:laydel ()
(vl-load-com)
(vlax-for layout (vla-get-layouts
(vla-get-ActiveDocument (vlax-get-acad-object))
)
(if (/= (vla-get-name layout) "Model")
(vla-delete layout)
)
)
) | 252 | Common Lisp | .l | 11 | 18.272727 | 54 | 0.616667 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 6a2b4f8dfc301a25e0e1b4b635d50efc9646bc737e8821d478fd770a2365c583 | 42,027 | [
-1
] |
42,028 | @OSD-OKW-NUMERACJA.lsp | nobodybusiness_lisp-backup/!lsp/@OSD-OKW-NUMERACJA.lsp | (defun c:@OSD_OKW_NUMERACJA_ARROW ()
(vl-load-com)
(setq ss (ssget))
(setq i 0)
(setq osdOrOkw (getint "OSD <1> OKW <2>"))
(setq startingOSDprefix (getstring "OSD_OKW_Prefix: "))
(setq startingOSDnumber (getreal "OSD_OKW: "))
(if (= osdOrOkw 1)
(setq osdOrOkwText "OSD")
)
(if (= osdOrO... | 2,500 | Common Lisp | .l | 70 | 30.185714 | 79 | 0.624073 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a9835362994087b6bc1853ba8c7dea6586498d81b1478235841f0d2cf8537a49 | 42,028 | [
-1
] |
42,029 | @offsetMultiple.lsp | nobodybusiness_lisp-backup/!lsp/@offsetMultiple.lsp | ;wielokrotne osuniecie
(defun c:@offsetMultiple ()
(command "_offset" pause pause "m")
)
| 97 | Common Lisp | .l | 4 | 21.25 | 38 | 0.688172 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | f14ea65847635f48bfcd5450d88d763b304b4b56c6a673e8b9065d213372bfb3 | 42,029 | [
-1
] |
42,030 | @NR_OSD_OKW.lsp | nobodybusiness_lisp-backup/!lsp/@NR_OSD_OKW.lsp | ;renumeracja wszystkich oznaczen OKW_ na kolejne od zadanego
(defun c:@NR_OSD_OKW ()
(vl-load-com)
(setq ss (ssget))
(setq i 0)
(while (< i (sslength ss))
(setq $VAL 0)
(setq $ent (ssname ss i))
(setq $name "none")
(setq $name (cdr (assoc '0 (entget $ent))))
(while (not (equal $name... | 963 | Common Lisp | .l | 30 | 25.1 | 84 | 0.536977 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | b0cd19d2f079f4890205815509c9f49a074d292592b923ee40f704d592f9a411 | 42,030 | [
-1
] |
42,031 | @STUDNIA_OZNACZENIE.lsp | nobodybusiness_lisp-backup/!lsp/@STUDNIA_OZNACZENIE.lsp | ;wstawienia studni
(defun c:@STUDNIA_OZNACZENIE()
(vl-load-com)
(command "-insert" "studnia_blok" pause "0.5" "0.5" pause)
(princ)
)
| 142 | Common Lisp | .l | 6 | 21.166667 | 60 | 0.669118 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 2b542dab751bd1a273b7c3a18f9094ba5fd8fb22eabfaefd3689e7be72eb269f | 42,031 | [
-1
] |
42,032 | @Laycolor.lsp | nobodybusiness_lisp-backup/!lsp/@Laycolor.lsp | ;zmiana koloru warstwy
(defun c:@LayColor (/ ss clr col i lst lay)
(vl-Load-Com) ; dodaj if bo od 1-255
(if (setq ss (ssget "_:L"))
(progn
(setq lst ","
ccl (getvar 'CECOLOR)
)
(repeat (setq i (sslength ss))
(setq
lay (strcat
(cdr (assoc... | 859 | Common Lisp | .l | 33 | 17.484848 | 69 | 0.453446 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | e3b8b2de153baf6656afd5b403b83a1927685a4a072843a8d852006e2ec6d5b1 | 42,032 | [
-1
] |
42,033 | @kabel_opis_new.lsp | nobodybusiness_lisp-backup/!lsp/@kabel_opis_new.lsp | ;opis dla kabla
(defun c:@op ()
(vl-load-com)
(setq ss (ssget))
(setq $ent_ename (ssname ss 0))
(setq $ent_data (entget $ent_ename))
(setq $text (cdr (assoc '304 $ent_data)))
(setq x1 (strcat "d�. tras. " (getstring "d�. tras:") "m"))
(setq x2 (strcat "d�. inst. " (getstring "d�. inst:") "m"))
(... | 1,384 | Common Lisp | .l | 33 | 37.212121 | 74 | 0.582635 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 5d835a7f33cdd66b8159cef69c2cda26d8678d4bd715e1605fcf03b25a04974e | 42,033 | [
-1
] |
42,034 | chowanie_wyników_abc.lsp | nobodybusiness_lisp-backup/!lsp/chowanie_wyników_abc.lsp | ;chowanie wynikow
(defun c:abcc ()
(command "_.layer" "_s" "0" "")
(command "_.layer" "_f" "tkd_abc_*" "")
)
(defun c:abco ()
(command "_.layer" "_s" "0" "")
(command "_.layer" "_t" "tkd_abc_*" "")
(command "_.layer" "_f" "tkd_abc_elements" "")
) | 262 | Common Lisp | .l | 10 | 23.7 | 48 | 0.50996 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 4cd59a9e3023c0f95d21e528efd572478a8d17f807f88a6bbb059d68df3bf03b | 42,034 | [
-1
] |
42,035 | poprzedni_wybor.lsp | nobodybusiness_lisp-backup/!lsp/poprzedni_wybor.lsp | ;funkcja poprzedniego zaznaczenia
(defun C:ost ()
(command
"_pselect"
"_p"
""
)
(princ)
) ;defun
;--------------------------------
;funkcja stworzenia zapisu
(defun c:zap ()
(setq zapis (ssget))
)
;--------------------------------
;funkcja pzywrocenia zazn... | 5,102 | Common Lisp | .l | 199 | 20.683417 | 79 | 0.460282 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a64222a9a58459e8c6ab04200b4825bdc635fb00b98600f7b0fa43af425bf076 | 42,035 | [
-1
] |
42,036 | @oznacznie_dl_l.lsp | nobodybusiness_lisp-backup/!lsp/@oznacznie_dl_l.lsp | (defun @oznaczenie_dl_przyl ()
(if (setq $SS (ssget '((0 . "LWPOLYLINE")))) ; przyjecie z zaznaczenie tylko plinii
(progn
(setq $line (ssname $ss 0))
;znajduje wszytskie pkt plinni i przypisuje je do listy
(setq $plist (mapcar 'cdr
(vl-remove-if-not
... | 2,543 | Common Lisp | .l | 69 | 27.84058 | 115 | 0.480956 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 918fe765fbba90bee4ef1e05c991daa9e75d899948b93f7a07f1cf40124459f6 | 42,036 | [
-1
] |
42,037 | @PIGTAIL.lsp | nobodybusiness_lisp-backup/!lsp/@PIGTAIL.lsp | (defun c:@pigtail ()
(setq $fromNumber 0)
(setq $toNumber 0)
(setq $ifUslugi (getint "<2 - AU><1 - LU><0 - HH>"))
(setq $fromNumber (getint "from number:"))
(if (/= $ifUslugi 2)
(progn
(setq $toNumber (getint "to number:"))
)
)
(if (= $ifUslugi 2)
(progn
;================... | 2,929 | Common Lisp | .l | 99 | 20.878788 | 93 | 0.420848 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | f6ca328c4d1da3481295c17bd3fb1478438dff2e41a786431a9bf156311d216f | 42,037 | [
-1
] |
42,038 | @mieszkania.lsp | nobodybusiness_lisp-backup/!lsp/@mieszkania.lsp | ;generowanie schematu mieszkn z txt
(setq $lsp_adress_mieszkania "C:/Users/Desktop/Piotr P/test/uklad mieszkan/")
(defun @blok_tabelka (x)
(vl-load-com)
(command "-insert" "tabelka_blok" x "" "" "") ;wstawia blok tabelki
(command "_explode" "_l") ; explode tabelki
)
(defun c:@wstawienie_blokow ()
(v... | 17,462 | Common Lisp | .l | 461 | 30.004338 | 201 | 0.484666 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 4eb4369b7ef8872ebbb8ac634f14cce48da5afed17171308175a08d1905d59b7 | 42,038 | [
-1
] |
42,039 | @Audyt_i_Purge.lsp | nobodybusiness_lisp-backup/!lsp/@Audyt_i_Purge.lsp | ;glebokie czysczenie rysunku
; Audyt pliku
(defun @Audyt_i_Purge ()
;purgowanie wszystkich elementow
(command "-purge" "a" "*" "n")
(command "-purge" "r" "*" "n")
;naprawa i sprawdzenie bledow na rys
(command "audit" "y")
;purgowanie wszystkich elementow
(command "-purge" "a" "*" "n")
(command... | 507 | Common Lisp | .l | 17 | 26.411765 | 50 | 0.628571 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 8bb9817956e5aa375a4b27e72e818d1759386b69affa732c9a5fe7a2d5988b9f | 42,039 | [
-1
] |
42,040 | @invertSelection.lsp | nobodybusiness_lisp-backup/!lsp/@invertSelection.lsp | ;odrocenie zaznaczenie (usun wszystko poza zaznaczonym obszarem)
(defun c:@invertSelection ()
(vl-load-com)
(setq $area (entget (car (entsel)))) ;pobiera od uzytkownika zaznaczenie
(setq $pts nil)
(while
(setq $zm_pt (assoc 10 $area)) ; odczytujemy pierwszy wiercho�ek
(setq $pts (append $pt... | 787 | Common Lisp | .l | 17 | 41.705882 | 141 | 0.655263 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | d842959db69c30035e190073bb832bacd3bf1671d5414dd9705e9dcb0d9c6501 | 42,040 | [
-1
] |
42,041 | @BURST.lsp | nobodybusiness_lisp-backup/!lsp/@BURST.lsp | ;rozbicie z przypisaniem wartosci
(defun c:@BURST ( / ssbl cnt en eL )
; select all Blocks and set a loop counter
(setq ssbl (ssget (list (cons 0 "INSERT")(cons 66 1)))
cnt 0
)
;loop through all selected blocks...
(repeat (sslength ssbl)
; get Block entity list
(setq en (ssname... | 1,336 | Common Lisp | .l | 36 | 27.944444 | 82 | 0.536413 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | aaa81713a916dd41334df9f40aef6a01046db3425ae4f7c5b5ea9f925e17aee5 | 42,041 | [
-1
] |
42,042 | @otworowka.lsp | nobodybusiness_lisp-backup/!lsp/@otworowka.lsp | (defun @otworwka (ssgetFromOutside)
(vl-load-com)
(if ssgetFromOutside
(setq $zazn ssgetFromOutside)
(setq $zazn (ssget '((0 . "INSERT") (2 . "dl_linni")))) ;dl_linni
)
(setq $zazn_name (ssname $zazn 0))
(setq $name "none")
(setq $name (cdr (assoc '0 (entget $zazn_name))))
(while (not (e... | 983 | Common Lisp | .l | 26 | 33.115385 | 84 | 0.584117 | nobodybusiness/lisp-backup | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 00627d5f1ededf152b51f2be63ecb5fdd1b7592cd5999c189524efca20e022b2 | 42,042 | [
-1
] |
42,116 | nineteen.lisp | drvdputt_aoc-2022/src/nineteen.lisp | (declaim (optimize (speed 3) (debug 0) (safety 0)))
;; try to write a generic state search thing
(load "dfss.lisp")
(defun dfss/recurse (cur-state
end-p
state-score-f
next-states-f)
"Depth first state search.
STATE can be anything. This state (and e... | 10,509 | Common Lisp | .lisp | 214 | 38.21028 | 96 | 0.588952 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 07a713b9af67d96fc3a5fededaa1809a8720d3d14fa80d498df0148603e9f458 | 42,116 | [
-1
] |
42,117 | four.lisp | drvdputt_aoc-2022/src/four.lisp | (load "file.lisp")
(defvar lines (read-lines #p"four-input.txt"))
;; (defvar lines (read-lines #p"four-example-input.txt"))
(defun is-contained (min1 max1 min2 max2)
(or
;; 2 contained in 1
(and (<= min1 min2) (<= max2 max1))
;; 1 contained in 2
(and (<= min2 min1) (<= max1 max2))))
(defun is-partial-o... | 872 | Common Lisp | .lisp | 25 | 32 | 69 | 0.680572 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 84710ac445efc83094b07d5011410dd87eb474359ecf7a36e4cf6ba661ba9089 | 42,117 | [
-1
] |
42,118 | num.lisp | drvdputt_aoc-2022/src/num.lisp | (defun int-histogram (numbers)
(loop for n in numbers
with hist = (make-hash-table :test 'eq)
if (gethash n hist)
do (incf (gethash n hist))
else
do (setf (gethash n hist) 1)
end
finally (return hist)))
(defun at-max (valuelist otherlist)
(let ((maxval 0)
(maxother 0))
(... | 1,415 | Common Lisp | .lisp | 43 | 27.511628 | 67 | 0.635699 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a4015cd1b6c3ff05779cdba2f13871a5644e49837717d62dd9b63885b36b1665 | 42,118 | [
-1
] |
42,119 | eighteen.lisp | drvdputt_aoc-2022/src/eighteen.lisp | (load "file.lisp")
(load "string.lisp")
(ql:quickload :array-operations)
(defparameter lines (read-default-input "eighteen"))
(defparameter lines-e (read-default-input "eighteen-example"))
(defun integer-array (n)
(make-array n :element-type 'integer :initial-element 0))
;; let's go the easy route. Just make a 3d ... | 5,790 | Common Lisp | .lisp | 133 | 34.864662 | 98 | 0.557456 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 16a564f58306d8fd7c8f4b6a591ae949f6e67e3497a3a85d95002e5462dd0c4f | 42,119 | [
-1
] |
42,120 | eight.lisp | drvdputt_aoc-2022/src/eight.lisp | (load "file.lisp")
(defvar lines nil)
(defvar nrows nil)
(defvar ncols nil)
(setq lines (read-default-input "eight"))
(setq nrows (length lines))
(setq ncols (length (first lines)))
(defun make-tree-array-zeros ()
(make-array (list nrows ncols) :element-type 'integer))
(defun make-array-same-shape (array)
(make-a... | 5,458 | Common Lisp | .lisp | 139 | 34.582734 | 80 | 0.671453 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 0a298e6dfeb579d562e9d7cc9b3922eb40f6393c8ed30d21281a56294e955445 | 42,120 | [
-1
] |
42,121 | eleven.lisp | drvdputt_aoc-2022/src/eleven.lisp | (defvar all-divisors-used nil)
(load "file.lisp")
(defvar lines nil)
(setq lines (read-default-input "eleven"))
(defun monkey/init (items ;; list of int
operation ;; function(old) -> new
divisor ;; int for divisible test
next-true ;; index of next monkey if True
next-false) ;; index of next mo... | 6,968 | Common Lisp | .lisp | 167 | 38.479042 | 78 | 0.691672 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 65876587ed4eb0c433b3c35344acdcabae26a0593e11b91b5371f29efad03762 | 42,121 | [
-1
] |
42,122 | nine.lisp | drvdputt_aoc-2022/src/nine.lisp | (load "file.lisp")
(defvar lines)
(setq lines (read-default-input "nine"))
;; (setq lines (read-lines "nine-example-input.txt"))
(defun rope/default ()
(list :xh 0 :yh 0 :xt 0 :yt 0))
;; rope: see definition above, direction: character D, U, R, or L
(defun rope/move-once (rope direction)
(let ((newrope (copy-list... | 4,192 | Common Lisp | .lisp | 110 | 34.381818 | 79 | 0.676847 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 3ef65fe7a3247b49fa7bfdae9bee5192404d09c4cd6e82ae9e6f4773e35b48e1 | 42,122 | [
-1
] |
42,123 | twentyone.lisp | drvdputt_aoc-2022/src/twentyone.lisp | (load "file.lisp")
(defparameter lines-e (read-default-input "twentyone-example"))
(defparameter lines (read-default-input "twentyone"))
(defstruct monkey
name
value ;; nil by default. Will be set once the monkey is able to execute its operation.
operation ;; operation and dependens will remain nil for constant ... | 4,925 | Common Lisp | .lisp | 110 | 33.509091 | 88 | 0.555391 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a2cff4d744fc424952be612b2cbf7d720754bf6773c07fa913279f60734cbcd3 | 42,123 | [
-1
] |
42,124 | ten.lisp | drvdputt_aoc-2022/src/ten.lisp | (load "file.lisp")
(defvar lines (read-default-input "ten"))
(defun cpu-state/default ()
(list :cycle 1 :x 1))
(defun cpu-state/noop (cpu-state)
(let ((new-state (copy-list cpu-state)))
(incf (getf new-state :cycle))
new-state))
(defun cpu-state/addx (cpu-state i)
(let ((new-state (copy-list cpu-state)... | 3,145 | Common Lisp | .lisp | 78 | 36.192308 | 88 | 0.679029 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a86be6e56c8b840d94b68ec9b0aa1456885194a06970d30cbbb8ace680fa8d17 | 42,124 | [
-1
] |
42,125 | twentythree.lisp | drvdputt_aoc-2022/src/twentythree.lisp | (load "file.lisp")
(load "num.lisp")
(ql:quickload :array-operations)
(ql:quickload :alexandria)
;; reuse old function
(defparameter a-small (read-array "twentythree-small-input.txt" 'char))
;; putting everything on a grid would results in O(N) runtime for neighbor checking (go over
;; entire array, and for every pos... | 7,792 | Common Lisp | .lisp | 197 | 31.370558 | 103 | 0.567664 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a3353ee67ecc41576694cf819188ecc62fb4ef5109267c62e5ed1af5412a74a3 | 42,125 | [
-1
] |
42,126 | fifteen.lisp | drvdputt_aoc-2022/src/fifteen.lisp | (load "string.lisp")
;; manhattan distance = delta x + delta y
(defun distance (x1 y1 x2 y2)
(+ (abs (- x1 x2)) (abs (- y1 y2))))
(defun sensor/parse (line)
(let* ((numbers (find-all-int line))
(sx (first numbers))
(sy (second numbers))
(bx (nth 2 numbers))
(by (nth 3 numbers)))
... | 4,322 | Common Lisp | .lisp | 98 | 33.244898 | 114 | 0.542606 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 0a232b75dc566058648a7d632d1a2ef9f4c37758ce97431c1ea299d0b6899d6e | 42,126 | [
-1
] |
42,127 | seventeen.lisp | drvdputt_aoc-2022/src/seventeen.lisp | (load "file.lisp")
(defparameter gas (car (read-default-input "seventeen")))
(defparameter gas-e ">>><<><>><<<>><>>><<<>>><<<><<<>><>><<>>")
(defparameter the-gas gas)
;; (setq the-gas gas-e)
;; width of the chamber
(defparameter width 7)
;; lowest and highest possible x
(defparameter x-lo 0)
(defparameter x-hi (1- w... | 12,530 | Common Lisp | .lisp | 277 | 33.620939 | 116 | 0.538764 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 04cb3f24bc2623a74188347af5cb3bfefda6cf972ad1af715c343649c00c4bac | 42,127 | [
-1
] |
42,128 | fourteen.lisp | drvdputt_aoc-2022/src/fourteen.lisp | (load "file.lisp")
(load "string.lisp")
(load "num.lisp")
;; return list of x and y coordinates of all the wall segments, from a
;; wall specification (list of the x and y of the corners)
(defun make-wall-path (xs ys)
(let* ((prev-x (car xs))
(prev-y (car ys))
(path (list (cons prev-x prev-y))))
... | 8,053 | Common Lisp | .lisp | 194 | 32.278351 | 105 | 0.569641 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a9ef07501c56fafe89f20bbcdd7ad676cb64966775a9feed73a0a003ffd530b0 | 42,128 | [
-1
] |
42,129 | list-tools.lisp | drvdputt_aoc-2022/src/list-tools.lisp | ;; collect unique values
(defun list-tools/unique (input-list test)
(let ((unique-entries nil))
(loop for item in input-list
if (not (member item unique-entries :test test))
do (push item unique-entries))
unique-entries))
(defun pprint-hashmap (h)
(loop for k being each hash-key of h... | 500 | Common Lisp | .lisp | 15 | 23 | 58 | 0.572062 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 0eef86edfb966a82823d076223c825fa921bdc5378481864276a67b55eab60e0 | 42,129 | [
-1
] |
42,131 | twentyfour.lisp | drvdputt_aoc-2022/src/twentyfour.lisp | (load "file.lisp")
(load "dfss.lisp")
(ql:quickload :array-operations)
(ql:quickload :alexandria)
(defparameter +time-limit+ 20)
(defparameter chars-e (read-array "twentyfour-example-input.txt" 'char))
(defparameter chars-c (read-array "twentyfour-complex-input.txt" 'char))
(defparameter chars (read-array "twentyfour... | 6,639 | Common Lisp | .lisp | 172 | 26.197674 | 98 | 0.463782 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 37487ab62e7dabbb950143e2e57a83b46ff5fd697ae0e991f8aeb64bcd39a699 | 42,131 | [
-1
] |
42,132 | one.lisp | drvdputt_aoc-2022/src/one.lisp | #!/usr/bin/sbcl --script
(load "file.lisp")
(defvar input (read-lines #p"one-input.txt"))
;; (print input)
;;
;; (print (cl-ppcre:split "0" input))
(defvar sums (list))
(defvar indices (list))
(let ((currentsum 0)
(elf 1))
(loop for x in input
when (string= x "")
collect currentsum into maxes
... | 685 | Common Lisp | .lisp | 23 | 26.565217 | 58 | 0.663126 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 8136ba8802c972eb5a0bc325e1367291f4bf91e5d9854b6f8c2b92efed0446eb | 42,132 | [
-1
] |
42,133 | twelve.lisp | drvdputt_aoc-2022/src/twelve.lisp | (defun char-math (integer-operation c1 c2)
(funcall integer-operation
(char-int c1) (char-int c2)))
(defun char- (c1 c2)
(char-math (function -) c1 c2))
(defun array/find-value (a char)
(loop for i from 0 below (array-dimension a 0)
for jfound = (loop for j from 0 below (array-dimension a 1)
for c =... | 6,414 | Common Lisp | .lisp | 168 | 34.494048 | 107 | 0.648392 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | eb13aae6cf9fa97db88c7a7799dec6399071a611aa31617e2ccf0e7fe5be0938 | 42,133 | [
-1
] |
42,134 | twenty.lisp | drvdputt_aoc-2022/src/twenty.lisp | (load "file.lisp")
(load "string.lisp")
(load "num.lisp")
(load "list-tools.lisp")
(defparameter numbers (mapcar #'parse-integer (read-default-input "twenty")))
(defparameter numbers-e '(1 2 -3 3 -2 0 4))
(defun shift-element-position (position-table i delta)
"Shift element by skipping over <delta> elements (with ro... | 5,174 | Common Lisp | .lisp | 130 | 32.3 | 102 | 0.583898 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 70b10b7084a98a6dd5e7490dcaf0ec81d054cd8f79cc4b1b1017800bd8fadaa8 | 42,134 | [
-1
] |
42,135 | five.lisp | drvdputt_aoc-2022/src/five.lisp | (load "file.lisp")
(defvar lines nil)
(setq lines (read-default-input "five"))
;; find line that starts with " 1" to figure out number of stacks
(load "string.lisp")
(defvar stack_definition_line nil)
(defvar stack_definition_index nil)
(loop for l in lines
for i = 0 then (+ 1 i)
when (starts-with l " 1")
... | 3,382 | Common Lisp | .lisp | 97 | 31.020619 | 79 | 0.673494 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 46e7d494200ad05c9f4b252a04ae5aa7b5c528e87f419d6a73c16f7d927574b7 | 42,135 | [
-1
] |
42,136 | sixteen.lisp | drvdputt_aoc-2022/src/sixteen.lisp | (load "file.lisp")
(load "string.lisp")
(load "list-tools.lisp")
(defparameter lines-e (read-default-input "sixteen-example"))
(defparameter lines (read-default-input "sixteen"))
(defun valve/parse (line)
(list
;; fixed position
:name (subseq line 6 8)
;; the only number in the string
:rate (first (find-... | 19,901 | Common Lisp | .lisp | 389 | 36.526992 | 111 | 0.543038 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 4885308523434f0b2ebcf0a86fa4ab120d7862d84a4b6246008947f03fdbb79a | 42,136 | [
-1
] |
42,137 | dijkstra.lisp | drvdputt_aoc-2022/src/dijkstra.lisp | ;; build up a distance matrix using dijktra's algorithm
(defun dijkstra/distance-matrix-init (num-nodes)
(make-array (list num-nodes num-nodes)
:element-type 'integer
:initial-element -1))
(defun dijkstra/set-distance (matrix i j d)
(setf (aref matrix i j) d)
(setf (aref matrix j i) d... | 5,030 | Common Lisp | .lisp | 90 | 45.322222 | 100 | 0.625886 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 185c836cdad54b9bf1643620f5e3f720cfd00b5ec254278fff0b785aa2bd7a5f | 42,137 | [
-1
] |
42,138 | file.lisp | drvdputt_aoc-2022/src/file.lisp | (require "asdf")
(defun read-lines (fn)
(uiop:read-file-lines fn))
(defun read-default-input (prefix)
(read-lines (pathname (concatenate 'string prefix "-input.txt"))))
(provide "file")
;; assumes that all lines are of equal length
;; supported read-in types: numbers, chars
(load "string.lisp")
(defun read-array ... | 794 | Common Lisp | .lisp | 24 | 28.208333 | 68 | 0.626144 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | fa3fe82368d3f45e665aca10208cf608f66b72ce06fd3eb519ed525ebe918215 | 42,138 | [
-1
] |
42,139 | six.lisp | drvdputt_aoc-2022/src/six.lisp | (load "string.lisp")
(defvar example "mjqjpqmgbljsphdztnvjfqwrcgsmlb")
(defvar input "djhjvjggdzznllvvrvggscgscsrrffgvfvllfclcrchhwzhzqqlhqhffsdsmmcffnggcttdpttwpwttjvtjvtvqqctcwcmcsswvwzzlnzlnnvbnbdnngmmhchrcrqqhbhllbtllmppgjjtvjvdjvvpcpjcjjfrfzfzzdvzdvvswvvjzzbpzbzzddbndbbgjbjjvpjpjtjqtjqjcjmcjjrtjrjrqqvtvpvwpprhphr... | 4,549 | Common Lisp | .lisp | 14 | 322.642857 | 4,112 | 0.973057 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 211e5466414ff08e1e4eceb3ea44f43a4153880b7dab544623489f975ee6e785 | 42,139 | [
-1
] |
42,140 | twentytwo.lisp | drvdputt_aoc-2022/src/twentytwo.lisp | (load "file.lisp")
(load "num.lisp")
(defparameter lines (read-default-input "twentytwo"))
(defparameter lines-e (read-default-input "twentytwo-example"))
(defun parse-map (lines)
"Read map into char array from input lines."
(let* ((h (- (length lines) 2))
(w (apply #'max (mapcar #'length (subseq lines 0 ... | 14,137 | Common Lisp | .lisp | 349 | 29.687679 | 123 | 0.503205 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | a1ec47db86f3d87820f8e34d8011ccfc88789706a1c80dcbe1b1fecdf420a429 | 42,140 | [
-1
] |
42,141 | thirteen.lisp | drvdputt_aoc-2022/src/thirteen.lisp | (defun ensure-list (i)
(if (numberp i)
(list i)
i))
;; trinary: -1 in order, 1 out of order, 0 undecided
(defun compare-any (v1 v2)
(cond
;; both integer. this is the exit of the recursion
((and (numberp v1) (numberp v2))
(compare-int v1 v2))
;; at least one list --> recurse
(t
... | 3,344 | Common Lisp | .lisp | 98 | 29.438776 | 71 | 0.622477 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 0400cf04f435e0d835d571f6fc7fda7e772d95b53e99cf917581a607030b6f0d | 42,141 | [
-1
] |
42,142 | two.lisp | drvdputt_aoc-2022/src/two.lisp | #!/usr/bin/sbcl --script
(load "file.lisp")
(defvar lines (read-lines #p"two-input.txt"))
(defun score (line hands-function)
(let ((hands (funcall hands-function line)))
;; remember that hands is (opponent me)
(+ (choice-score (nth 1 hands))
(apply (function win-score) hands))))
(defun choice-sco... | 1,770 | Common Lisp | .lisp | 53 | 29.830189 | 68 | 0.609569 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 4be2a567171d38c8bcdd7c7841e2a4a1dae241b2ec73462ac4e81fcb57653522 | 42,142 | [
-1
] |
42,143 | three.lisp | drvdputt_aoc-2022/src/three.lisp | #!/usr/bin/sbcl --script
(load "file.lisp")
(load "string.lisp")
(defvar lines (read-lines #p"three-example-input.txt"))
(defvar halves-example (string-halves (nth 0 lines)))
(print (nth 0 halves-example))
(print (nth 1 halves-example))
(print (apply (function common-character) (string-halves (nth 0 lines))))
(defu... | 1,364 | Common Lisp | .lisp | 33 | 37.454545 | 73 | 0.660606 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | d90d33a2e8733885ede2375b9b74664022e73324caebe9ed58fad18975c8529c | 42,143 | [
-1
] |
42,144 | dfss.lisp | drvdputt_aoc-2022/src/dfss.lisp | (defun dfss/recurse (cur-state
end-p
state-score-f
next-states-f)
"Depth first state search.
STATE can be anything. This state (and evolutions of this state) will be passed to the
functions below. The details depend on these functions.
END-P sh... | 2,486 | Common Lisp | .lisp | 42 | 44.880952 | 96 | 0.605166 | drvdputt/aoc-2022 | 0 | 0 | 0 | GPL-3.0 | 9/19/2024, 11:51:06 AM (Europe/Amsterdam) | 665e47b11aa541a4c5fe0c14e7a69bd05b5a990b62c91f8d9c24d6bba5b8a19d | 42,144 | [
-1
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.