Skip to content

Instantly share code, notes, and snippets.

@nickgammon
nickgammon / Cooldown_Text.lua
Created April 13, 2025 03:03
MUSHclient plugin for showing game text in boxes on the screen with optional cooldowns
require "commas" -- for convert_time
MARGIN = 10 -- pixels
font_id = "fn"
FONT_NAME = "Sans" -- input font name
active_windows = { } -- our windows
-- redraw all active window, one under the other
function ShowWindows ()
@nickgammon
nickgammon / Keypad2.cpp
Created March 10, 2025 06:43
Keypad2 library
/*
||
|| @file Keypad.h
|| @version 1.8
|| @author Mark Stanley, Alexander Brevig
|| @contact mstanley@technologist.com, alexanderbrevig@gmail.com
||
|| @description
|| | This library provides a simple interface for using matrix
|| | keypads. It supports the use of multiple keypads with the
@nickgammon
nickgammon / build.py
Created April 15, 2024 08:09
Java project builder
r"""
Utility to recompile all Java files in the current directory, if needed.
Author: Nick Gammon
Date: 12 March 2024
Suitable build command for Geany: python \Users\12345678\Downloads\build.py %f
(Replace 12345678 with your student number)
@nickgammon
nickgammon / Path_Finder.xml
Created May 2, 2020 01:22
A* algorithm demo in a MUSHclient plugin
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE muclient>
<muclient>
<plugin
name="Path_Finder"
author="Nick Gammon"
id="fe137cf7827bb2eda19f4072"
language="Lua"
purpose="Testing path finding"