Skip to content

Instantly share code, notes, and snippets.

@LuciferSam86
LuciferSam86 / network drive to UNC.cs
Last active Jul 14, 2020
Converting a mapped drive letter to a network path using C#
View network drive to UNC.cs
// Source: https://www.wiredprairie.us/blog/index.php/archives/22
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.InteropServices;
using System.IO;
namespace WiredPrairie.Samples
View semantic-commit-messages.md

Semantic Commit Messages

See how a minor change to your commit message style can make you a better programmer.

Format: <type>(<scope>): <subject>

<scope> is optional

Example

@SeargeDP
SeargeDP / ScriptEngine.cs
Last active Apr 6, 2021
Sandboxed scripting environment for C# based on Mono.CSharp for .NET 3.5 (works in Unity3D projects)
View ScriptEngine.cs
// Written by Michael 'Searge' Stoyke in 03/2015
// Released as public domain, do whatever you want with it!
using System;
using System.IO;
using System.Reflection;
using System.Text;
using Mono.CSharp;
namespace GameLibrary {
View gist:9247018
Extensions/*
ActivateApplication.exe
EntityFramework.dll
Microsoft.TeamFoundation.TestPlatform.Client.dll
Microsoft.TestTools.Cpp.targets
Microsoft.VisualStudio.MSTest.TestWindow.dll
Microsoft.VisualStudio.TestPlatform.BuildTasks.dll
Microsoft.VisualStudio.TestPlatform.Client.dll
Microsoft.VisualStudio.TestPlatform.Common.dll
Microsoft.VisualStudio.TestPlatform.Core.dll
@xcud
xcud / SimpleGAC.cs
Created Feb 5, 2013
A simple wrapper for GAC.cs from Microsoft KB Article KB317540
View SimpleGAC.cs
// System.GAC (a .Net wrapper for Fusion) implementation was too messy. Simplified here.
//
// Note, installing an assembly with the REFRESH flag specified does NOT work as advertised.
// Overwriting old GAC'd assemblies must be done manually as implemented below.
//
using System.Reflection;
using System.Text;
namespace Xcud.System.GAC