Skip to content

Instantly share code, notes, and snippets.

@usagirei
usagirei / VgaBuffer.cs
Created May 7, 2016 02:06
BIOS Style Bitmap Blitting
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Drawing.Drawing2D;
using System.Drawing.Imaging;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
namespace ConsoleApplication2
@usagirei
usagirei / Globbing.cs
Last active June 24, 2016 15:32
Globbing
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.RegularExpressions;
// Built from the code provided in this stackoverflow question: http://stackoverflow.com/questions/398518/how-to-implement-glob-in-c-sharp
namespace Utils.Common
{
@usagirei
usagirei / AeroColorProvider.cs
Created October 15, 2015 21:23
MahApps Metro DWM Colored Accent
/*
* Provides DWM Color as a Bindable Property
* Add the Namespace
* xmlns:dwmAero="clr-namespace:MahApps.Metro.DWMAero"
* And a Resource
* <dwmAero:AeroColorProvider x:Key="AeroColorProvider" />
* Then Bind on the Properties (110%,95%,80%,65%,50% Respectively)
* Color="{Binding Source={StaticResource AeroColorProvider}, Path=Highlight}"
* Color="{Binding Source={StaticResource AeroColorProvider}, Path=Accent}"
* Color="{Binding Source={StaticResource AeroColorProvider}, Path=Accent2}"