Skip to content

Instantly share code, notes, and snippets.

View johnazariah's full-sized avatar

John Azariah johnazariah

  • Microsoft Corporation
  • Brisbane, Queensland, Australia
  • 12:28 (UTC +10:00)
View GitHub Profile
@johnazariah
johnazariah / Readme.md
Last active July 11, 2018 07:33
Getting Organised with Orleans 2.0 in .NET Core

Getting Organized with Orleans 2.0 on .NET Core

Prerequisites

  • Install .NET Core >= 2.1.3 so you have access to dotnet tool install.
  • Install Fake 5.0 with dotnet tool install fake-cli -g.
  • Install Fake Templates with dotnet new -i "fake-template::*"
@johnazariah
johnazariah / LinqExtensions.cs
Last active November 15, 2024 13:04
Maybe Monad in C#
public static partial class LinqExtensions
{
public static Maybe<C> SelectMany<A, B, C>(this Maybe<A> ma, Func<A, Maybe<B>> f, Func<A, B, C> select) => ma.Bind(a => f(a).Map(b => select(a, b)));
}
@johnazariah
johnazariah / LazyAsync.cs
Created April 19, 2020 17:12
Simple LazyAsync
namespace Utility
{
using System;
using System.Runtime.CompilerServices;
using System.Threading.Tasks;
internal sealed class LazyAsync<T>
{
public T Value => valueL.Value;