(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| #!/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") |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| // 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 |