This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; +----------------------------------------------------------------+ | |
| ;;;; | Advent of Code 2021 | | |
| ;;;; +----------------------------------------------------------------+ | |
| (defpackage #:snippets/aoc2021/day3 | |
| (:use #:cl) | |
| (:export | |
| #:day3)) | |
| (in-package #:snippets/aoc2021/day3) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; +----------------------------------------------------------------+ | |
| ;;;; | Advent of Code 2021 | | |
| ;;;; +----------------------------------------------------------------+ | |
| (defpackage #:snippets/aoc2021/day2 | |
| (:use #:cl) | |
| (:export | |
| #:day2)) | |
| (in-package #:snippets/aoc2021/day2) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; +----------------------------------------------------------------+ | |
| ;;;; | Advent of Code 2021 | | |
| ;;;; +----------------------------------------------------------------+ | |
| (defpackage #:snippets/aoc2021/day1 | |
| (:use #:cl) | |
| (:export | |
| #:day1)) | |
| (in-package #:snippets/aoc2021/day1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; A GUI for fetching all third party git Lisp repos. | |
| ;; | |
| ;; Kinda silly and limited, but what the hell. | |
| (defpackage #:snippets/clim-repos | |
| (:use #:clim-lisp #:clim) | |
| (:shadow | |
| #:merge) | |
| (:import-from | |
| #:uiop) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;; [15:04] <_death> sure, it's not too difficult.. you could also pick an existing syntax | |
| ;; I answered binrapt after he talked about template engines. | |
| ;; I don't think I ever wrote a template engine, so why did I say that? | |
| ;; Anyway, let's write a template engine. | |
| (defpackage #:snippets/template-engine | |
| (:use #:cl) | |
| (:import-from #:alexandria | |
| #:emptyp) | |
| (:import-from #:sb-ext |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defpackage #:snippets/obfuscate | |
| (:use #:cl) | |
| (:import-from #:cl-permutation) | |
| (:export | |
| #:*seed* | |
| #:ob | |
| #:unob)) | |
| (in-package #:snippets/obfuscate) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defpackage #:snippets/history-class | |
| (:use #:cl #:closer-mop) | |
| (:shadowing-import-from | |
| #:closer-mop | |
| #:standard-generic-function | |
| #:defgeneric | |
| #:defmethod) | |
| (:import-from | |
| #:fset) | |
| (:export |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| (defmacro define-equality-test (name (&rest options) &body cases) | |
| (declare (ignore options)) | |
| `(defun ,name (object1 object2) | |
| (cond ,@(mapcar #'make-cond-clause cases)))) | |
| (defun make-cond-clause (case) | |
| (destructuring-bind (type comparison) case | |
| `((and (typep object1 ',type) | |
| (typep object2 ',type)) | |
| ,(make-comparison-body comparison 'object1 'object2 'identity)))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CL-USER> (test-defcstruct-array) | |
| [third-party/cells-gtk3/gtk-ffi/gtk-core.lisp:53] | |
| (CFFI:DEFCSTRUCT G-VALUE | |
| (G-TYPE GTYPE) | |
| (G-DATA (:ARRAY G-VALUE-DATA 2))) | |
| [third-party/cffi/tests/fsbv.lisp:88] | |
| (DEFCSTRUCT (STRUCT-WITH-ARRAY :SIZE 6) (S1 (:ARRAY :CHAR 6))) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ;;;; +----------------------------------------------------------------+ | |
| ;;;; | Advent of Code 2020 | | |
| ;;;; +----------------------------------------------------------------+ | |
| (defpackage #:snippets/aoc2020/day25 | |
| (:use #:cl) | |
| (:import-from | |
| #:ironclad | |
| #:expt-mod) | |
| (:export |