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
#load "runtime-scripts/Microsoft.AspNetCore.App-latest-8.fsx" | |
// to gen the above run this script in the local folder | |
// https://raw.githubusercontent.com/TheAngryByrd/IcedTasks/master/generate-sdk-references.fsx | |
#r "nuget: Feliz.ViewEngine" | |
#r "nuget: Microsoft.AspNetCore.OpenApi" | |
#r "nuget: Swashbuckle.AspNetCore" | |
open Microsoft.AspNetCore | |
open Microsoft.AspNetCore.Builder |
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: Fli" | |
open Fli | |
// change these or pass as arguments (modify script) | |
[<Literal>] | |
let packagesFolder = "$HOME/.nuget/packages" | |
[<Literal>] |
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 | |
module Test = | |
let hello world = | |
"hello " + world | |
let lst = | |
[ | |
"world" |
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
module Test = struct | |
let hello world = | |
"hello " ^ world | |
end | |
let lst = | |
[ | |
"world"; | |
"john"; |
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 FSharp.Data.UnitSystems.SI | |
[<Measure>] | |
type g | |
[<Measure>] | |
type kg | |
[<Measure>] | |
type m |
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: FSharp.Data" | |
#r "nuget: EluciusFTW.SpectreCoff" | |
open FSharp.Data | |
open SpectreCoff | |
open System | |
type ``π`` = CsvProvider<"./workshop.csv"> | |
let sample = ``π``.GetSample() |
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: Spectre.Console" | |
// https://mdbouk.com/how-to-create-beautiful-console-applications-with-spectre-console/ | |
// https://www.asciiart.eu/animals/bears | |
// | |
#r "nuget: EluciusFTW.SpectreCoff" | |
#r "nuget: Spectre.Console.ImageSharp, 0.48.0" | |
#r "nuget: FSharp.Data" | |
#r "nuget: AlienFruit.FluentConsole.AsciiArt" | |
#r "nuget: FsHttp" |
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: FSharp.Data" | |
#r "nuget: EluciusFTW.SpectreCoff" | |
open FSharp.Data | |
open SpectreCoff | |
type ``π`` = | |
// just create your own google sheet and publish it from File menu, select CSV | |
// or use any other CSV, this works with any valid csv published in url or in your file system | |
CsvProvider<"https://docs.google.com/spreadsheets/d/e/GOOGLEKEYBLABLABLABLABLA/pub?output=csv"> |
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: Spectre.Console" | |
// https://mdbouk.com/how-to-create-beautiful-console-applications-with-spectre-console/ | |
// https://www.asciiart.eu/animals/bears | |
// | |
#r "nuget: EluciusFTW.SpectreCoff" | |
#r "nuget: FSharp.Data" | |
#r "nuget: AlienFruit.FluentConsole.AsciiArt" | |
#r "nuget: FsHttp" |
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: FsHttp" | |
#r "nuget: Spectre.Console.ImageSharp" | |
open FsHttp | |
open Spectre.Console | |
let imgUrl = | |
"https://banner2.cleanpng.com/20200525/frt/transparent-hero-image-hero-logo-cartoon-5ecc928ba8c9a0.2212187815904651636914.jpg" |