This file contains hidden or 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 | |
| open System.Collections.Generic | |
| type ProductShipped = | |
| { Sku: string | |
| Quantity: int | |
| DateTime: DateTime } | |
| type ProductReceived = | |
| { Sku: string |
This file contains hidden or 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: System.Data.SqlClient" | |
| open System.Data | |
| open System.Data.SqlClient | |
| type Types = | |
| | String | |
| | Int | |
| type Action = |
This file contains hidden or 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
| package main | |
| import ( | |
| "context" | |
| "net/http" | |
| "github.com/alexedwards/scs/v2" | |
| ) | |
| type application struct { |
This file contains hidden or 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
| using System.Text; | |
| using System.Text.Json; | |
| using System.Text.Json.Serialization; | |
| using HtmlAgilityPack; | |
| const string baseUrl = "https://YOUR_DOMAIN_HERE"; | |
| // I know my site only had 14 pages, adjust accordingly | |
| const int maxPageTraversal = 14; | |
| var root = Directory.GetCurrentDirectory(); | |
| var converter = new ReverseMarkdown.Converter(); |
This file contains hidden or 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
| import Anthropic from "@anthropic-ai/sdk"; | |
| import type { MessageParam } from "@anthropic-ai/sdk/resources"; | |
| import dotenv from "dotenv"; | |
| import { Instructor } from "./instructor"; | |
| import type { z } from "zod"; | |
| dotenv.config(); | |
| function sendToClaude<T>(message: MessageParam, schema: z.Schema<T>) { | |
| const anthropicClient = new Anthropic({ |
OlderNewer