Skip to content

Instantly share code, notes, and snippets.

View baggers-br's full-sized avatar

Baggers baggers-br

View GitHub Profile
@baggers-br
baggers-br / md4.cs
Created November 13, 2023 22:59
md4.cs
using System;
using Unity.Mathematics;
// I based this on the code from https://www.robinryf.com/blog/2017/10/30/unity-behaviour-in-dlls.html but
// with a rewrite to avoid heap allocations
public static unsafe class MD4
{
ref struct Context
{
public uint4 Wip;
@baggers-br
baggers-br / signAndNotarize.sh
Created August 9, 2023 13:47
Sign and notarize
#!/bin/bash
cd "$(dirname "$0")"
# ----- Handle inputs -----
POSITIONAL_ARGS=()
for i in "$@"; do
case $i in