Skip to content

Instantly share code, notes, and snippets.

@curiousdannii
curiousdannii / .gitignore
Created October 8, 2012 10:54
Ubuntu 12.04 package of Starcraft for Ubertweak
*~
*.build
*.changes
*.deb
*.dsc
*.gz
*.log
*.substvars
starcraft/debian/files
starcraft/debian/starcraft/
@curiousdannii
curiousdannii / subscriptions.php
Created September 26, 2012 15:22
Hacked Jetpack plugin for SPAG
<?php
/**
* Module Name: Subscriptions
* Module Description: Allow users to subscribe to your posts and comments to receive a notification via email.
* Sort Order: 3
* First Introduced: 1.2
*
* Hacked by Dannii for SPAG - only notify subscribers of new issue pages
*/
@curiousdannii
curiousdannii / content-page.php
Created September 26, 2012 14:37
Wordpress theme for SPAG
<?php
/**
* The template used for displaying page content in page.php
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
?>
@curiousdannii
curiousdannii / spag.php
Created September 26, 2012 14:35
Wordpress plugin for SPAG
<?php
/*
Plugin Name: SPAG
Description: Stuff for SPAG
Version: 1.0
Author: Dannii
*/
// Update stuff when an issue is published
@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; ?>
@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 / 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 / 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 / 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 / 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--)