Skip to content

Instantly share code, notes, and snippets.

View lorddev's full-sized avatar
🎻
likes music

Aaron lorddev

🎻
likes music
View GitHub Profile
@lorddev
lorddev / parsehashbang.js
Last active August 29, 2015 13:56 — forked from miohtama/parse-hash-bang-arguments-in-javascript.js
Useful for ajax navigation
/**
* Parse hash bang parameters from a URL as key value object.
*
* #x&y=3 -> { x:null, y:3 }
*
* @param aURL URL to parse or null if window.location is used
* @return Object of key -> value mappings.
*/
function parseHashBang(url) {
url = url || window.location.href;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace EntityExtensions {
public class FakeDbSet<T> : System.Data.Entity.IDbSet<T> where T : class {
private readonly List<T> list = new List<T>();
public FakeDbSet() {