This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System | |
open System.IO | |
open System.IO.Compression | |
open System.Text | |
type CompressionValue = { | |
Value: string | |
Size: int | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System.IO | |
type Tree<'T> = | |
|Branch of 'T * Tree<'T> seq | |
|Leaf of 'T | |
type Waypoint = { Location:string; Route:string list; Distance:int } | |
type Connection = { From:string; To:string; Distance:int } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System.IO | |
type Tree<'T> = | |
|Branch of 'T * Tree<'T> seq | |
|Leaf of 'T | |
type Waypoint = { Location:string; Route:(string * decimal) list; Duration:decimal } | |
type Connection = { From:string; To:string; Distance:int; Speed:int } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type Result = Win | Lose | Draw | |
type TableRow = { Id:string; Wins:int; Draws:int; Losses:int; Points:int } | |
let results = [ | |
"A,B,win" | |
"C,D,lose" | |
"B,D,draw" | |
"C,A,win" | |
"B,C,lose" | |
"D,A,win" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"bufio" | |
"fmt" | |
"os" | |
"reflect" | |
"strconv" | |
"strings" | |
) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
open System.IO | |
type Connection = { | |
Start: string | |
Finish: string | |
Distance: int | |
} | |
type Waypoint = { | |
Location: string |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace TestsXunit.Framework; | |
public abstract class BehaviourTest | |
{ | |
protected void Setup() | |
{ | |
Given(); | |
When(); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#r "nuget: FsToolkit.ErrorHandling" | |
open System | |
open FsToolkit.ErrorHandling | |
type LoanAmount = LoanAmount of int | |
type AssetValue = AssetValue of int | |
type CreditScore = CreditScore of int16 | |
type LoanToValueRate = LoanToValueRate of byte |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Based on original at https://gist.github.com/houstonhaynes/fcc26d0265d1572fbdb093af88da926a | |
#r "nuget: CoordinateSharp" | |
open System | |
open CoordinateSharp | |
let find_Closest_TimeUnit = | |
let el = EagerLoad(EagerLoadType.Celestial) |