Skip to content

Instantly share code, notes, and snippets.

@mathphreak
mathphreak / README.md
Last active November 2, 2022 14:40
bitsy in twine

[Bitsy][] in [Twine][]

Embeds [Bitsy][] games into a [Twine][] story.

Requires Python 3. Probably only works with Twine 2 stories in the Harlowe format. Not guaranteed to work even then.

Usage

Download bitsy-in-twine.py.

@mathphreak
mathphreak / gist:4c0c07007fecb2bdefe0
Last active August 29, 2015 14:03
Google Drive side-by-side view bookmarklet
javascript:(function(d,t,z,s) {s = d.createElement(t);s.innerHTML = z+'-outer{left:0px !important;width:100% !important;}'+z+'-inner{width:150% !important;}.kix-page{float:left; width:48% !important;}';d.getElementsByTagName(t)[0].parentNode.appendChild(s);})(document, 'style', '.kix-zoomdocumentplugin');
@mathphreak
mathphreak / list
Created August 3, 2012 19:10
Bukkit mods that need folders
dynmap
@mathphreak
mathphreak / list
Created August 3, 2012 02:37
Bukkit mod lists
http://gist.github.com/3243741
@mathphreak
mathphreak / gist:3243741
Created August 3, 2012 02:37
WoopaGaming's top 10 plugins
http://dev.bukkit.org/server-mods/permissionsex/
http://dev.bukkit.org/server-mods/jail/
http://dev.bukkit.org/server-mods/boatmania/
http://dev.bukkit.org/server-mods/lwc/
http://dev.bukkit.org/server-mods/voxelsniper/
http://dev.bukkit.org/server-mods/mobdisguise/
http://dev.bukkit.org/server-mods/essentials/
http://dev.bukkit.org/server-mods/spout/
http://dev.bukkit.org/server-mods/terrain-control/
http://dev.bukkit.org/server-mods/dynmap/
@mathphreak
mathphreak / robot_arm_reloaded.ino
Created February 29, 2012 14:26
Robot Arm...Reloaded
// this is the robot arm...reloaded
// _______ __
//|_ _\ \/ /
// | | \ /
// | | / \
// |_| /_/\_\
//
// by mathphreak
#include <SoftwareSerial.h>
// pins
@mathphreak
mathphreak / bookmarklet.js
Created October 17, 2011 21:14
edit bookmarklet
javascript:if(!window.xyzzyEditing){document.body.contentEditable='true'; document.designMode='on'; window.xyzzyEditing=true;void 0}else{document.body.contentEditable='false'; document.designMode='off'; window.xyzzyEditing=false;void 0}
public class RootMeanSquare {
public static void main(String[] args) {
int i = 1;
while (true) {
i++;
if (isInteger(rootMeanSquareUpTo(i))) {
System.out.println(i);
System.exit(0);
}
}