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
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({ |
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
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 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 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 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 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
export interface ErrorValue { | |
ErrorValue: string; | |
} | |
export interface ResultValue<T> { | |
ResultValue: T; | |
} | |
export interface ErrorResult { | |
Case: "Error"; |
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
time1 will return the time the server started and won't change, ie will always be 27/06/2020 18:16:59 | |
time2 will work as I expected it to work, showing the current time the page was loaded |
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
"use strict"; | |
require("angular"); | |
require("angular-route"); | |
var home = require("./controllers/home"); | |
var testService = require("./services/testService"); | |
angular.module("app", ["ngRoute"]) | |
.config(function ($routeProvider) { | |
$routeProvider.when("/", { |
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
|-- app.js | |
|-- common/ | |
| |-- common.js | |
| |-- directives/ | |
| | |-- someCommonDirective.js | |
| | |-- someOtherCommonDirective.js | |
|-- customers/ | |
| |-- customerList.js | |
| |-- customerList.html | |
| |-- customerCreate.js |
NewerOlder