Skip to content

Instantly share code, notes, and snippets.

@elyase
elyase / Makefile
Last active November 10, 2025 02:07
Unified Log Streaming Setup - Stream frontend, backend, and browser logs in one terminal
.PHONY: help dev tail-log clean install check build
# Default target
help:
@echo "Available targets:"
@echo " make dev - Start all development processes (frontend, backend, etc.)"
@echo " make tail-log - Follow the dev.log file (no colors)"
@echo " make clean - Remove logs and PID files"
@echo " make install - Install dependencies for all services"
@echo " make check - Run linters and type checks"
@elyase
elyase / modals.md
Created August 20, 2025 22:18
modals.md

Modal Labs Scaling Guide

Overview

Modal is a serverless cloud platform that provides automatic scaling for Python workloads. It's particularly useful for:

  • Parallel data processing
  • Machine learning training and inference
  • Hyperparameter optimization
  • Web scraping at scale
  • Batch computations requiring GPUs
@elyase
elyase / vocs_llms.md
Created March 29, 2025 10:53
vocs_llms.md
@elyase
elyase / weth_logs_example.py
Created February 27, 2025 11:30
Example of how to fetch and join raw tables in cherry
import asyncio
import cherry_core
import polars as pl
import pyarrow as pa
import pyarrow.compute as pc
from cherry_core import ingest
from pyarrow import RecordBatch
# Configuration for teaching purposes
@elyase
elyase / polymarket_order_book.py
Last active August 14, 2025 12:04
Fetch orderbook data from polymarket
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests"
# ]
# ///
import requests
import json
This file has been truncated, but you can view the full file.
# API reference
The API reference contains detailed descriptions of all public functions and objects. It's the best
place to look if you need information on a specific function.
## Python
The Python API reference is built using Sphinx. It's available in
[our docs](https://docs.pola.rs/api/python/stable/reference/index.html).
@elyase
elyase / r1.py
Created January 26, 2025 12:25 — forked from vgel/r1.py
script to run deepseek-r1 with a min-thinking-tokens parameter, replacing </think> with a random continuation string to extend the model's chain of thought
import argparse
import random
import sys
from transformers import AutoModelForCausalLM, AutoTokenizer, DynamicCache
import torch
parser = argparse.ArgumentParser()
parser.add_argument("question", type=str)
parser.add_argument(
import asyncio
import base64
import json
import os
import pyaudio
from websockets.asyncio.client import connect
class SimpleGeminiVoice:
def __init__(self):
@elyase
elyase / .cursorrules.md
Created November 7, 2024 12:12 — forked from bossjones/.cursorrules.md
cursor rules generated with the help of sonnet 3.5

Python Development Assistant Prompt System

Version Control

version: 1.0.0
last_updated: 2024-03-19
sections:
  - core_requirements
  - python_version
 - code_style
@elyase
elyase / Cargo.toml
Created May 14, 2024 11:19 — forked from kallydev/Cargo.toml
Alloy log subscriber.
[package]
name = "playground"
version = "0.1.0"
edition = "2021"
[dependencies]
alloy = { git = "https://github.com/alloy-rs/alloy.git", features = ["contract", "provider-ws", "rpc-types-eth"] }
anyhow = "1.0.82"
tokio = { version = "1.37.0", features = ["full"] }
tracing = "0.1.40"