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:Avalonia.Desktop" | |
#r "nuget:Avalonia.FuncUI" | |
#r "nuget:Avalonia.Themes.Fluent" | |
#r "nuget:ScottPlot.Avalonia" | |
// ScottPlot.Avalonia exists, without global open Avalonia.* failes after ScottPlot is opened. | |
// This really only matters if you want to rerun this entire script without resetting | |
open System | |
open global.Avalonia |
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
type Attr = delegate of RenderTreeBuilder * int -> int | |
type Node = delegate of RenderTreeBuilder * int -> int | |
type NodeBuilder(name: string) = | |
static member Empty = Node(fun _sb x -> x) | |
member _.Name = name |
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: SchlenkR.FsHttp" | |
open FsHttp.DslCE | |
type Switch = On | Off member this.AsBool = match this with On -> true | Off -> false | |
type LightId = LightId of int | |
module Cmd = | |
let username = "<access username>" | |
let ip = "<local ip address>" |
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 Dash.NET; open Plotly.NET; open FSharp.Data; open Deedle; open System; open System.IO; open System.Text; open System.Text.RegularExpressions | |
let req = Http.Request("https://finance.yahoo.com/quote/AMZN/history?p=AMZN",httpMethod=HttpMethod.Get) | |
let body = match req.Body with | HttpResponseBody.Text b -> b | |
let crumb = Regex("CrumbStore\":{\"crumb\":\"(?<crumb>.+?)\"}").Match(body).Groups.["crumb"].Value | |
let cookie = req.Cookies.["B"] | |
let getDf ticker : Frame<System.DateTime,string> = | |
let response = | |
Http.RequestString( |
We can't make this file beautiful and searchable because it's too large.
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
category,cuisine,description,original_url,author,keywords,title,uid | |
"dinner, beans, vegetables, main course",american,"Creamy but not overtly rich, this simple preparation of earthy vegetables is infused with the flavor of salty, homemade <a href=""https://cooking.nytimes.com/recipes/1020934-parmesan-broth"">Parmesan broth</a> — but it’s adaptable, and could also be made using vegetable or chicken stock. If fennel isn’t your thing, try this with celery stalks or parsnips. If you are preparing the puréed beans ahead of time, keep them moist when you reheat them by adding a small splash of Parmesan broth or stock to the saucepan and stirring until warm. This deeply comforting dish can be prepared days in advance and assembled and served within minutes.",/recipes/1020935-braised-fennel-with-white-bean-puree,Julia Sherman,"fall, winter, fennel, garlic, parmesan, shallot, white beans",Braised Fennel With White Bean Purée,1020935 | |
"dinner, soups and stews, main course, side dish",indian,"Dal can be made with all kin |