Skip to content

Instantly share code, notes, and snippets.

View MerijnHendriks's full-sized avatar
🌸
Programming

No;Hurry MerijnHendriks

🌸
Programming
View GitHub Profile
@MerijnHendriks
MerijnHendriks / mod.js
Last active November 4, 2020 13:46
Example weapon mod for SPT-AKI Alpha R5
/* mod.js
* license: NCSA
* copyright: Senko's Pub
* website: https://www.guilded.gg/senkospub
* authors:
* - Senko-san (Merijn Hendriks)
*/
class Mod
{
@MerijnHendriks
MerijnHendriks / CommandSystem.cs
Last active December 16, 2020 14:15
A simple and modular CLI application
/* CommandSystem.cs
* License: NCSA Open Source
* Author: Merijn Hendriks
*/
namespace App
{
public class CommandSystem : ISystem
{
List<ICommand> Commands;
@MerijnHendriks
MerijnHendriks / Loader.App_ModuleLoader.cs
Created December 26, 2020 13:53
A quick implementation for module loading in C#
/* ModuleLoader.cs
* license: NCSA
* author: Merijn Hendriks
*/
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Reflection;
@MerijnHendriks
MerijnHendriks / Program.cs
Created March 4, 2021 23:22
Multiple methods of triggering a BSOD on a windows systems. WinApi.BSODManual() is recommended.
/* Program.cs
* License: NCSA
* Author: Merijn Hendriks
*/
using System;
using System.Diagnostics;
using System.Runtime.InteropServices;
namespace TriggerBSOD
@MerijnHendriks
MerijnHendriks / WikimediaApi.cs
Last active April 13, 2021 23:48
Wikimedia API in .NET 5.0
using System.Collections.Generic;
using System.Text;
namespace Wikimedia.Api
{
public EFile
{
Abstract = 0,
AllTitles,
Babel,
@MerijnHendriks
MerijnHendriks / Program.cs
Created May 5, 2021 13:47
Simple combat system
using System;
using System.Collections.Generic;
namespace RandomRPG
{
public static class Log
{
public static void Write(string text)
{
Console.WriteLine(text);
@MerijnHendriks
MerijnHendriks / mtg modern white deck.md
Last active September 6, 2021 19:40
Magic: The Gathering information and deck inspiration

Magic The Gathering - Interesting Cards

inspiration, nothing more

Mirrodin

  • roar of the kha
  • leonin sun standard
  • slagwurm armor
  • sword of kaldra
@MerijnHendriks
MerijnHendriks / database.json
Last active September 7, 2021 23:43
Dungeon and Dragons 5th editions basic rules conversion to code
{
"GameGlobals": {
"AlignmentTypes": [
"None",
"LawfulGood",
"LawfulNeutral",
"LawfulEvil",
"NeutralGood",
"TrueNeutral",
"NeutralEvil",
@MerijnHendriks
MerijnHendriks / inheritance.md
Last active October 17, 2021 19:20
Inheritance in ANSI-C

Inheritance in ANSI-C

Emulating inheritance in ANSI-C

Introduction

Sometimes the cleanest implementation is by taking advantage of inheritance despite the cost of the technique. In this article I'll discuss various implementations with their characteristics. We'll emulate the following code from C# in ANSI-C:

@MerijnHendriks
MerijnHendriks / CacheDataProvider.cs
Created December 12, 2021 23:24
Escape From Tarkov cache read utils
using System.Collections.Generic;
public class CacheDataProvider
{
public CacheDataProvider()
{
AddNormal();
AddLocales();
AddMaps();
}