Skip to content

Instantly share code, notes, and snippets.

@Draknek
Draknek / readme.txt
Last active December 14, 2025 18:18
Treasure Dive
https://puzzlescriptnext.polyomino.com/editor.html
@Draknek
Draknek / calculate.sh
Last active March 9, 2025 12:33
Calculate iOS sales per-app
#!/bin/bash
if [[ $# -eq 0 ]]
then
echo Usage: download financial_report.csv, then run $0 year month
exit
fi
# Before running this you need a token.
# A token lasts six months, but I regenerate it every time, so I can just forget about it.
@Draknek
Draknek / iOSPostBuildLocalization.cs
Created January 31, 2025 12:19
Unity iOS builds need to contain the list of supported localisations
// Taken from https://discussions.unity.com/t/defining-localization-language-for-an-ios-app/779425/6
// Not personally tested.
// The list of supported languages is hard-coded into the CFBundleLocalizations function.
#if UNITY_IOS
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
@Draknek
Draknek / readme.txt
Created October 12, 2024 15:09
Construction site prototype
https://puzzlescriptnext.polyomino.com/editor.html
@Draknek
Draknek / readme.txt
Last active October 2, 2024 22:17
Slime Stretch
https://puzzlescriptnext.polyomino.com/editor.html
@Draknek
Draknek / readme.txt
Last active July 9, 2024 11:35
Bombs and Boxes and Bombs in Boxes (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@Draknek
Draknek / zip-app.py
Last active March 27, 2024 15:21
Normally if you zip a .app directory on Windows and unzip it on Mac OS X, it won't run. This tool creates a zip file that should have the correct executable flags set to work correctly.
#!/usr/bin/env python3
import os
import sys
import time
import zipfile
startingdir = os.getcwd()
if (len(sys.argv) == 1):
print("Usage: " + os.path.basename(sys.argv[0]) + " path/to/application.app [path/to/output.zip]")
@Draknek
Draknek / readme.txt
Created September 22, 2023 19:37
Spooky Express (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
@Draknek
Draknek / readme.txt
Created June 24, 2023 23:49
Mouse Wants Cheese (PuzzleScript Script)
Play this game by pasting the script in http://www.puzzlescript.net/editor.html
Play this game by pasting the script in http://www.puzzlescript.net/editor.html