I hereby claim:
- I am kva1966 on github.
- I am kva1966 (https://keybase.io/kva1966) on keybase.
- I have a public key ASBc4yknwYD-5i9RQSSZQLLFs-9ZW4-CYMv6ULu6FlqJ9Qo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# cpanm App::watchdo | |
# https://metacpan.org/pod/distribution/App-watchdo/bin/watch-do | |
# watch-do -w <file|dir> -- <cmd> | |
# E.g. https://metacpan.org/pod/Pod::Perldoc::ToMarkdown | |
watch-do -w Foo.pm -- perldoc -o Markdown Foo.pm |
#!/usr/bin/env python3 | |
## Simple, regex-based SQL formatter. The core idea is to not muck around | |
## with any indenting, but to simply convert keywords to uppercase. What an | |
## utterly annoying convention today. | |
## Reads stdin, writes to stdout, allowing for use in IDE processes or similar. | |
import sys | |
import re |
--- | |
# Fonts | |
# General Fonts -- URW Palladio L, URW Chancery L, Reminga Pro | |
# To find proper names, use fc-list (Font Config) | |
# E.g. Reminga has the following: | |
# $ fc-list | grep -i reminga | |
# (look at fc-cache if fc-list does not return anything) | |
# /home/xxx/.fonts/FF Reminga Pro/FontFont - RemingaPro.otf: Reminga Pro:style=Regular | |
# /home/xxx/.fonts/FF Reminga Pro/FontFont - RemingaPro-MediumIta.otf: Reminga Pro,RemingaPro\-MediumIta:style=Medium Italic,Regular |
#!/bin/bash | |
docker system prune --volumes |
# Run Control file for https://metacpan.org/pod/Devel::REPL | |
# Place in ~/.re.pl/repl.rc | |
# Picked up by the installed re.pl script. | |
# Install missing packages like: | |
# cpanm Devel::REPL::Plugin::<PluginName> | |
# e.g. cpanm Devel::REPL::Plugin::DataPrinter | |
print("Loading RC file[" . $ENV{HOME} . "/.re.pl/repl.rc]\n"); |
# For 'overlay sock' capability. | |
moduleload back_sock | |
# Running in overlay mode rather than as a database. | |
overlay sock | |
extensions connid | |
# Path to Unix Domain Socket created by a listening client, to which slapd | |
# will connect. |
// Quick, simple enums -- typechecked! | |
type TraversalOrder = "inorder" | "preorder" | "postorder"; | |
type NodePosition = "root" | "left" | "right"; | |
// Of course TypeScript has proper enums, but this might be a good way of | |
// doing interop without writing wrapper types. | |
// Type Aliases for complex function types | |
type VisitorFn<T, N extends Node<T>> = (node: N, depth: number, position: NodePosition) => void; | |
type TraversalFn<T> = (node: BstNode<T>, depth: number, position: NodePosition) => void; |
PWD ~/projects/checkouts/my-projects/code-snippets/datastruc-vis | |
Directory Structure: 'node_modules' excluded, 'dist' is the output/build folder | |
├── dist | |
│ ├── bundles | |
│ │ ├── bundle.js | |
│ │ └── bundle.js.map | |
│ └── index.html | |
├── package.json |