Skip to content

Instantly share code, notes, and snippets.

View clementi's full-sized avatar

Jeff Pratt clementi

View GitHub Profile
@clementi
clementi / keyoxide-proof.txt
Created October 27, 2026 21:37
Keyoxide proof
aspe:keyoxide.org:22Q7GEDNDHY7YF6ZXLGB4YOF74
@clementi
clementi / shells.md
Last active October 17, 2026 03:04
Interesting and Popular Shells
@clementi
clementi / how-to-get-books.yaml
Last active November 3, 2026 20:32
How to Get Books
- name: Amazon
url: https://amazon.com
tags:
- ebooks
- print
- hardware-reader
- name: Barnes & Noble
url: https://bn.com
tags:
- ebooks
@clementi
clementi / settings.json
Created September 29, 2026 20:52
Gesturefy/Cesturefy Settings
{
"Gestures": [
{
"pattern": [
[
-37,
-25
],
[
-88,
@clementi
clementi / egfr.rkt
Last active September 28, 2026 23:37
Calculate eGFR
#lang racket
(define (egfr scr sex age)
(letrec [(kappa (if (eq? sex 'male)
0.9
0.7))
(alpha (if (eq? sex 'male)
-0.302
-0.241))
(sex-param (if (eq? sex 'male)
#!/usr/bin/env runhaskell
import System.Process ( readProcess )
import System.Environment ( getArgs )
import Control.Monad (forM_)
main :: IO ()
main = do
branch <- head <$> getArgs
let repos = [ "repo1"
@clementi
clementi / lspath.factor
Created February 17, 2026 01:05
List the contents of the PATH environment variable
USING: io kernel sequences system splitting environment ;
IN: lspath
: path-list-separator ( -- str )
os windows? ";" ":" ? ;
: lspath ( -- ) "PATH" os-env path-list-separator split [ print ] each ;
MAIN: lspath
// Show what Starship thinks the current shell is.
// To be used in starship.toml to show the current shell in the prompt.
#include <stdio.h>
#include <stdlib.h>
int main() {
const char* shell = getenv("STARSHIP_SHELL");
printf("%s\n", shell ? shell : "unk");