Skip to content

Instantly share code, notes, and snippets.

View sapjax's full-sized avatar
hibernating

sapjax sapjax

hibernating
  • 15:02 (UTC +08:00)
View GitHub Profile
@sapjax
sapjax / .phoenix.js
Created July 16, 2026 01:23
phoenix config
const WINDOW_MODIFIERS = ['alt'];
const FRAME_TOLERANCE = 12;
const TRAVERSAL_EXCLUDED_APP_NAMES = ['otty'];
let windowTraversal;
function focusedNormalWindow() {
const window = Window.focused();
if (!window || !window.isNormal()) {
@sapjax
sapjax / signal.ts
Created January 26, 2024 06:22
signal
const context = [];
function subscribe(running, subscriptions) {
subscriptions.add(running);
running.dependencies.add(subscriptions);
}
export function createSignal(value) {
const subscriptions = new Set();
@sapjax
sapjax / cvimrc.cvimrc
Last active January 11, 2016 10:23
cvimrc
map h previousTab
map l nextTab
map J scrollPageDown
map K scrollPageUp
map . openQuickMark
map d closeTab
map u lastClosedTab
unmap ;
unmap '