This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function hvcoo(p, f, hv) { | |
if (hv == "h") | |
return p SUBSEP f | |
return f SUBSEP p | |
} | |
BEGIN { FS = ",| -> " } | |
$1 == $3 { hv = "v"; f = $1; a = $2; b = $4 } | |
$2 == $4 { hv = "h"; f = $2; a = $1; b = $3 } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash - | |
get_rect() { | |
local target | |
target=$(bspc query -N -n "$1.floating") || return | |
bspc subscribe node_geometry | while IFS=' ' read -r _ _ _ wid rect; do | |
if (( wid == target )); then | |
printf '%s\n' "$rect" | |
break | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -- | |
# \ | |
exec tclsh -encoding ascii "$0" "$@" | |
# usage: actually_playable_zork [zork_command] [save_file] | |
package require Expect | |
if {$::argc >= 1} { | |
set zork [lindex $::argv 0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
y |
NewerOlder