Skip to content

Instantly share code, notes, and snippets.

@mwgkgk
mwgkgk / lfe-gotchas-for-common-lispers.md
Last active October 6, 2020 04:12
LFE gotchas for Common Lispers, WIP
@mwgkgk
mwgkgk / repo-stats.csv
Created January 25, 2020 07:13 — forked from death/repo-stats.csv
Lisp repos dataset
name author loc ndeps ndepstr ndeprepos ndeprepostr cost costtr
qtools-ui Shinmera 4579 111 250 11 150 6.421 145.421
qtools Shinmera 5315 36 219 14 147 8.685 141.685
coleslaw kingcons 1629 18 199 13 136 11.371 134.371
websocket-driver fukamachi 853 25 185 13 130 12.147 129.147
quickutil tarballs-are-good 5813 20 189 13 134 7.187 128.187
chirp Shinmera 3035 15 183 12 129 8.965 125.965
dexador N/A 2325 24 180 21 127 18.675 124.675
lack fukamachi 2831 102 180 24 127 21.169 124.169
clack fukamachi 4455 116 180 37 127 32.545 122.545
@mwgkgk
mwgkgk / fdz-dir
Last active February 14, 2023 12:18
Fuzzy find with per-directory frecency (using fd, fzf, fre)
#!/bin/dash
set -o errexit
set -o nounset
fd_in=$PWD
fzf_height="--height 15"
if test $# -gt 0; then
for arg in "$@"; do
@mwgkgk
mwgkgk / Draw.idr
Last active August 16, 2017 07:16
Idris ST Tutorial: Composing State Machines. Draw interface
import Control.ST
import Control.ST.ImplicitCall
import Graphics.SDL
data Col = MkCol Int Int Int Int
black : Col
black = MkCol 0 0 0 255
@mwgkgk
mwgkgk / iex_connect.mkd
Last active April 19, 2023 03:06
Connect two IEx nodes

tl;dr:

$ iex --sname server
$ iex --sname client
iex(client@localhost)> Node.connect :"server@localhost"

Start a named node:

$ iex --name any_name@any_domain
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Wikipedia Stream</title>
<style>
html, body, iframe {
height: 100%;
width: 100%;
}