Skip to content

Instantly share code, notes, and snippets.

View david-strejc's full-sized avatar

David Strejc david-strejc

  • Prague
View GitHub Profile
#!/usr/bin/env python3
import requests
import json
# Define your API key here. Replace "your-api-key" with your actual API key.
api_key = "your-api-key"
# Define the ChatGPT API endpoint.
url = "https://api.openai.com/v1/engines/davinci-codex/completions"
@david-strejc
david-strejc / Claude Coder Automatic Yes
Created March 15, 2025 13:55
Wrapper for adding automatic YES option selection and execution in Claude Coder
#!/usr/bin/env node
const path = require("path");
const fs = require("fs");
const pty = require("node-pty");
const os = require("os");
// Try to find claude executable - assuming it might be in PATH
// or in the same directory as this wrapper
function findClaudeExecutable() {
// First try the PATH