Skip to content

Instantly share code, notes, and snippets.

View Enichan's full-sized avatar

Emma Maassen Enichan

View GitHub Profile
@Enichan
Enichan / CommandLineArguments.cs
Created December 28, 2018 21:39
Much better than using the built-in command line argument parsing.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
public static class CommandLineArguments {
/// <summary>
/// Parses command line arguments.
@Enichan
Enichan / browser_gamepad_id.txt
Created October 19, 2018 04:48
Gamepad id output for various controllers/gamepads across browsers, with regexes for how to get name, vendor id, and product id
This is output from the gamepad API's id property tested across a variety of browsers, along with regular expressions to
find the name, vendor id, and product id.
Chrome: Logitech Dual Action (STANDARD GAMEPAD Vendor: 046d Product: c216)
Xbox 360 Controller (XInput STANDARD GAMEPAD)
Wireless Controller (STANDARD GAMEPAD Vendor: 054c Product: 05c4)
Sony PLAYSTATION(R)3 Controller (STANDARD GAMEPAD Vendor: 054c Product: 0268)
Pro Controller (Vendor: 057e Product: 2009)
8Bitdo SF30 Pro (Vendor: 2dc8 Product: 6000)
Firefox: 046d-c216-Logitech Dual Action
@Enichan
Enichan / Resumable.cs
Last active September 22, 2020 06:44
An implementation of coroutines for C#.
#region License
/*
Copyright © 2014 Emma Maassen
This work is free. You can redistribute it and/or modify it under the
terms of the Do What The Fuck You Want To Public License, Version 2,
as published by Sam Hocevar. See http://www.wtfpl.net/ for more details.
*/
#endregion
using System;
using System.Collections.Generic;
@Enichan
Enichan / GridPather.cs
Last active December 14, 2015 21:49 — forked from anonymous/GridPather.cs
// This file created by Emma 'Eniko' Maassen
// Licensed under Creative Commons Attribution 3.0 Unported (CC BY 3.0)
// http://creativecommons.org/licenses/by/3.0/
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace Indigo.Framework.Random {