Skip to content

Instantly share code, notes, and snippets.


Joel Verhagen joelverhagen

View GitHub Profile
View npe-fails.csv
Id Version
2.0.0-alpha1 2.0.0-alpha1
AbstractUltraGrid 1.0.0
AbstractUltraGrid 1.0.1
Acheve.AspNet.TestHost.Security 1.0.0-rc1-final
Acr.BarCodes.TEMP 3.2.0
Adform.Advertising.SDK 2.0.1
Adform.Advertising.SDK 2.0.2
Adform.Advertising.SDK 2.0.3
joelverhagen / AuthHelper.cs
Created Feb 27, 2021
Manual validate AAD OAuth 2.0 JWT in Azure Functions
View AuthHelper.cs
using System.Threading.Tasks;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.Logging;
using System.Security.Claims;
using Microsoft.IdentityModel.Protocols.OpenIdConnect;
using Microsoft.IdentityModel.Protocols;
using Microsoft.IdentityModel.Tokens;
using System.IdentityModel.Tokens.Jwt;
using System.Linq;
using System.Collections.Concurrent;
View EntityLimitsEmulator.cs
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Table;
namespace EntityLimits
class Program
View RedirectingHandler.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
namespace Knapcode.Http.Handlers
View Output.txt
Size: 1048488 (1048576 - 1048488 = 88)... success!
Size: 1048489 (1048576 - 1048489 = 87)... Bad Request
View AsyncDisposableTest.cs
public class AsyncDisposableTest : IAsyncDisposable, IDisposable
private readonly ILogger<AsyncDisposableTest> _logger;
public AsyncDisposableTest(ILogger<AsyncDisposableTest> logger)
_logger = logger;
joelverhagen /
Created Feb 12, 2012
Jekyll YouTube Embed Plugin

This is a plugin meant for Jekyll.

Example use:

Easily embed a YouTube video. Just drop this file in your _plugins directory.

{% youtube oHg5SJYRHA0 %}
joelverhagen / Program.cs
Last active Sep 8, 2020
Get supported frameworks of a package
View Program.cs
using NuGet.Client;
using NuGet.ContentModel;
using NuGet.Frameworks;
using NuGet.Packaging;
using NuGet.Packaging.Core;
using NuGet.RuntimeModel;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
joelverhagen / Program.cs
Created Feb 13, 2018
NuGet API, get download count per version
View Program.cs
// All you need is the NuGet.Protocol package from
using System;
using System.Threading;
using System.Threading.Tasks;
using NuGet.Common;
using NuGet.Protocol;
using NuGet.Protocol.Core.Types;
namespace ConsoleApp1