Skip to content

Instantly share code, notes, and snippets.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="https it all" patternSyntax="Wildcard" stopProcessing="true">
<match url="*" />
<action type="Redirect" url="https://{HTTP_HOST}/{R:0}" />
</rule>
</rules>
@wwb
wwb / gist:4209212
Created December 4, 2012 21:56
CIC Embed
<script src='http://player.ooyala.com/v3/bd94a64b08a482b88d0c65be328c73e'></script>
<div id='ooyalaplayer' style='width:1280px;height:720px'></div>
<script>OO.ready(function() { OO.Player.create('ooyalaplayer', 'g3a3JrNDrUl5zJ7M4h7IL49PFvGC7JKX'); });</script>
<noscript><div>Please enable Javascript to watch this video</div></noscript>
@wwb
wwb / axiom.patch
Created October 1, 2012 16:59
Patch for stylesheet
@@ -1,5 +1,5 @@
-@import url(../../../stylesheets/application.css);
-@import url(http://fonts.googleapis.com/css?family=Homenaje);
+@import url(../../../stylesheets/application.css);
+@import url(//fonts.googleapis.com/css?family=Homenaje);
@wwb
wwb / FileHandler.cs
Created September 6, 2012 16:42
Simple file IHttpHandler
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.IO;
@wwb
wwb / complex.cs
Created August 1, 2012 15:16
complex map / reduce example
public class MapReadingDocument
{
public MapReadingDocument()
{
Created = DateTimeOffset.Now;
FederalInfo = new FederalCoordinates();
TransmissionTech = TransmissionTechnology.AllOtherTransmissionTechs;
MaxAdvertisedUp = new TransmissionSpeed();
MaxAdvertisedDown = new TransmissionSpeed();
TypicalUpload = new TransmissionSpeed();