Skip to content

Instantly share code, notes, and snippets.

View MattVonVielen's full-sized avatar

Matt Campbell MattVonVielen

View GitHub Profile
@MattVonVielen
MattVonVielen / FooTest.cs
Created August 8, 2018 23:08
C# - embed JSON sample data in test assembly
public static T LoadJsonFromResource<T>(string resourceName) where T: class
{
using (var stream = Assembly.GetExecutingAssembly().GetManifestResourceStream(resourceName))
{
if (stream == null) return null;
using (var sr = new StreamReader(stream))
{
using (var reader = new JsonTextReader(sr))
{
---- Minecraft Crash Report ----
WARNING: coremods are present:
IELoadingPlugin (ImmersiveEngineering-0.12-75-core.jar)
Contact their authors BEFORE contacting forge
// Quite honestly, I wouldn't worry myself about that.
Time: 12/25/17 10:53 PM
Description: Initializing game

Keybase proof

I hereby claim:

  • I am xenolinguist on github.
  • I am xenolinguist (https://keybase.io/xenolinguist) on keybase.
  • I have a public key ASDOAFakXBZGzXg9qstD2VqFVytSNl8L4X5gPphkz8tcTgo

To claim this, I am signing this object:

@MattVonVielen
MattVonVielen / Berksfile
Created February 24, 2014 21:13
Self-taught Vagrant surgery using Redmine as the victim
site :opscode
cookbook 'apt'
cookbook 'mysql'
@MattVonVielen
MattVonVielen / gist:3407325
Created August 20, 2012 20:02
How I built my first build lamp

How I built my first build lamp

NOTE: Links are provided for reference purposes only; no product or vendor endorsement is expressed or implied

Ingredients

X10 modules

  • 2 x "SocketRocket" light bulb socket module (LM15A)
  • 1 x Transceiver Module (TM751)
  • 1 x "Firecracker" Serial Adapter (CM17A)
@MattVonVielen
MattVonVielen / autotest.ps1
Created August 14, 2012 05:13
Erlang autotest in Windows PowerShell
function Reference-Assembly($Name) {
[void] [System.Reflection.Assembly]::LoadWithPartialName($Name)
}
Reference-Assembly System.Windows.Forms
Reference-Assembly System.Drawing
function Decode-IconGraphic {
$encodedIcon = "
AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAgAAAAA