Skip to content

Instantly share code, notes, and snippets.

View rreece's full-sized avatar
πŸ™ˆ
doing things

Ryan Reece rreece

πŸ™ˆ
doing things
View GitHub Profile
@rreece
rreece / read_yaml.py
Created January 6, 2024 22:44
read_yaml.py
import yaml
def read_yaml(path):
with open(path, 'r') as f:
config = yaml.safe_load(f)
return config
@rreece
rreece / openai-chat-client.py
Created July 19, 2025 01:39
OpenAI compatible chat client in the terminal
"""
openai-chat-client.py
OpenAI compatible chat client in the terminal
See:
https://github.com/openai/openai-python
https://github.com/vllm-project/vllm/blob/main/examples/openai_chat_completion_client.py
"""
@rreece
rreece / gist:fa14808bafeb89589e133d3f11a499b7
Created January 22, 2026 05:05 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: πŸ˜„ :smile: πŸ˜† :laughing:
😊 :blush: πŸ˜ƒ :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
πŸ˜† :satisfied: 😁 :grin: πŸ˜‰ :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: πŸ˜€ :grinning:
πŸ˜— :kissing: πŸ˜™ :kissing_smiling_eyes: πŸ˜› :stuck_out_tongue:
@rreece
rreece / microgpt.py
Last active February 12, 2026 02:13 — forked from karpathy/microgpt.py
microgpt
"""
The most atomic way to train and inference a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@rreece
rreece / save_hf_dataset_csv.py
Last active June 12, 2026 14:05
save_hf_dataset_csv.py
"""
Script for saving a HuggingFace text dataset to csv.
See also:
https://datascience.stackexchange.com/questions/35868/how-to-store-strings-in-csv-with-new-line-characters
"""
import argparse
import os