Skip to content

Instantly share code, notes, and snippets.

View samwhaleIV's full-sized avatar

Samuel Robinson samwhaleIV

  • Washington
View GitHub Profile
public readonly struct @object {
private readonly object value;
private @object(object value) => this.value = value;
public bool HasValue => value != null;
public object _ => value;
public static implicit operator bool (@object value) => value.HasValue;
public static implicit operator @object (int value) => new @object(value);
@digitalshadow
digitalshadow / OpenSimplexNoise.cs
Last active June 30, 2026 22:10
OpenSimplex Noise Refactored for C#
/* OpenSimplex Noise in C#
* Ported from https://gist.github.com/KdotJPG/b1270127455a94ac5d19
* and heavily refactored to improve performance. */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.CompilerServices;
namespace NoiseTest