Skip to content

Instantly share code, notes, and snippets.

@RobinHerbots
RobinHerbots / exampleUsage.js
Created October 25, 2011 09:25
jquery konami code plugin
(function($) {
$(document).ready(function() {
$(document).konami(function() {
var s = document.createElement('script');
s.type = 'text/javascript';
document.body.appendChild(s);
s.src = 'http://erkie.github.com/asteroids.min.js';
});
$(document).konami(function() {
var u = navigator.userAgent.toLowerCase(), v = (u.match(/.+?(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [0, '0'])[1];
@RobinHerbots
RobinHerbots / ProxyBase.cs
Created October 24, 2011 12:28
Simple WCF Proxybase with a static ChannelFactory
using System;
using System.ServiceModel;
using System.Collections.Generic;
using System.Diagnostics;
using System.Threading;
namespace ServiceProxies
{
public class ProxyBase<TChannel> : IDisposable where TChannel : class
@RobinHerbots
RobinHerbots / ProxyBase.cs
Last active October 11, 2023 20:25
WCF ProxyBase with channel reuse
using System;
using System.Runtime.Serialization;
using System.Collections.Generic;
using System.Diagnostics;
using System.ServiceModel;
using System.Threading;
using System.Reflection;
namespace ServiceProxies
{