Skip to content

Instantly share code, notes, and snippets.

View wootsbot's full-sized avatar
:octocat:
Doing this 'n' that.

jlca wootsbot

:octocat:
Doing this 'n' that.
View GitHub Profile
@wootsbot
wootsbot / coding-agent.py
Created March 19, 2025 14:41 — forked from Madhav-MKNC/coding-agent.py
All the code you need to create a powerful agent that can create and edit any file on your computer using the new text_editor tool in the Anthropic API.
import anthropic
import os
import sys
from termcolor import colored
from dotenv import load_dotenv
class ClaudeAgent:
def __init__(self, api_key=None, model="claude-3-7-sonnet-20250219", max_tokens=4000):
"""Initialize the Claude agent with API key and model."""
@wootsbot
wootsbot / AppDelegate.mm
Created July 4, 2024 15:44 — forked from juanchoperezj/AppDelegate.mm
Use RocketSim Network Monitoring with a React Native Project (Not Expo)
// imports...
@interface RocketSimLoader : NSObject
- (void)loadRocketSimConnect;
@end
@implementation RocketSimLoader
@wootsbot
wootsbot / google-sign-in.tsx
Created September 29, 2023 06:37 — forked from sonipranjal/google-sign-in.tsx
Supabase + Expo + Google Sign In
// go to supabase dashboard -> into auth -> url config -> put the Redirect URLs as [your-scheme]://google-auth
import * as WebBrowser from "expo-web-browser";
WebBrowser.maybeCompleteAuthSession();
const extractParamsFromUrl = (url: string) => {
const parsedUrl = new URL(url);
const params = parsedUrl.searchParams; // Using searchParams instead of splitting on "#"
@wootsbot
wootsbot / tab-trigger.js
Created July 22, 2017 01:55 — forked from wesbos/tab-trigger.js
How to properly get a TAB trigger working with Emmet inside of JSX
{
"keys": ["tab"],
"command": "expand_abbreviation_by_tab",
// put comma-separated syntax selectors for which
// you want to expandEmmet abbreviations into "operand" key
// instead of SCOPE_SELECTOR.
// Examples: source.js, text.html - source
"context": [
{