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

Keybase proof

I hereby claim:

  • I am boggin on github.
  • I am boggin (https://keybase.io/boggin) on keybase.
  • I have a public key whose fingerprint is 4548 9E13 27AA 9DAC C2F2 0527 96AC C195 ACFB 5646

To claim this, I am signing this object:

@Boggin
Boggin / level-meter.css
Last active August 29, 2015 14:04
AngularJS level-meter directive.
.level-meter__content {
background: #fff;
}
.level-meter__box {
fill: none;
stroke: #7d7d7d;
}
.level-meter__bar-empty {
fill: #7d7d7d;
stroke: #7d7d7d;
@Boggin
Boggin / ContainerConfig.cs
Created March 24, 2015 14:54
Register MEF for both ASP.NET MVC and Web API using conventions.
namespace Portal.Web
{
using System.Composition.Convention;
using System.Composition.Hosting;
using System.Reflection;
using System.Web.Http;
using System.Web.Http.Controllers;
public static class ContainerConfig
{
@Boggin
Boggin / spf13-vim-windows-install.cmd
Created September 22, 2015 11:30
Install spf13's Vim on Windows XP (after adding fsutil and junction.exe).
REM Copyright 2014 Steve Francia
REM
REM Licensed under the Apache License, Version 2.0 (the "License");
REM you may not use this file except in compliance with the License.
REM You may obtain a copy of the License at
REM
REM http://www.apache.org/licenses/LICENSE-2.0
REM
REM Unless required by applicable law or agreed to in writing, software
REM distributed under the License is distributed on an "AS IS" BASIS,
@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;
namespace Demo.Ldap.Configuration
{
public LdapConfig(bool enabled, string user, string password, string domain)
{
this.Enabled = enabled;
this.User = user;
this.Password = password;
this.Domain = domain;
}
@Boggin
Boggin / EmailService.cs
Created October 15, 2013 15:26
Notification service with email as an example.
namespace Demo.Notification
{
using System.Net.Mail;
public class EmailService : IEmailService
{
public void Notify(NotificationDto notification)
{
var msg = new MailMessage
{
@Boggin
Boggin / ApiAuthorizeAttribute.cs
Created October 17, 2013 15:46
MS Web API Authorize Attribute with Ninject 3.0
namespace Demo.WebMvc4.Infrastructure
{
using System.Web.Http;
public class ApiAuthorizeAttribute : AuthorizeAttribute
{
public Role Permission { get; set; }
// Note: Ninject currently doesn't support filter binding in Web API so this is a workaround.
protected AuthorizationService AuthorizationService
@Boggin
Boggin / MyController.cs
Last active January 19, 2016 15:02
A WebAPI Controller for an Azure WebRole that can manage a request that will take a long time to fulfill.
namespace WebRole.Controllers
{
public class MyController : ApiController
{
private readonly ICache cache;
private readonly IMyRequestQueue myRequestQueue;
public MyController(
ICache cache,
@Boggin
Boggin / .git-commit-template.txt
Last active May 9, 2016 10:51 — forked from adeekshith/.git-commit-template.txt
Enforce good commit message practices across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- 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
# Example: Github issue #23