Skip to content

Instantly share code, notes, and snippets.

@RobBlackwell
RobBlackwell / gist:5373163
Created April 12, 2013 16:12
Call the win32 API from SBCL on Windows
(ql:quickload :cffi)
(cffi:load-foreign-library "user32.dll")
(cffi:defctype hwnd :unsigned-int)
(cffi:defcfun ("MessageBoxA" message-box) :int
(wnd hwnd)
(text :string)
(caption :string)
@chendo
chendo / gist:5702083
Created June 3, 2013 22:40
Searchable accessibility roles for Shortcat
Application
Browser
BusyIndicator
Button
Cell
CheckBox
ColorWell
Column
ComboBox
DisclosureTriangle
@chaitanyagupta
chaitanyagupta / _reader-macros.md
Last active September 12, 2024 16:16
Reader Macros in Common Lisp

Reader Macros in Common Lisp

This post also appears on lisper.in.

Reader macros are perhaps not as famous as ordinary macros. While macros are a great way to create your own DSL, reader macros provide even greater flexibility by allowing you to create entirely new syntax on top of Lisp.

Paul Graham explains them very well in [On Lisp][] (Chapter 17, Read-Macros):

The three big moments in a Lisp expression's life are read-time, compile-time, and runtime. Functions are in control at runtime. Macros give us a chance to perform transformations on programs at compile-time. ...read-macros... do their work at read-time.

@Bl4ckSh4rk
Bl4ckSh4rk / GSAcrypt.c
Last active October 21, 2023 04:42
GSAcrypt - Gameboy Advance AR Crypto Program by Parasyte
/* GSAcrypt - Gameboy Advance AR Crypto Program
*
* Copyright notice for this file:
* Copyright (C) 2001-2003 Parasyte
*
* 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 2 of the License, or
* (at your option) any later version.
*