Skip to content

Instantly share code, notes, and snippets.

View anthonywu's full-sized avatar

Anthony Wu anthonywu

View GitHub Profile
@deepfates
deepfates / convert_archive.py
Created November 17, 2024 19:33
Convert your twitter archive into a training dataset and markdown files
import argparse
import json
import logging
import os
import re
import shutil
from concurrent.futures import ProcessPoolExecutor, as_completed
from dataclasses import dataclass
from datetime import datetime
from typing import Any, Callable, Dict, List, Literal, Optional, Tuple
@andrewnc
andrewnc / chatcli.go
Created April 28, 2025 21:38
find which model you're running to test
package main
import (
"encoding/json"
"fmt"
"io"
"net/http"
"strings"
"github.com/peterh/liner"