Skip to content

Instantly share code, notes, and snippets.

View gabriel-laddel's full-sized avatar

Gabriel Laddel gabriel-laddel

View GitHub Profile
@gabriel-laddel
gabriel-laddel / kkk.lisp
Created March 12, 2018 18:51
A 1/3 or less of the way reimplementation of kkk.lisp, which (used to be) utilities for hacking on SBCL / writing a good deal less CL / a "metaprogramming core" for Cl, seeing as people don't really metaprogram that much
;; http://cincyisit.com/events-and-learning
;; https://www.cintrifuse.com/cintrifuse-role-for-greater-cincinnati/
(defvar metaprogamming-systems
'(:anaphora :cl-ppcre :optima :fare-quasiquote :named-readtables :fare-utils
:fare-utils :optima.ppcre :FARE-QUASIQUOTE-OPTIMA :FARE-QUASIQUOTE-readtable
:sb-introspect))
(defvar graphics-systems
'(:mcclim :mcclim-bezier :mcclim-bezier-clx :mcclim-clx-fb :clim-widgets
:climacs :clouseau :clim-listener))
@gabriel-laddel
gabriel-laddel / gist:37c35950cf18bd7ac933
Created May 28, 2015 11:34
lisp-customizations.lisp
(in-package #:mm)
(sb-ext:restrict-compiler-policy 'debug 3)
(setq mm::*system-information* nil)
;;; interface to the SynPS/2 Synaptics TouchPad
;;; ============================================================================
(defun touchpad-id ()
@gabriel-laddel
gabriel-laddel / dart.md
Last active August 29, 2015 14:15 — forked from paulmillr/dart.md

---------- Forwarded message ----------

From: Mark S. Miller <erights@google.com>
Date: Tue, Nov 16, 2010 at 3:44 PM
Subject: "Future of Javascript" doc from our internal "JavaScript Summit"
last week
To: javascript-standard@google.com
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;; masamune customization
;;;
;;; there are two types of customizations that must be taken into account, and
;;; eventually, one. the first, Emacs customizations, the second, for lisp.
;;; the corresponding files emacs-customizations.el and lisp-customizations.lisp
;;; get loaded at the end of the init process. think of it as a replacement
;;; for your .emacs and .sbclrc files.
(in-package #:mm)
http://siliconvalleyredneck.typepad.com/siliconvalleyredneck/2012/02/whatever-became-of-ilkka-kokkarinen.html
what happened to the wingnut musings?
@gabriel-laddel
gabriel-laddel / gist:2205ae3e1c54abfee633
Created November 10, 2014 13:33
this code looked useful - from jaderholem's dotfiles
(defun char-utf-8-byte-length (char)
(let ((code (char-code char)))
(cond ((< code 128) 1)
((< code 2048) 2)
((< code 65536) 3)
(t 4))))
(defmacro as-utf-8-bytes (char writer)
"Given a character, calls the writer function for every byte in the
encoded form of that character."
(defvar *masamune-pathnames*
'("~/.conkerorrc"
"~/.emacs"
"~/.masamune/emacs-desktop-state/"
"~/.mozrepl-conkeror.js"
"~/.sbclrc"
"~/.swank.lisp"
"~/Pictures/screenshots/"
"~/algol/"
"~/lisp/"
http://bobblum.com/ESSAYS/COMPSCI/EUV.html
http://en.wikipedia.org/wiki/Parser_combinator
http://www.gibiansky.com/
Modified init.el
diff --git a/init.el b/init.el
index ee76573..ac5f03f 100755
--- a/init.el
+++ b/init.el
@@ -146,7 +146,7 @@
slime-protocol-version 'ignore
;; TODO 2014-10-22T20:21:26-07:00 Gabriel Laddel
;; specific to nixos
- inferior-lisp-program (car (split-string (subseq (shell-command-to-string "whereis sbcl") 5) " " t nil))
(defun* save-desktop ()
(interactive)
(desktop-save "~/.masamune/emacs-desktop-state/"))
(defun* load-desktop ()
(interactive)
(desktop-read "~/.masamune/emacs-desktop-state/"))
(add-hook 'org-mode-hook #'abbrev-mode)
(add-hook 'org-mode-hook #'flyspell-mode)