Skip to content

Instantly share code, notes, and snippets.

@trogdoro
trogdoro / 0_reuse_code.js
Created December 18, 2015 01:50
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
> @xiki .Shell action for navigating files
$ ls
|:anything
!.#
! # This shell action lets you expand the output of
! # the ls command, like this:
! #
! # $ ls
! # : etc/
LONGEST_KEY = 1
SHOW_STROKE_STENO = 'KW-PL' # g-g (for go google)
def lookup(key):
#log("hi")
assert len(key) <= LONGEST_KEY
if SHOW_STROKE_STENO != key[0]:
raise KeyError

My rules for having both qwerty and steno enabled at the same time

  1. Steno layer is enabled by default
  2. Whenever a key is typed after a pause (probably at least 0.6s)
    • if first key typed is a single, sharp key press
      • treat it as a qwerty key
      • and disable steno layer while any subsequent keys are pressed
  3. Steno layer becomes enabled again after the next pause (probably of at least 0.6s)

Consequences of above rules

  • Normal typing of qwerty seems to "just work"
@trogdoro
trogdoro / hi.md
Last active September 22, 2019 12:04

All indented

$ git
  | usage: git [--version] [--help] [-C <path>] [-c <name>=<value>]
  |            [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
  |            <command> [<args>]
  |
  | These are common Git commands used in various situations:
  |
  | start a working area (see also: git help tutorial)

| clone Clone a repository into a new directory

@trogdoro
trogdoro / ticks.md
Last active October 12, 2019 17:42

Results 4 spaces over

@xiki #tag

bla
print("hi")
something else
hi
# Just some jist
I have no name.