Skip to content

Instantly share code, notes, and snippets.

View NomiJ's full-sized avatar

Nomi NomiJ

  • systematicbytes.com
  • Victoria, 3064 Australia
View GitHub Profile
@lukestanley
lukestanley / be_nice.py
Last active February 13, 2024 07:20
LangChain spicy comment detox loop using Anthropic
import json
import time
from langchain.chat_models import ChatAnthropic
from langchain.schema import HumanMessage
FAST = "claude-instant-1"
GOOD = "claude-1.3"
model = GOOD
@jamesvulling
jamesvulling / gist:4194636
Created December 3, 2012 12:12
Find non-ascii characters in a text file
grep --color='auto' -P -n "[\x80-\xFF]" file.txt