Skip to content

Instantly share code, notes, and snippets.

View jcmrva's full-sized avatar

Josh M jcmrva

View GitHub Profile
@jcmrva
jcmrva / cake-test
Created August 29, 2023 23:33
testcontainers-dotnet-cake-output
----------------------------------------
Setup
----------------------------------------
Building version 3.5.0-beta of Testcontainers (develop@99ff0056990accb2272441d33e27bd36d14d4b72)
========================================
Clean
========================================
type Animal =
| Cat
| Dog
| Horse
type AnimalSize =
| CatLarge
| DogSmall
| HorseMedium
// ^ changing this to Horse will result in a compile error on the last line
@jcmrva
jcmrva / 1-single-case-active-pattern.fsx
Last active February 4, 2022 14:07
Single case active pattern used as a function before & after a Fantomas update
module AP =
let (|SC|) (i:int) = string i
let before = AP.``|SC|`` 1
// Fantomas 4.6.0-alpha-004
let after = AP.(|SC|) 2
// Fantomas 4.6.1
@jcmrva
jcmrva / .a-wordle-script
Last active March 18, 2022 14:05
Find remaining valid word options or check a word
A guess assistant, not a real solver.
import Http exposing (..)
toErrString : Http.Error -> String
toErrString err =
case err of
BadUrl s ->
"Bad URL: " ++ s
Timeout ->
"Timeout"
NetworkError ->
#r "paket:
nuget Fake.Core.Target
nuget SSH.NET //"
#load "./.fake/build.fsx/intellisense.fsx"
module Ssh =
open Renci.SshNet
open Fake.Core