Skip to content

Instantly share code, notes, and snippets.

@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 / 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 / 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 / .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 / book-chapter-lengths.json
Last active April 22, 2016 03:54 — forked from openbibleinfo/book-chapter-lengths.txt
Number of verses in chapters of various Bible translations
This file has been truncated, but you can view the full file.
{
"1Chr.11": {
"46": [
"en_dra",
"la_vulgate"
],
"47": [
"ar_erv-ar",
"ar_nav",
"awa_erv-awa",
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.ZVM = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
var clone = (function() {
'use strict';
var nativeMap;
try {
nativeMap = Map;
} catch(_) {
// maybe a reference error because no `Map`. Give it a dummy value that no
// valu
@curiousdannii
curiousdannii / Makefile
Created June 29, 2017 11:39
Emscripten bug 5330
# Emscripten
CC = emcc \
-O3
LINK_OPTS = \
-s EMTERPRETIFY=1 \
-s EMTERPRETIFY_ASYNC=1 \
-s EMTERPRETIFY_FILE='"hello.js.bin"' \
-s EXPORTED_FUNCTIONS='["_main"]' \
-s MODULARIZE=1 \
The print the game checksum rule translates into I6 as "PrintGameChecksum".
The print the game checksum rule is listed in the after printing the banner text rules.
Include (-
[ PrintGameChecksum checksum i temp;
print "Checksum ";
checksum = HDR_CHECKSUM-->0;
for ( i = 28 : i >= 0 : i = i - 4 )
{
@ushiftr checksum i temp;
temp = temp & $0F;
This file has been truncated, but you can view the full file.
#include "glk.h"
#include "glulxe.h"
#include "glulxtoc.h"
#include <math.h>
void execute_loop(void) {
glui32 temp0, temp1, temp2, temp3, temp4, temp5;
while (1) {
switch (pc) {
// VM Function 60 (Main__)
This file has been truncated, but you can view the full file.
# 1 "/home/dannii/if-decompiler/tests/glulxercise2.ulx.disassembled/functions_unsafe.c"
# 1 "<built-in>"
# 1 "<command-line>"
# 31 "<command-line>"
# 1 "/usr/include/stdc-predef.h" 1 3 4
# 32 "<command-line>" 2
# 1 "/home/dannii/if-decompiler/tests/glulxercise2.ulx.disassembled/functions_unsafe.c"
# 1 "/home/dannii/if-decompiler/upstream/cheapglk/glk.h" 1
# 17 "/home/dannii/if-decompiler/upstream/cheapglk/glk.h"
# 1 "/usr/lib/gcc/x86_64-linux-gnu/10/include/stdint.h" 1 3 4