Skip to content

Instantly share code, notes, and snippets.

View tvandijck's full-sized avatar

Tom van Dijck tvandijck

View GitHub Profile
[SupportedOSPlatform("windows")]
[SupportedOSPlatform("linux")]
[SupportedOSPlatform("macos")]
public static class AvaloniaApplicationLifetimeExtensions
{
/// <summary>
/// Configures the host to use avaloniaui application lifetime.
/// Also configures the <typeparamref name="TApplication"/> as a singleton.
/// </summary>
/// <typeparam name="TApplication">The type of avaloniaui application <see cref="Application"/> to manage.</typeparam>
@tvandijck
tvandijck / MeowHash.cs
Created August 13, 2020 13:57
Post of MeowHash to .NET Core 3.1
//#define MEOW_DUMP
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Intrinsics;
using System.Runtime.Intrinsics.X86;
namespace Meow
{
public static class MeowHash