Skip to content

Instantly share code, notes, and snippets.

View mhujer's full-sized avatar
🏠
Working remotely

Martin Hujer mhujer

🏠
Working remotely
View GitHub Profile
@benabraham
benabraham / simple-statusline.py
Last active January 26, 2026 21:05
Simple Claude Code status line with context usage progress bar (dark/light themes, truecolor/256 fallback)
#!/usr/bin/env python3
"""
This script has moved to GitHub:
https://github.com/benabraham/claude-code-status-line
Please download the latest version from the repo:
curl -o ~/.claude/claude-code-status-line.py https://raw.githubusercontent.com/benabraham/claude-code-status-line/main/claude-code-status-line.py
"""
print("\033[1m\033[38;5;220mThis statusline script has moved to GitHub:\033[0m")
print("\033[1m https://github.com/benabraham/claude-code-status-line\033[0m")
@staltz
staltz / introrx.md
Last active January 27, 2026 12:57
The introduction to Reactive Programming you've been missing
@mathiasbynens
mathiasbynens / jquery.insertAtCaret.js
Created March 9, 2010 11:13
jQuery insertAtCaret plugin
// I found this somewhere on the intertubes, and optimized it
$.fn.insertAtCaret = function(myValue) {
return this.each(function() {
var me = this;
if (document.selection) { // IE
me.focus();
sel = document.selection.createRange();
sel.text = myValue;
me.focus();
} else if (me.selectionStart || me.selectionStart == '0') { // Real browsers