This file contains 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
/** | |
* interface representing a cron schedule. | |
*/ | |
export interface CronSchedule { | |
/** minute */ | |
minute: number[]; | |
/** hour */ | |
hour: number[]; | |
/** day of month */ | |
dayOfMonth: number[]; |
This file contains 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
#!/usr/bin/env bash | |
# display name to command mapping | |
declare -A browsers=( | |
["Firefox Developer Edition"]="firefox-developer-edition" | |
["Chrome Canary"]="google-chrome-canary" | |
["Brave"]="brave" | |
["Brave Nightly"]="brave-nightly" | |
) |
This file contains 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
! Hide top bar | |
discord.com##.visual-refresh:style(--custom-app-top-bar-height: 0px !important) | |
discord.com##.visual-refresh :is(.chat_f75fb0[data-has-border=true], .container__133bf, .container_a592e1):style(border-top: 0 !important) | |
discord.com##.visual-refresh :is(.sidebarListRounded_c48ade, .container__01ae2, .callContainer_cb9592):style(border-top: 0 !important; border-radius: 0 !important) | |
discord.com##.visual-refresh .scroller_ef3116:style(padding-block: var(--space-md) !important) | |
! Move the inbox button | |
discord.com##.bar_c38106:style(z-index: 1000 !important; overflow: hidden !important) | |
discord.com##.visual-refresh :is(.toolbar__9293f, .searchBar__1ac1c):style(margin-right: calc(var(--space-32) + var(--space-xs)) !important) | |
discord.com##.visual-refresh .recentsIcon_c99c29:style(position: fixed !important; top: var(--space-8) !important; right: var(--space-xs) !important) |
This file contains 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
bsky.app##+js(user-bsky-annoyances.js) | |
main.bsky.dev##+js(user-bsky-annoyances.js) | |
||go.bsky.app/redirect$urlskip=?u |
This file contains 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
bsky.app##+js(user-bsky-video-tracking-block.js) | |
main.bsky.dev##+js(user-bsky-video-tracking-block.js) |
This file contains 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
bsky.app##+js(user-bsky-regional-labeler-block.js) | |
main.bsky.dev##+js(user-bsky-regional-labeler-block.js) |
This file contains 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
bsky.app##+js(user-bsky-suggestions-block.js) | |
main.bsky.dev##+js(user-bsky-suggestions-block.js) |
This file contains 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
export const followAbortSignal = (signals: (AbortSignal | undefined)[]) => { | |
const controller = new AbortController(); | |
const own = controller.signal; | |
for (let idx = 0, len = signals.length; idx < len; idx++) { | |
const signal = signals[idx]; | |
if (!signal) { | |
continue; | |
} |
This file contains 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
import { batch, onCleanup } from 'solid-js'; | |
export type ResizeCallback = (entry: ResizeObserverEntry) => void; | |
interface ObserverStorage { | |
l: ResizeObserverEntry | undefined; | |
c: ResizeCallback | ResizeCallback[]; | |
} | |
const sym = Symbol('resize-observers'); |
This file contains 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
type Procedure = (...args: any[]) => any; | |
type Methods<T> = keyof { | |
[K in keyof T as T[K] extends Procedure ? K : never]: T[K]; | |
}; | |
type Properties<T> = { | |
[K in keyof T]: T[K] extends Procedure ? never : K; | |
}[keyof T] & | |
(string | symbol); | |
type Classes<T> = { |
NewerOlder