My efforts to port http://www.youtube.com/watch?v=f6kdp27TYZs to Clojure.
func boring(msg string) {
for i := 0; ; i++ {
fmt.Println(msg, i)
time.Sleep(time.Second)
}My efforts to port http://www.youtube.com/watch?v=f6kdp27TYZs to Clojure.
func boring(msg string) {
for i := 0; ; i++ {
fmt.Println(msg, i)
time.Sleep(time.Second)
}| #!/usr/bin/env bash | |
| if ! uname | grep -iq darwin; then | |
| echo "This script is designed for Mac OSX use" >&2 | |
| exit 1 | |
| fi | |
| if ! [ -e "patch.js" ]; then | |
| echo "Place your javascript to inject in patch.js" >&2 | |
| exit 1 |
| #!/usr/local/bin/python3 | |
| # Created : 2020-07-16 13:06:10 | |
| import sys | |
| import os | |
| from graphviz import Digraph | |
| fmt = os.getenv('GRAPH_FMT', 'dot') | |
| dot = Digraph(comment='alembic', format=fmt) |
NOTE: Time flies, and it's been almost five years(!) since I wrote this. Beaware the text below is now outdated (e.g., now Asahi Linux has graphics acceleration even better than this). The commands listed are up-to-date.
I bought M1 MacBook Air. It is the fastest computer I have, and I have been a GNOME/GNU/Linux user for long time. It is obvious conclusion that I need practical Linux desktop environment on Apple Silicon.
| $ # plz forgive this dumb method of visualization. | |
| $ cp /System/Library/Frameworks/AppKit.framework/Resources/StandardKeyBinding.dict . | |
| $ plutil -convert xml1 StandardKeyBinding.dict | |
| $ plutil -p StandardKeyBinding.dict | unicode-vis | cat -v | tr '\t' '+' | |
| { | |
| "^C" => "insertNewline:" | |
| "^H" => "deleteBackward:" | |
| "^Y" => "insertBacktab:" //shift+tab | |
| "^[" => "cancelOperation:" | |
| "^?" => "deleteBackward:" |
| ;; nano-emacs.el --- NANO Emacs (minimal version) -*- lexical-binding: t -*- | |
| ;; Copyright (c) 2025 Nicolas P. Rougier | |
| ;; Released under the GNU General Public License 3.0 | |
| ;; Author: Nicolas P. Rougier <nicolas.rougier@inria.fr> | |
| ;; URL: https://github.com/rougier/nano-emacs | |
| ;; This is NANO Emacs in 256 lines, without any dependency | |
| ;; Usage (command line): emacs -Q -l nano.el -[light|dark] |
Terminals should generate the 256-color palette from the user's base16 theme.
If you've spent much time in the terminal, you've probably set a custom base16 theme. They work well. You define a handful of colors in one place and all your programs use them.
The drawback is that 16 colors is limiting. Complex and color-heavy programs struggle with such a small palette.