Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl
use integer;
use Cwd qw(getcwd abs_path);
use Getopt::Std;
use File::Basename;
use File::Find;
$Getopt::Std::STANDARD_HELP_VERSION=1;
$idesettings{'PREFIX'}="/usr/local";
$opt_c="";
@curiousdannii
curiousdannii / Flexible Windows.i7x
Last active August 29, 2015 14:14
Cut down Flexible Windows for bug 0001511
Version 1/150127 of Flexible Windows (for Glulx only) by Dannii Willis begins here.
"Exposes the Glk windows system so authors can completely control the creation and use of windows"
[ Flexible Windows was originally by Jon Ingold, with many contributions by Erik Temple. This version has been essentially rewritten from scratch for 6L38 by Dannii Willis. ]
Use authorial modesty.
@curiousdannii
curiousdannii / parchment-gestalt-test.inf
Created December 14, 2009 02:09
This code implements a very basic 'gestalt' test for Parchment
! Parchment 'gestalt' test
! This code implements a very basic 'gestalt' test for Parchment.
! Because it isn't feasible to extend the Z-Machine we instead propose hacking
! @check_unicode to use one of its unspecified return bits.
[ Main a private key;
! Check for 'a'
@check_unicode 97 -> a;
@curiousdannii
curiousdannii / gist:265710
Created December 29, 2009 23:47
Gnusto compiler context example
Compiler context example, based on Quixe somewhat
{
'temps': // Temporary variables for memory access
[
5880: 3,
5882: 1,
9471: 2,
10662: 0,
],
@curiousdannii
curiousdannii / gist:303863
Created February 14, 2010 05:32
eval() vs new Function() test
<!doctype html>
<html>
<head>
<title>eval() vs new Function() test</title>
<script>
function test_native()
{
var k = 5000, r = '',
f_test_native = function(out){var encoder = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',data = 'Beware the Jabberwock, my son! The jaws that bite, the claws that catch!',out = out || '',c1, c2, c3, e1, e2, e3, e4,i = 0, l = data.length;while (i < l){c1 = data.charCodeAt(i++);c2 = data.charCodeAt(i++);c3 = data.charCodeAt(i++);e1 = c1 >> 2;e2 = ((c1 & 3) << 4) + (c2 >> 4);e3 = ((c2 & 15) << 2) + (c3 >> 6);e4 = c3 & 63;out += (encoder.charAt(e1) + encoder.charAt(e2) + encoder.charAt(e3) + encoder.charAt(e4));}return out;};
while (k--)
@curiousdannii
curiousdannii / parchment-illegal-object-number-test.inf
Created February 26, 2010 08:47
Parchment illegal object number test
! Parchment illegal object number test
! By Zarf
! http://code.google.com/p/parchment/issues/detail?id=108
! VM_DictionaryAddressToNumber() is a simplified version of an I7 function.
! Gnusto has an overflow bug here, somewhere.
Global dictsize = 32647;
[ VM_DictionaryAddressToNumber w; return (w-(dictsize))/9; ];
@curiousdannii
curiousdannii / leaflet.html
Created March 20, 2010 09:23
HMTL source code for three popular web IF terps
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" id="sixapart-standard">
<head>
<title> Leaflet: An Interactive Fiction Z-Machine Interpreter by Bryon Vandiver - Jay is Games</title>
<script type="text/javascript" src="/jquery-1.3.2.min.js"></script> <script type="text/javascript" src="/jquery.cookie.js"></script> <script type="text/javascript" src="/jquery-site.090209.js"></script>
<script type="text/javascript" src="http://jayisgames.com/spoiled-comments.js"></script>
<link rel="stylesheet" href="/games/styles-flash-game.css" type="text/css" />
@curiousdannii
curiousdannii / play.html
Created March 22, 2010 05:12
play.html template for Parchment for Inform 7
<!DOCTYPE html>
<html>
<head>
<title>[AUTHOR] - [TITLE] — Play</title>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8">
<meta name="viewport" content="width=device-width, user-scalable=no">
<meta name="author" content="[AUTHOR]">
<link rel="stylesheet" href="style.css">
[INTERPRETERHEAD]
@curiousdannii
curiousdannii / casemap.html
Created June 5, 2010 15:38
Case mappings for glkapi.js
<!DOCTYPE html>
<html>
<head>
<title>Case mappings for glkapi.js</title>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js'></script>
<script>
var log = window.console ? console.log : $.noop,
unicode_data, unicode_lines, all_chars = [],
unicode_upper_table = {},
@curiousdannii
curiousdannii / error.php
Created October 21, 2010 02:47 — forked from jeresig/error.php
Opera 304 tests
<?php header('HTTP/1.0 500 Internal Server Error'); exit; ?>