Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Please don't try to contact me over GitHub.

tef tef

💭
Please don't try to contact me over GitHub.
View GitHub Profile
View blockquotes.md

Blockquotes are awful in markdown, because they're semi optional in continuation lines.

There are three options i've considered:


Option A: Blockquote at start of para, and on every continuation line.

> a
View test.md

Here is an indented block:

One Space, One Tab
One Tab
 One Tab, One Space.
 Five Spaces

Now prefixed with '> ', Here the's the indented block:

'> ', One Space, One Tab

View foo.md

tab completion

a vex command can have multiple parts: vex name:subname:subsubname --args .., and the subnames are grouped, and have aliases.

grouping means that vex help prints them out in groups.

tab completing with no command shows all root commands, but not aliases:

sycamore:demo tef$ vex 
View gist:83969285065d1dffd1893e6b07419a8e
sycamore:demo tef$ vex help
Name: vex -- a database for files
Usage: vex [help] <init|undo|redo|status|log|diff|...> [--help]
Description: vex is a command line program for saving changes to a project, switching
between different versions, and sharing those changes.
vex supports bash completion: run `complete -o nospace -C vex vex`
View vex
$ vex
vex -- a database for files
usage: vex [help] <init|undo|redo|status|log|diff|...> [--help]
description:
vex is a command line program for saving changes to a project, switching between different versions, and sharing those changes.
vex supports bash completion: run `complete -o nospace -C vex vex`
View README.md

undo/redo persistent example

$ ./undo.py do 1
do: 1

$ ./undo.py do 2
do: 2

$ ./undo.py do 3
View tweets.py
import csv
import collections
import datetime
dates = {}
with open('tweets.csv') as fh:
fh.readline()
reader = csv.reader(fh)
for row in reader:
View catbus.md

The Client

$ export CATBUS_URL='http://127.1:8888/test'
$ alias catbus='pipenv run python3 -m catbus.client'

$ catbus
DEBUG Fetching http://127.1:8888/test

    url: http://127.1:8888/test/
View twmrc
## tef's theme
#
# How to use my key config.
#
# On Desktop Windows
# Meta+Mouse1 = Move or Raise
# Meta+Mouse2 = Hide
# Meta+Mouse3 = Resize or Lower
#
# On Icon Bar