Skip to content

Instantly share code, notes, and snippets.

View Boggin's full-sized avatar
💭
bleep bloop blorp

Richard Bogle Boggin

💭
bleep bloop blorp
View GitHub Profile
@Boggin
Boggin / SqlExceptionMocker.cs
Last active November 9, 2018 17:46 — forked from martinjw/SqlExceptionMocker.cs
Create a SqlException for testing
// .csproj
// <PackageReference Include="System.Data.SqlClient" Version="4.3.0" />
// <PackageReference Include="System.Reflection.TypeExtensions" Version="4.3.0" />
namespace HorribleThingsInHere
{
using System.Data.SqlClient;
using System.Linq;
using System.Reflection;
@Boggin
Boggin / .git-commit-template.txt
Last active June 28, 2024 10:16 — forked from adeekshith/.git-commit-template.txt
Enforce good commit message practices across teams.
# <type>[(optional scope)]: <subject>
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made.
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources,
# |<---- use git-interpret-trailers, for example ---->|
# Issue #23
@Boggin
Boggin / WebFormMvcUtil.cs
Created October 25, 2012 08:09 — forked from SimonRice/RenderActionPartial.spark
Utility class to render MVC Partials & Actions in WebForms (or server side controls).
namespace Website
{
using System.IO;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;
public class WebFormMvcUtil
{
private static HtmlHelper html;