Skip to content

Instantly share code, notes, and snippets.

View snboisen's full-sized avatar

Søren Nguyen Boisen snboisen

  • HivePeople ApS
View GitHub Profile
@snboisen
snboisen / FindIndexTest.cs
Created July 7, 2015 15:51
Two ways to find index of longest string in a collection of strings in C#
using System.Collections.Generic;
using System.Linq;
using NUnit.Framework;
namespace Async.Model.UnitTest
{
public class FindIndexTest
{
public struct LengthAndIndex
{
using System;
using System.Net.Http;
using System.Threading;
using System.Threading.Tasks;
using System.Web.Http.Controllers;
using System.Web.Http.Filters;
using Example.Extensions;
namespace Example.Filters
{
@snboisen
snboisen / AspNetCoreTemplateLoader.cs
Created June 20, 2017 16:15
A template loader for Stubble based on ASP.NET Core abstractions
using System.Collections.Concurrent;
using System.IO;
using System.Text;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Options;
using Stubble.Core.Interfaces;
namespace TeamString.Admin.Email
{