Skip to content

Instantly share code, notes, and snippets.

View Sandip124's full-sized avatar
💬
Thinking

Sandip Chaudhary Sandip124

💬
Thinking
View GitHub Profile
@joakimbeng
joakimbeng / router.html
Last active March 15, 2024 06:18
A really simple Javascript router
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Building a router</title>
<script>
// Put John's template engine code here...
(function () {
// A hash to store our routes:
@lukevenediger
lukevenediger / BetterExpando.cs
Last active April 7, 2023 06:11
BetterExpando is a better Expando object because you can: 1) test for the presence of a property 2) return String.Empty for all properties that aren't found 3) control whether property names are case-sensitive or not 4) augment two BetterExpando objects together to get a union of their properties.
using System;
using System.Collections.Generic;
using System.Dynamic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace statsd.net.shared
{
public class BetterExpando : DynamicObject
@dvhthomas
dvhthomas / EventListener.cs
Created December 6, 2009 22:44
NHibernate event listener
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using NHibernate.Event;
using StructureMap;
namespace *****.Core.Persistence
{
/// <summary>