Skip to content

Instantly share code, notes, and snippets.

View shaneholloman's full-sized avatar

Shane Holloman shaneholloman

  • Cello Ltd
  • Wellington, NZ
  • 20:01 (UTC +12:00)
View GitHub Profile
@shaneholloman
shaneholloman / consoleoutput.md
Created March 7, 2025 22:17 — forked from timheuer/consoleoutput.md
Default console output

Console Output

There are 3 ways console output can be displayed in VS Code. These are explained here: https://code.visualstudio.com/docs/csharp/debugger-settings#_console-terminal-window

Below are example outputs using a standard .NET Console app with some Hello World WriteLine statements and ending in a ReadLine

What do you like and want to be the default.

integratedConsole (current default)

Uses the Debug Console in VS Code

@shaneholloman
shaneholloman / mcp-install.ps1
Created December 13, 2024 18:19 — forked from evalstate/mcp-install.ps1
Powershell Script to install a Node packaged MCP Server for Claude Desktop
param(
[Parameter(Mandatory=$true)]
[string]$PackageName
)
Write-Host "Starting installation process for $PackageName..."
# Check Claude Desktop folder
Write-Host "Checking Claude Desktop installation..."
$claudeFolder = Join-Path $env:APPDATA "Claude"
import asyncio
import base64
import json
import os
import pyaudio
from websockets.asyncio.client import connect
class SimpleGeminiVoice:
def __init__(self):
@shaneholloman
shaneholloman / Adding a "political spectrum" attribute to VERDAD's analysis prompt - discussion with Claude.md This is how we revised our analysis prompt to add a new attribute to its output, along with defining the guidelines and generating synthetic examples

Political Spectrum Analysis Prompt

human (Oct 30, 2024, 06:03 PM)

I want to ask the analysis stage llm (a very advanced multimodal LLM) to assess I want to ask the LLM to assess is the snippet politically left-leaning or right-leaning (on a spectrum of -1.0 to +1.0 where -1.0 is extremely left-leaning and +1.0 is extremely right leaning). Please help me to add this to the prompt. Here is the existing prompt that I want you to add it to:

paste.txt
@shaneholloman
shaneholloman / rag-demo.ts
Created December 11, 2024 13:40 — forked from simonw/rag-demo.ts
Val.Town demo from this morning
import { basicAuth } from "https://esm.town/v/pomdtr/basicAuth?v=65";
import Anthropic from "npm:@anthropic-ai/[email protected]";
const anthropic = new Anthropic();
async function suggestKeywords(question) {
const message = await anthropic.messages.create({
max_tokens: 128,
model: "claude-3-5-sonnet-20240620",
tools: [{
@shaneholloman
shaneholloman / wget.md
Created December 11, 2024 13:39 — forked from simonw/wget.md
Recursive wget ignoring robots
$ wget -e robots=off -r -np 'http://example.com/folder/'
  • -e robots=off causes it to ignore robots.txt for that domain
  • -r makes it recursive
  • -np = no parents, so it doesn't follow links up to the parent folder
@shaneholloman
shaneholloman / mlx_whisper_realtime.py
Created December 11, 2024 13:32 — forked from simonw/mlx_whisper_realtime.py
mlx-whisper real time audio
# /// script
# dependencies = [
# "SpeechRecognition",
# "mlx-whisper",
# "pyaudio",
# ]
# ///
import speech_recognition as sr
import numpy as np
# /// script
# dependencies = [
# "atproto"
# ]
# ///
from atproto import Client
import getpass
import time

Setting Up MCP Servers on Windows

A step-by-step guide to setting up Model Context Protocol (MCP) servers for Claude Desktop on Windows.

TODO:

  • volta

Prerequisites

  1. Install Node.js (v18.x or later)
@shaneholloman
shaneholloman / hedge-fund-agent-team-v1-3.ipynb
Created November 15, 2024 23:20 — forked from virattt/hedge-fund-agent-team-v1-3.ipynb
hedge-fund-agent-team-v1-3.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.