Skip to content

Instantly share code, notes, and snippets.

View mathew-odwyer's full-sized avatar

Mathew O'Dwyer mathew-odwyer

View GitHub Profile
@mathew-odwyer
mathew-odwyer / NatsClientProtocol.gml
Created December 20, 2025 13:47
Simple NATS Client Protocol Implementation for GML (GameMaker Language)
/// @description Provides a NATS client-side protocol handler for a `Struct.Client`.
/// @param {Function} send The function used to send messages through the socket.
/// @param {Struct} options The NATS connection options.
function NatsClientProtocol(send, options = {}) constructor
{
/// @type {Struct.Logger}
/// @description The logger instance for logging protocol events.
static _logger = new Logger(nameof(NatsClientProtocol));
/// @type {Function}
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>NUnit Test Method</Title>
<Shortcut>testmethod</Shortcut>
<Description>Creates an NUnit test method template</Description>
<Author>Your Name</Author>
</Header>
<Snippet>
@mathew-odwyer
mathew-odwyer / Program.cs
Last active March 29, 2020 06:12
Real-Time Graphics Rendering with GDI+ in C#
namespace RealTimeGDIExample
{
using System;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
public class Display : Form
{
public Display(int width, int height, string title)
@mathew-odwyer
mathew-odwyer / CodeReview.md
Last active February 7, 2025 19:59
Code Review Checklist

General

Warnings and Errors

  • There are no warnings present in the project.
  • There are no errors present in the project.
  • There are no warnings that have been supressed.
  • The entire solution can build and run locally on your machine.
  • The code works.