Skip to content

Instantly share code, notes, and snippets.

$$ \LARGE e^{i\tau} = 1 $$

;;;; game.lispa
(in-package #:game)
;;; "game" goes here. Hacks and glory await!
(defvar *array* nil) ; vertices of model
(defvar *stream* nil) ; stream for drawing the models
(defvar *running* nil) ; are we running?
(defvar *index* nil) ; maps vertices to triangles
if [ $(tput lines) -gt 40 -a $(tput cols) -gt 160 ]; then
fortune | figlet -w $(($(tput cols) - 7)) -kf slant | \
cowsay -f dragon-and-cow -n | toilet --gay -f term -w $(tput cols);
elif [ $(tput lines) -gt 23 -a $(tput cols) -gt 79 ]; then
fortune | cowsay -f dragon-and-cow -W $(($(tput cols)-5)) | toilet --gay -f term -w $(tput cols);
else
fortune | cowsay | toilet --gay -f term -w $(tput cols);
fi
(defun read-bits (count &key (endian :be))
(block outer
(with-slots (buffer-size buffer-data) *bit-buffer*
(let ((res 0))
(loop
with d = 0
with i = 0
when (= i count)
do
(return (values res i))
Unhandled exception: e06d7363
Fault address: 7FF86ACE1F28 (c:\windows\system32\kernelbase.dll)
libobs version: 0.15.4
Windows version: 10.0 build 10586 (revision 0)
CPU: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
Thread 3510 (Crashed)
Stack EIP Arg0 Arg1 Arg2 Arg3 Address
000000A40B2FE950 00007FF86ACE1F28 0000000000000000 00007FF86AC8C70B 0000023FF950BAB0 00000000000002B0 kernelbase.dll!0x7ff86ace1f28
17:34:14.289: CPU Name: Intel(R) Core(TM) i5-6600K CPU @ 3.50GHz
17:34:14.289: CPU Speed: 3504MHz
17:34:14.289: Physical Cores: 4, Logical Cores: 4
17:34:14.289: Physical Memory: 32689MB Total, 19215MB Free
17:34:14.289: Windows Version: 10.0 Build 10586 (revision: 0)
17:34:14.289: Running as administrator: false
17:34:14.289: Aero is Enabled (Aero is always on for windows 8 and above)
17:34:14.296: OBS 0.15.4 (64bit, windows)
17:34:14.296: ---------------------------------
17:34:14.297: ---------------------------------
@lonjil
lonjil / Spec.md
Last active August 29, 2015 14:23
Document markup

A pair of asteriks denote bolded text.
*Bold* becomes Bold.

A pair of slashes denote italicised text.
/Italic/ becomes Italic.

A pair of underscores denote underlined text.
_Underline_ becomes Underline.

A pair of tildes denote strikethrough text.

/~zod/home/~2015.5.7..21.17.02..45ec/arvo/hoon/:<[9.968 5].[9.980 7]>
/~zod/home/~2015.5.7..21.17.02..45ec/arvo/hoon/:<[9.969 5].[9.980 7]>
/~zod/home/~2015.5.7..21.17.02..45ec/arvo/hoon/:<[9.970 5].[9.980 7]>
/~zod/home/~2015.5.7..21.17.02..45ec/arvo/hoon/:<[9.971 5].[9.980 7]>
...
/~zod/home/~2015.5.7..21.17.02..45ec/arvo/gall/:<[224 3].[230 10]>
/~zod/home/~2015.5.7..21.17.02..45ec/arvo/gall/:<[225 3].[230 10]>
/~zod/home/~2015.5.7..21.17.02..45ec/arvo/gall/:<[228 3].[230 10]>
@lonjil
lonjil / draft.md
Last active December 24, 2015 04:59 — forked from anonymous/draft.txt
magic

Mana = hp = energy spells ~ forth (a stack-based programming language)

force ( f -- ) applies a force of [f] on a radius of 1 micro-meter around the casting point for 1 micro-second in the z+ direction

caster is coord = {0, 0, 0} x=+left-right,y=+up-down,z=+forward-backward the numbers are in micro- SI units