Skip to content

Instantly share code, notes, and snippets.

View kayxean's full-sized avatar

kayxean

  • East Java, Indonesia
  • 05:54 (UTC +07:00)
  • X @kayxean
View GitHub Profile
@kayxean
kayxean / config.rasi
Created October 17, 2025 11:48
Zen Browser Search Bar - Rofi Theme
configuration {
modes: [ combi ];
combi-modes: [ window, drun, run ];
disable-history: true;
sorting-method: "normal";
}
@theme "~/.config/rofi/themes/zen-search-bar.rasi"
@kayxean
kayxean / config.jsonc
Created October 17, 2025 11:44
Android Status Bar - Waybar Theme
{
"layer": "top",
"position": "top",
"passthrough": false,
"exclusive": true,
"spacing": 0,
"reload_style_on_change": true,
"modules-left": ["clock", "hyprland/workspaces"],
"modules-right": ["group/stats", "group/hardware"],
"clock": {
@kayxean
kayxean / unary-function.ts
Created March 28, 2025 12:23
Turn Multiple Functions Into Single Function
// direct functions
const compose = <T, R>(...fns: Array<(arg: T) => R>): (arg: T) => R => {
return (arg: any) => fns.reduceRight((acc, fn) => fn(acc), arg) as R;
};
// pre-build functions
const composer = <T, R>(fns: Array<(arg: T) => R>): (arg: T) => R => {
return (arg: any) => fns.reduceRight((acc, fn) => fn(acc), arg) as R;
};