Skip to content

Instantly share code, notes, and snippets.

@Fxplorer
Fxplorer / Avalonia_FsharpScript_assign_window.fsx
Last active April 17, 2024 23:28
Avalonia_FsharpScript_assign_window
(*
This version of the script delays the main window creation until the app.Run(view1()) call.<br />
This will allow seperating out the app code and be able to parametrize the window to use when it is called in a later script version.
More F# Avalonia xploration at https://blog.fxplorer.net/series/xploring-avalonia-fsharp
*)
#if INTERACTIVE
#r "nuget: Avalonia"
#if INTERACTIVE
#r "nuget: Avalonia"
#r "nuget: Avalonia.Desktop"
#r "nuget: Avalonia.Themes.Simple"
#endif
open Avalonia
@Fxplorer
Fxplorer / elmish_observable.md
Created March 18, 2024 12:39 — forked from davedawkins/elmish_observable.md
Create an IObservable from an Elmish program

Assumption

  • we want to create an IObservable from an existing Fable Elmish program
  • we want to leave the structure of the Elmish program intact

Original Elmish program:

type Model = { Counter: int }
type Msg = Increment of int
@Fxplorer
Fxplorer / fsdocs
Created March 18, 2024 10:06
FSharp.Formatting (fsdocs) Tutorial
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The goal of this workbook is to initialize the FSharp.Formatting document creation utility in one's own repo."
]
},
{