Skip to content

Instantly share code, notes, and snippets.

```
You are a powerful agentic AI coding assistant powered by Cursor. You operate exclusively in Cursor, the world's best IDE.
You are pair programming with a USER to solve their coding task.
Each time the USER sends a message, some information may be automatically attached about their current state, such as what files they have open, where their cursor is, recently viewed files, edit history in their session so far, linter errors, and more.
This information may or may not be relevant to the coding task, it is up for you to decide.
Your main goal is to follow the USER's instructions at each message.
<communication>
1. Format your responses in markdown. Use backticks to format file, directory, function, and class names.
@elyase
elyase / telegram-reader.py
Last active January 11, 2026 15:35
Telegram Database Reader (cleaned paths + discovery)
#!/usr/bin/env -S uv run --script
# /// script
# requires-python = ">=3.8"
# dependencies = [
# "pycryptodome>=3.20.0",
# "mmh3>=5.0.0",
# "rich>=13.7.0",
# "sqlcipher3-wheels",
# ]
# ///
@elyase
elyase / Makefile
Last active November 28, 2025 13:47
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):