Skip to content

Instantly share code, notes, and snippets.

View cwiederspan's full-sized avatar

Chris Wiederspan cwiederspan

View GitHub Profile
@cwiederspan
cwiederspan / MefConfig.cs
Created October 17, 2013 21:38
This uses MEF configuration to enable dependency injection for the MVC 5 AccountController based on the new OWIN. The critical lines are 54-55 and 83-86.
using System.Linq;
using System.Composition.Convention;
using System.Composition.Hosting;
using System.Reflection;
using System.Web.Http;
using System.Web.Http.Controllers;
using System.Web.Mvc;
using SourceMax.Web.IoC;
using Microsoft.AspNet.Identity;
@boucher
boucher / StripeTutorialPage.html
Created February 6, 2012 07:05
Stripe Tutorial Payment Form
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title>Stripe Getting Started Form</title>
<script type="text/javascript" src="https://js.stripe.com/v1/"></script>
<!-- jQuery is used only for this example; it isn't required to use Stripe -->
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
<script type="text/javascript">
// this identifies your website in the createToken call below