Skip to content

Instantly share code, notes, and snippets.

View andyedinborough's full-sized avatar

Andy Edinborough andyedinborough

View GitHub Profile
@andyedinborough
andyedinborough / RazorCompiler.cs
Created June 9, 2011 14:04
Update for Mvc Mini Profiler's RazorCompiler.cs
using System;
using System.CodeDom;
using System.CodeDom.Compiler;
using System.Collections.Concurrent;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Web;
using System.Web.Razor;
@andyedinborough
andyedinborough / jquery.oauth.js
Created June 7, 2011 19:30
Introduces $.oauth() to make using OAuth from jQuery as easy as using $.ajax()
(function (window, document, $, undefined) {
if (!$.Deferred) throw 'jQuery 1.5 is required to use the jQuery.oauth script!';
function require(name, url) {
if (window[name] === undefined)
return $.ajax({ type: 'GET', cache: true, dataType: 'script', url: url });
}
$.oauth = function (options) {
var d = $.Deferred();
//lifted from http://imgscalr.com/public/scripts/main.js
(function (window, document, $, tracky) {
var isEventSupported = (function () {
var TAGNAMES = {
'select': 'input',
'change': 'input',
'submit': 'form',
'reset': 'form',
'error': 'img',
'load': 'img',

in your html

site.less .opacity { opacity: 0.5 }

 .corners {

border-radius: 3px;

using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
namespace ConsoleApplication1 {
public class Student {
public string Name { get; set; }
}
@andyedinborough
andyedinborough / Memberwise-Clone-Example.cs
Created April 26, 2010 14:13
Let you do a memberwise clone on a object of a base-type to an object of it's parent-type
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
namespace ConsoleApplication1 {
public class a {
public string testa { get; set; }
public virtual string Who() {
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace Remoting_Test {
class Program {
static void Main(string[] args) {
AE.Remoting.Settings.Current.RemotingHost = "localhost";