Skip to content

Instantly share code, notes, and snippets.

View gertjvr's full-sized avatar

Gert Jansen van Rensburg gertjvr

View GitHub Profile
@gertjvr
gertjvr / 0_reuse_code.js
Created March 14, 2017 12:03
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@gertjvr
gertjvr / PerMinuteInExcessOf.cs
Created December 10, 2015 04:54 — forked from nblumhardt/PerMinuteInExcessOf.cs
Proof of concept rate limiting filter for Serilog
using System;
using Serilog;
using Serilog.Configuration;
namespace ConsoleApplication8
{
static class Program
{
static void Main()
{
@gertjvr
gertjvr / Landlord.cs
Created October 9, 2015 00:54 — forked from sheastrickland/Landlord.cs
Landlord: The Com Destroyer. A simple utility class to wrap those nasty little devils.
using System;
using System.Runtime.InteropServices;
namespace Things
{
public static class LandLordExtensions
{
public static LandLord<TWrapped> AsDisposable<TWrapped>(this TWrapped tenant)
{
return new LandLord<TWrapped>(tenant);