Skip to content

Instantly share code, notes, and snippets.

# zoxide + fzf
zoxide-fzf() {
zle push-input
_ZO_FZF_OPTS="--exact --no-sort --bind=ctrl-z:ignore,btab:up,tab:down --cycle --keep-right --height=45% --info=inline --layout=reverse --tabstop=1 --exit-0 --preview-window=down --preview 'eza -G --color=always --group-directories-first -s modified {2..}'" __zoxide_zi
zle reset-prompt
}
zle -N zoxide-fzf
bindkey -M emacs '^j' zoxide-fzf
bindkey -M vicmd '^j' zoxide-fzf
bindkey -M viins '^j' zoxide-fzf
@Hylian
Hylian / dither.py
Last active June 13, 2025 03:40
Inky Frame Dither Test
from picographics import PicoGraphics, DISPLAY_INKY_FRAME_7 as DISPLAY
graphics = PicoGraphics(DISPLAY)
WIDTH, HEIGHT = graphics.get_bounds()
BLACK = 0
WHITE = 1
GREEN = 2
BLUE = 3
RED = 4
@Hylian
Hylian / gist:71d6e1c30b70c1a6d23671729d0b2865
Created December 29, 2023 23:37
Sensor Watch CDC Write Stress Test Results
// Direct TUD Write
// CFG_TUD_CDC_TX_BUFSIZE = 512
// 0 ms delay
// Result: Fails at 31
swsh> stress 100
1: 1
2: 12
3: 123
4: 1234
5: 12345
@Hylian
Hylian / acsl_rummy.py
Last active January 13, 2020 15:12
my greatest creation
from itertools import *
from operator import *
convertValue, convertHouse = {'A': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, 'T': 10, 'J': 11, 'Q': 12, 'K': 13}, {'D': 0, 'C': 1, 'H': 2, 'S': 3}
def addcard(n, h):
if len(h) <= 1 and filter(lambda x: x[0] != 0, h) == 0: h.append((0, n))
else:
for c in h:
if c[0] == 2 and c[1][0][1] == n[1] and (convertValue[c[1][0][0]] == convertValue[n[0]]+1 or convertValue[c[1][2][0]] == convertValue[n[0]]-1):
h.append((3, c[1] + [n]))
h.remove(c)
@Hylian
Hylian / autoexec.cfg
Created March 7, 2016 02:40
my autoexec
closeonbuy "0" // Prevent buy menu from closing
//RADAR
cl_radar_icon_scale_min "1"
cl_hud_radar_scale "1" // Changes the size/scale of the radar
cl_radar_always_centered "0"
cl_radar_rotate "1"
cl_radar_scale "0.3"
//NETWORK

Keybase proof

I hereby claim:

  • I am Hylian on github.
  • I am cascode (https://keybase.io/cascode) on keybase.
  • I have a public key whose fingerprint is F14B 1EB6 9756 F297 3A56 C110 A1FD 931F F069 17F0

To claim this, I am signing this object: