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
namespace App.Swagger.Filters; | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
using Microsoft.OpenApi.Models; | |
using Swashbuckle.AspNetCore.SwaggerGen; | |
/* | |
services.AddSwaggerGen(c => |
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.OnnxTransformer" | |
#r "nuget: System.Net.Http" | |
#r "nuget: Downloader" | |
// Import required namespaces | |
open System | |
open Downloader | |
let downloadFileWithProgress (destinationPath: string) (url: string) = |
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: EluciusFTW.SpectreCoff, 0.49.12" | |
open System | |
open System.IO | |
open System.Net.Http | |
open System.Threading.Tasks | |
open SpectreCoff.Progress | |
open SpectreCoff | |
// Function to download a file with a progress bar |
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:Fantomas.Core" | |
open Fantomas.Core | |
open Fantomas.Core.SyntaxOak | |
open Fantomas.FCS.Text | |
open System | |
(** `namespace A.B.C` : https://fsprojects.github.io/fantomas-tools | |
Oak (1,0-1,15) | |
ModuleOrNamespaceNode (1,0-1,15) | |
ModuleOrNamespaceHeaderNode (1,0-1,15) |
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
#nowarn "20" | |
// invoke this script locally to load aspnet dependencies | |
// https://github.com/TheAngryByrd/IcedTasks/blob/master/generate-sdk-references.fsx | |
#load "runtime-scripts/Microsoft.AspNetCore.App-latest-8.fsx" | |
#r "nuget: Falco, 5.0.0-alpha3" | |
#r "nuget: Falco.OpenApi, 1.0.0-alpha1" | |
#r "nuget: Swashbuckle.AspNetCore" | |
open Falco | |
open Falco.OpenApi |
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
#nowarn "20" // for OOP/ignore values | |
// invoke this script locally to load aspnet dependencies | |
// https://github.com/TheAngryByrd/IcedTasks/blob/master/generate-sdk-references.fsx | |
#load "runtime-scripts/Microsoft.AspNetCore.App-latest-8.fsx" | |
#r "nuget: Oxpecker" | |
#r "nuget: Oxpecker.OpenApi" | |
#r "nuget: Swashbuckle.AspNetCore " | |
open Microsoft.AspNetCore.Builder | |
open Microsoft.Extensions.DependencyInjection |
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.Orleans.Server" | |
#r "nuget: Microsoft.Extensions.Logging.Console" | |
#r "nuget: IcedTasks" | |
open System | |
open Orleans.Runtime | |
open Microsoft.Extensions.Hosting | |
open Orleans.Hosting | |
open Microsoft.Extensions.Logging | |
open Microsoft.Extensions.DependencyInjection |
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.Extensions.DependencyInjection" | |
#r "nuget: Microsoft.Extensions.Http" | |
#r "nuget: Microsoft.Extensions.Logging.Console" | |
#r "nuget: Microsoft.Extensions.Logging" | |
#r "nuget: Microsoft.SemanticKernel.Connectors.HuggingFace, 1.12.0-preview" | |
open Microsoft.SemanticKernel | |
open Microsoft.SemanticKernel.ChatCompletion | |
open Microsoft.Extensions.Logging |
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 |
NewerOlder