Skip to content

Instantly share code, notes, and snippets.

View glucasroe's full-sized avatar

Lucas Roe glucasroe

View GitHub Profile
@glucasroe
glucasroe / mjpeg_snap.py
Last active February 22, 2026 14:51
Grab a single JPEG snapshot from an MJPEG stream (e.g. Supernote screencast)
#!/usr/bin/env python3
"""Grab a single JPEG frame from an MJPEG stream."""
import argparse
import re
import sys
import urllib.request
from pathlib import Path
@glucasroe
glucasroe / field-nudger.js
Created March 29, 2024 01:05
Arc Boost — Text Field Nudging
// Attach the event listener to a common ancestor (e.g., the document)
document.addEventListener('keydown', function (event) {
const textField = event.target;
if (textField.matches('input[type="text"], textarea')) {
// Check if Alt key is held
if (event.altKey) {
// Check if Shift key is also held
const step = event.shiftKey ? 10 : 1;
// Get the current value from the input field
@glucasroe
glucasroe / transitioner.scss
Last active June 8, 2018 03:42
Transition Property Mixin
// Pass in list of properties to transition
//
// .foo{
// @include transitioner(background-color,color);
// }
@mixin transitioner($prop...){
$animations: "";
$params: length($prop);
$loopcount: 0;