Skip to content

Instantly share code, notes, and snippets.

@sogaiu
sogaiu / rich-already-answered-that.md
Created April 18, 2021 23:28 — forked from reborg/rich-already-answered-that.md
A curated collection of answers that Rich gave throughout the history of Clojure

Rich Already Answered That!

A list of commonly asked questions, design decisions, reasons why Clojure is the way it is as they were answered directly by Rich (even when from many years ago, those answers are pretty much valid today!). Feel free to point friends and colleagues here next time they ask (again). Answers are pasted verbatim (I've made small adjustments for readibility, but never changed a sentence) from mailing lists, articles, chats.

How to use:

  • The link in the table of content jumps at the copy of the answer on this page.
  • The link on the answer itself points back at the original post.

Table of Content

@sogaiu
sogaiu / TrueColour.md
Created February 27, 2021 11:52 — forked from XVilka/TrueColour.md
True Colour (16 million colours) support in various terminal applications and terminals

Terminal Colors

There exists common confusion about terminal colors. This is what we have right now:

  • Plain ASCII
  • ANSI escape codes: 16 color codes with bold/italic and background
  • 256 color palette: 216 colors + 16 ANSI + 24 gray (colors are 24-bit)
  • 24-bit true color: "888" colors (aka 16 milion)
@sogaiu
sogaiu / save.clj
Last active February 11, 2019 23:54 — forked from saikyun/save.clj
Proto repl save functionality for ClojureCLR + initial docs attempt
(ns miracle.tools.save
(:require [clojure.walk :refer [postwalk]]))
;; usage
;;
;; (save) or (save :whatever) somewhere in a function to save all the local
;; bindings at that point in time.
;;
;; (save-func ...) where ... is the body of your functions (e.g. (defn hej [a]
;; (save-func (let [b 5] (+ a b)))))
@sogaiu
sogaiu / 0 - data.md
Created January 16, 2019 23:30 — forked from sundarj/0 - data.md
data: towards enlightenment

data

towards enlightenment

‘It is a capital mistake to theorize before one has data. Insensibly one begins to twist facts to suit theories, instead of theories to suit facts.’