Sleep tracker with a timer, in the terminal. Demo

Download, chmod +x stat-sleep.fish and put it in your PATH
| // www.youtube.com theme by god.DLL@iCloud.com (cc) 2021 | |
| // gist.github.com/godDLL/ab5e8ab3e9b4dc278ebe69341ad3fbde | |
| document.body.onload= function () { | |
| var i= function i () { | |
| var v= document.getElementById('search-form') | |
| if (null == v){ | |
| setTimeout( i, 49) | |
| return | |
| } |
Download Latest v0.4 | USAGE demo | HackerNews | Wiki/Docs | Bugs & Suggestions
A utility to automatically time-stamp and edit a work-log, or what have you.
It's like a task list, a "done list" that can be saved.
Has a handy calculator built-in.

Plays nice with terminal themes.
| #!/usr/bin/env fish | |
| set -l G1 (seq 232 243) | |
| set -l G2 231 15 (seq 255 244) | |
| set -l G3 (seq 244 255) 231 | |
| switch "$argv[1]" | |
| case '-h' '--help' | |
| echo 'USAGE: colors-256 [-v|--verbose]' >&2 | |
| exit |
| function bs --description 'Backspace over last line' | |
| set -l EDITED '\e[7m' | |
| if test -z "$argv" | |
| # default | |
| echo -ne -- '\e[A\e[K\e[A' # up, clear line, up | |
| else | |
| set -l N $argv[1] # -5 to clear five up, 5 to type over fifth line | |
| if test '+-' = +(string sub -l 1 -- "$N") | |
| # clear N lines up | |
| set -l C (seq 0 (string sub -s 2 -- "$N")) |
| (function(w){"use strict";var a=Object.assign=Object.assign||function assign(t){var i=0,s,key;while(s=arguments[i++])for(k in s)if(s.hasOwnProperty(k))t[k]=s[k];return t};w.ass=function(t,s){a(t.p,s);return t}})(window) |
Use Javascript where you would ordinarily use PHP or some templating language.
This has just been hacked together, so expect a bumpy ride.
Overview