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: 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" |
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.Net | |
open System.Net.Sockets | |
open System.IO | |
open System.Text.RegularExpressions | |
open System.Text | |
/// A table of MIME content types. | |
let mimeTypes = | |
dict [".html", "text/html"; | |
".htm", "text/html"; |
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
open System | |
let mutable A, B, C = 0.0, 0.0, 0.0 | |
let mutable cubeWidth = 20.0 | |
let width, height = 160, 44 | |
let zBuffer = Array.create (width * height) 0.0 | |
let buffer = Array.create (width * height) ' ' | |
let backgroundASCIICode = '.' | |
let distanceFromCam = 100.0 |
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 Shared | |
open System | |
open System.IO | |
open Microsoft.ML | |
open Shared.Models.MLModel | |
// Define variables | |
let baseDirectory = __SOURCE_DIRECTORY__ | |
let baseDirectory' = Directory.GetParent(baseDirectory) |
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:Microsoft.ML" | |
#r "nuget:Microsoft.ML.OnnxRuntime" | |
#r "nuget:Microsoft.ML.OnnxTransformer" | |
#r "nuget:Microsoft.ML.ImageAnalytics" | |
#r "nuget:System.Drawing.Common" | |
open System.IO | |
open System.Drawing | |
open Microsoft.ML | |
open Microsoft.ML.Data |