Skip to content

Instantly share code, notes, and snippets.

@TheBuzzSaw
TheBuzzSaw / Maze.cs
Created November 9, 2019 17:42
MazeRunner
using System;
using System.Drawing;
namespace MazeRunner
{
class Maze
{
public int Width { get; }
public int Height { get; }
-- HUMAN RESOURCE MACHINE PROGRAM --
a:
b:
c:
d:
e:
f:
INBOX
COPYTO 0
using System;
using System.Collections;
using System.Collections.Generic;
namespace Kelly
{
public class TwoWayDictionary<TKey, TValue> : IDictionary<TKey, TValue>
{
private readonly Dictionary<TKey, TValue> _main;
private readonly Dictionary<TValue, TKey> _reverse;
@TheBuzzSaw
TheBuzzSaw / PipeBurst.cs
Created May 7, 2019 04:56
These pipes work...
using System;
using System.Diagnostics;
using System.IO;
using System.IO.Pipes;
using System.Runtime.InteropServices;
using System.Text;
using System.Threading.Tasks;
namespace PipeBurst
{
using System;
namespace LetterBox
{
class Program
{
static void Main(string[] args)
{
foreach (var arg in args)
{
@TheBuzzSaw
TheBuzzSaw / Emit.cs
Created March 1, 2019 03:55
EmitTest
using System;
using System.Linq;
using System.Reflection;
using System.Reflection.Emit;
namespace EmitTest
{
public interface IWorker
{
void DoTheThing(int a, string b, Guid c);
@TheBuzzSaw
TheBuzzSaw / PipeBugDemo.csproj
Last active January 28, 2019 22:10
Demonstration of Pipe Bug
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.2</TargetFramework>
<LangVersion>7.3</LangVersion>
</PropertyGroup>
</Project>
@TheBuzzSaw
TheBuzzSaw / SmashImageGrabber.cs
Created November 14, 2018 04:49
Smash Ultimate Fighter Image Grabber
using System;
using System.IO;
using System.Net.Http;
using System.Threading.Tasks;
namespace SmashImageGrabber
{
class Program
{
static readonly string[] Fighters = new string[]
@TheBuzzSaw
TheBuzzSaw / MathEngine.cs
Last active November 12, 2018 23:16
MAAAAAAATH
using System;
using System.Numerics;
namespace MathEngine
{
interface IEngine
{
string EngineName { get; }
string[] EngineInputs { get; }
void RunEngine(string[] inputs);
@TheBuzzSaw
TheBuzzSaw / index.html
Last active August 13, 2018 01:30
Bootstrap Fundamentals
<!DOCTYPE html>
<html>
<head>
<title>DEJARIX</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
<link rel="stylesheet" href="css/bootstrap.min.css" />
</head>
<body>
<div class="container">