Skip to content

Instantly share code, notes, and snippets.

View jtbennett's full-sized avatar

John Bennett jtbennett

View GitHub Profile
@jtbennett
jtbennett / keybase.md
Created August 30, 2016 20:31
Keybase proof

Keybase proof

I hereby claim:

  • I am jtbennett on github.
  • I am jtbennett (https://keybase.io/jtbennett) on keybase.
  • I have a public key ASB_Zmm4gprc-_rFej2ps_qad_69Nl6Po81vx3IOnNFTCwo

To claim this, I am signing this object:

@jtbennett
jtbennett / Global.asax.cs
Created December 16, 2012 21:04
Proposed naming convention for MVC areas installed by NuGet
public class MvcApplication : System.Web.HttpApplication
{
protected void Application_Start()
{
...
ViewEngines.Engines.Clear();
ViewEngines.Engines.Add(this.GetRazorViewEngine());
}
private RazorViewEngine GetRazorViewEngine()
@jtbennett
jtbennett / LastInWinsReplicationConflictResolver.cs
Created March 10, 2012 16:41
RavenDB LastInWinsReplicationConflictResolver
using System;
using System.Linq;
using NLog;
using Raven.Abstractions.Data;
using Raven.Bundles.Replication;
using Raven.Bundles.Replication.Plugins;
using Raven.Json.Linq;
namespace MyRavenReplicationBundle
{