Skip to content

Instantly share code, notes, and snippets.

View aarondandy's full-sized avatar
🐦
:parrotwave1::parrotwave2::parrotwave3::parrotwave4::parrotwave5::parrotwave6:

Aaron Dandy aarondandy

🐦
:parrotwave1::parrotwave2::parrotwave3::parrotwave4::parrotwave5::parrotwave6:
View GitHub Profile
public class FooCopier
{
public static FooCopier Default { get; } = new FooCopier();
public static FooCopier WithoutBar { get; } = new FooCopier(skipBar: true);
private readonly IMapper mapper;
public FooCopier(bool skipBar = false)
{
@aarondandy
aarondandy / netcore linecount
Last active January 23, 2020 00:20 — forked from hyrmn/netcore linecount
netcore 3.1. hardcoded to the location of a 1.6gb text file
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Running;
using System;
using System.IO;
using System.Numerics;
using System.Runtime.CompilerServices;
using System.Text;
namespace BensWordCounter
{
@aarondandy
aarondandy / CacheTesting.cs
Created July 9, 2020 22:36
async blocking memory cache
using Microsoft.Extensions.Caching.Memory;
using System;
using System.Collections.Concurrent;
using System.Linq;
using System.Threading;
using System.Threading.Tasks;
namespace CacheTesting
{
class Program