Skip to content

Instantly share code, notes, and snippets.

View robmurrer's full-sized avatar

Rob Murrer robmurrer

View GitHub Profile
@robmurrer
robmurrer / hello_fasthtml_plotly_stream.py
Created September 30, 2025 14:18
basic streaming SSE w/ FastHTML and Plotly
import json
import time
import asyncio
import random
from fasthtml.common import *
import plotly.express as px
import pandas as pd
hdrs = (
Script(src='static/js/htmx.min.js'),
@robmurrer
robmurrer / docker-compose.yaml
Created August 12, 2025 01:53
chadgpt traefik + openwebui + litellm
version: '3.8'
services:
traefik:
image: traefik:v3.0
container_name: ${STACK_NAME:-chad}-traefik
restart: unless-stopped
command:
- --providers.docker=true
@robmurrer
robmurrer / cfbh.js
Last active February 13, 2024 02:22
campfire botbinder hack
// ==UserScript==
// @name campfire botbinder
// @namespace Violentmonkey Scripts
// @match https://chat.cryptide.com/rooms/*
// @grant none
// @version 1.0
// @author -
// @description 2/12/2024, 9:00:52 AM
// ==/UserScript==
using System;
using System.IO;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HeyRed.MarkdownSharp;
namespace Artifact
{
@robmurrer
robmurrer / rotozoom.py
Created June 9, 2011 16:28
RotoZoom for Django ImageKit
import math
from imagekit.lib import *
class RotoZoom(processors.ImageProcessor):
"""
Rotates image with the ability to scale change and apply offsets
angle - degrees counter-clockwise.
scale - defaults to no zoom (1) >1 zooms-in <1 zooms-out
left - left offset in pixels >0 moves right <0 moves left
top - top offset in pixels >0 moves up <0 moves down