Skip to content

Instantly share code, notes, and snippets.

View Mr0cket's full-sized avatar

Milo Silva Mr0cket

View GitHub Profile
@Mr0cket
Mr0cket / prompts_claude.py
Last active September 29, 2024 14:49
Claude-3.5 (Anthropic) extensible prompt commands with conversation history
#!/usr/bin/env python
from collections import namedtuple
import anthropic
import os, sys, json
import argparse
system_msg = "Answer as simply and concisely as possible"
Command = namedtuple('Command', ['system', 'message', 'keep_history'], defaults=['', '', False])
@Mr0cket
Mr0cket / prompts.py
Last active August 18, 2024 09:09
Openai shell chat script with extensible templates & conversation history
#!/usr/bin/env python
from openai import Client
import os, sys, json
import argparse
system_msg = {
"role": "system",
"content": "Answer as simply and concisely as possible",
}
@Mr0cket
Mr0cket / React-Native-m1-Mac.MD
Last active October 18, 2021 12:00
Troubleshooting React-native 0.65 with Apple M1 and Xcode 12.5

react-native 0.65 with Apple M1 and Xcode 12.5

This is how I got react-native to compile on Apple Silicon without rosetta.

Clean Caches

$ pod cache clean --all
$ yarn cache clean