Skip to content

Instantly share code, notes, and snippets.

@jsn
jsn / values.txt
Last active February 10, 2023 23:57
(from: "The Power of Full Engagement", by Jim Loehr and Tony Schwartz, Part Two, Chapter Eight)
DEEPEST VALUES CHECKLIST
Authenticity
Happiness
Balance
Harmony
Commitment
Health
(ns ab)
(defn- bump [f m]
(into {} (map (juxt (comp f key) val) m)))
(defn- turn [[a b]]
(mapv #(merge-with + b (bump % a)) [inc dec]))
(->> {0 1N}
(repeat 2)
@jsn
jsn / main.rs
Created November 9, 2024 07:38
use std::borrow::Cow;
use std::collections::HashMap;
use std::hash::Hash;
use std::sync::RwLock;
pub trait IndexKey<Item>: Sized {
fn keys(i: &Item) -> Vec<Self>;
}
pub struct Index<Item, K> {
@jsn
jsn / tags.txt
Created February 14, 2025 18:15
jason@jsn rbot $ git tag -l --format='%(objectname:short) %(describe:tags)'
46dd499 last-svn-commit
ac5ab47 oldmaster
46be439 rbot-0.9.10
a60096e rbot-0.9.11
9ceb025 rbot-0.9.11-rc1
81fa1c6 rbot-0.9.11-rc2
084a857 rbot-0.9.11-rc3
5cee46e rbot-0.9.12
1d4228c rbot-0.9.13