This file contains 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
#!/bin/bash | |
# | |
# not working atm, Install Oracle JDK 8 for use with SDKMAN on macOS | |
# download not working...to fix | |
# | |
# https://download.oracle.com/otn/java/jdk/8u401-b10/4d245f941845490c91360409ecffb3b4/jdk-8u401-macosx-x64.dmg | |
# https://gist.github.com/wavezhang/ba8425f24a968ec9b2a8619d7c2d86a6 | |
set -eu |
This file contains 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 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 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 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 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 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 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 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 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" |
NewerOlder