Skip to content

Instantly share code, notes, and snippets.

View analogrelay's full-sized avatar
💖

Ashley Stanton-Nurse analogrelay

💖
View GitHub Profile
Id Version
-- -------
DotNetOpenAuth.AspNet 4.1.4.12333
DotNetOpenAuth.Core 4.1.4.12333
DotNetOpenAuth.OAuth.Consumer 4.1.4.12333
DotNetOpenAuth.OAuth.Core 4.1.4.12333
DotNetOpenAuth.OpenId.Core 4.1.4.12333
DotNetOpenAuth.OpenId.RelyingParty 4.1.4.12333
EntityFramework
@analogrelay
analogrelay / gist:5827060
Created June 20, 2013 21:56
Does this compile?
using System;
public static class Program
{
static void Main(string[] args)
{
http://localhost/index.html
Console.WriteLine("hello!");
}
public class FixedJsonWebTokenHandler : JsonWebTokenHandler
{
public override SecurityToken ReadToken(string tokenString)
{
// Azure ACS messes with the token a bit
return base.ReadToken(Encoding.UTF8.GetString(Convert.FromBase64String(tokenString)));
}
}
@analogrelay
analogrelay / gist:5485124
Created April 29, 2013 21:55
Azure Portal Full Width
#headerbar-wrapper {
width: 100%;
margin-left: 0;
left: 0;
}
#fxshell-navpane {
left: 0;
margin-left: 0;
}
#drawer {
@analogrelay
analogrelay / gist:5208395
Created March 20, 2013 21:01
Testing X-Frame-Options: deny
<html>
<head><title>NuGet</title></head>
<body>
<h1>Nuget!</h1>
<iframe src="http://preview.nuget.org"></iframe>
</body>
</html>
@analogrelay
analogrelay / Program.cs
Last active December 13, 2015 23:29
Curious about Lambdas vs Method Groups...
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Curious
{
class Program
@analogrelay
analogrelay / BlobScanner.cs
Created November 30, 2012 02:41
Blob Scanner
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Blob;
namespace BlobScanner
{
@analogrelay
analogrelay / PatchedWebViewPage.cs
Created November 8, 2012 02:12
Patched WebViewPage base class
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.WebPages;
using System.Web.WebPages.Instrumentation;
namespace MvcApplication1.Patches
@analogrelay
analogrelay / PatchedWebViewPage.cs
Created November 8, 2012 02:09
Patched WebViewPage base class
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.WebPages;
using System.Web.WebPages.Instrumentation;
namespace MvcApplication1.Patches
@analogrelay
analogrelay / IConsole.cs
Created May 18, 2012 21:51
BadImageFormatException - The signature is incorrect
public interface IConsole {
void WriteLine(string line);
}