Skip to content

Instantly share code, notes, and snippets.

namespace Fsion
open System.Threading
[<Struct;NoEquality;NoComparison>]
type Cancel =
private
| Cancel of bool ref * children: Cancel list ref
module internal Cancel =
@aaronmu
aaronmu / Async.fs
Created January 2, 2019 22:18 — forked from kspeakman/Async.fs
Helpers
namespace Utils
module Async =
let retn x =
async { return x }
let lift f =
f >> retn
@aaronmu
aaronmu / fix-ubuntu-18.10-on-dell-xps-9570
Last active December 1, 2018 13:25 — forked from leoheck/fix-ubuntu-18.10-on-dell-xps-9570
Fix Ubuntu 18.10 on Dell XPS 9570
#
# Run this from the Live USB.
#
#############################
# EDIT YOUR PARTITIONS HERE #
#############################
root_partition=/dev/nvm0n1p2
sudo mount ${root_partition} /mnt
@aaronmu
aaronmu / Deploy.md
Created August 14, 2018 22:17 — forked from alfonsogarciacaro/Deploy.md
Deploying an F# ASP.NET Core app (Giraffe) to Azure

Deploying an F# ASP.NET Core app to Azure

Last week I spent a lot of time trying to deploy an F# ASP.NET Core app (a Giraffe app, specifically) to Azure because the information to complete all the steps was scattered in several places. So I'm writing this hopefully it will save the pain to others :)

Preparation

The following steps are mostly taken from this guide and it's only necessary to do them once:

  1. Create an account in Azure (or use an existing one)
  2. Create a resource group (or use an existing one)
@aaronmu
aaronmu / FunWithBaskets.cs
Created June 8, 2018 11:10 — forked from yreynhout/FunWithBaskets.cs
How can I use child entities?
public class Basket : EventSource
{
private int Id;
private List<Item> Items = new List<Item>();
public Basket()
{
On<ItemAddedToBasket>(e => {
var item = new Item(@event =>