Skip to content

Instantly share code, notes, and snippets.

% sh tempscript.sh
MacPorts location: /opt/local
/System/Library/Frameworks/AppKit.framework/Versions/C/AppKit (compatibility version 45.0.0, current version 1138.51.0)
/System/Library/Frameworks/ApplicationServices.framework/Versions/A/ApplicationServices (compatibility version 1.0.0, current version 41.0.0)
/System/Library/Frameworks/Cocoa.framework/Versions/A/Cocoa (compatibility version 1.0.0, current version 17.0.0)
/System/Library/Frameworks/CoreFoundation.framework/Versions/A/CoreFoundation (compatibility version 150.0.0, current version 635.21.0)
/System/Library/Frameworks/CoreServices.framework/Versions/A/CoreServices (compatibility version 1.0.0, current version 53.0.0)
/System/Library/Frameworks/Foundation.framework/Versions/C/Foundation (compatibility version 300.0.0, current version 833.25.0)
/System/Library/Frameworks/OpenGL.framework/Versions/A/OpenGL (compatibility version 1.0.0, current version 1.0.0)
/opt/local/lib/libSDL-1.2.0.dylib (compatibility version 12.0.0, current version 12.
@erkyrath
erkyrath / jigsaw-glkote.txt
Created March 13, 2017 05:54
Jigsaw bug output
content: Array[4]
0: "preformatted"
1: " "
2: "user2"
3: " "
content: Array[4]
0: "preformatted"
1: " "
2: "user2"
@erkyrath
erkyrath / keybase.md
Created November 27, 2016 21:50
Keybase verification (2016)

Keybase proof

I hereby claim:

  • I am erkyrath on github.
  • I am zarf (https://keybase.io/zarf) on keybase.
  • I have a public key whose fingerprint is A261 581C 2E57 6A86 9265 D6F3 FD80 6926 ADF2 9D77

To claim this, I am signing this object:

Stack trace from crash in Bronze compiled with 6M62
https://github.com/I7-Standard-Examples/Bronze
(Resize the window during the initial "Have you played interactive fiction before?" prompt.)
60 ($3C), Main__()
58539 ($E4AB), Main()
329273 ($50639), FollowRulebook()
235083 ($3964B), B0_startup()
85729 ($14EE1), R_13()
309499 ($4B8FB), Banner()
@erkyrath
erkyrath / gargoyle_osx.sh
Created October 5, 2016 17:46
Updated the garglk build script to work on MacOS 10.12+homebrew
#!/bin/sh
SYSLIBS=/usr/lib
MACPORTS=/usr/local/lib
GARGDIST=build/dist
DYLIBSLIST=support/dylibs
BUNDLE=Gargoyle.app/Contents
count=0
for lib in `cat $DYLIBSLIST`
Profile run one: initial turn (through the first room description)
> YES / YES / ANDRA / / QUIT / YES
Main__:
at $00003c (line 0); called 1 times
0.000008 sec (1 ops) spent executing
6.820018 sec (47815730 ops) including child calls
Main:
at $00b94b (line 8589); called 1 times
0.000004 sec (9 ops) spent executing
@erkyrath
erkyrath / story.ni
Created November 30, 2015 04:31
Demonstrate displaying an illustration window using Unified Glulx Input.
"Test Case" by Andrew Plotkin.
Include Unified Glulx Input by Andrew Plotkin.
[The overall concept is this: At various points throughout the game, small "thumbnail" graphics will appear in the main window. These are hyperlinked. If the player clicks a thumbnail:
1) The game opens up a graphical window that covers the main window entirely (it splits the main window, but takes up 100% of the window space) and displays a larger illustration.
2) The game also displays a caption for the picture in the status line.
3) If the player clicks on the larger illustration, OR presses any key, the graphical window closes and the player is returned to normal gameplay.
]
(defun my-filter (condp lst)
(delq nil
(mapcar (lambda (x) (and (funcall condp x) x)) lst)))
(defun too-many-buffers-query ()
(let* ((ls (my-filter (lambda (buf) (buffer-file-name buf)) (buffer-list)))
(count (length ls)))
(if (> count 8)
(y-or-n-p (format "%d file buffers exist: really quit? " count))
t))
@erkyrath
erkyrath / bas.ni
Created June 14, 2014 01:05
Somebody out there will laugh...
BASIC is a room.
To (line - number) PRINT (msg - text): (- .basic_{line}; print (TEXT_TY_Say) {msg}; new_line; -).
To (line - number) GOTO (dest - number): (- .basic_{line}; jump basic_{dest}; -).
When play begins:
10 PRINT "Hello.";
20 GOTO 40;
30 PRINT "This is never printed.";
@erkyrath
erkyrath / fiasco.py
Created May 13, 2014 15:58
Quick hack to look for Fiasco strategies
import sys
ls = []
while True:
ln = sys.stdin.readline()
if not ln:
break
ls.append(ln.strip().lower())