Skip to content

Instantly share code, notes, and snippets.

@VirenMohindra
VirenMohindra / nyt_recipes.csv
Created May 10, 2020 13:28
20,300 recipes from NYT Cooking - Last Updated Sunday May 10, 2020 (4 deleted)
We can't make this file beautiful and searchable because it's too large.
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
@kMutagene
kMutagene / dash-stock-ticker-less-loc.fs
Last active February 14, 2022 07:42
Dash stonks ticker App to pluck into an asp.netcore app via DashApp.toHttpHandler.
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(
#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>"
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
@kevmal
kevmal / avaplot.fsx
Created October 2, 2023 17:02
FSI plotting with Avalonia and ScottPlot
#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