- 100 Push-ups
- 100 Sit-ups
- 100 Squats
- 10 Km run
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
| import { createReadStream, createWriteStream } from 'node:fs'; | |
| import zlib from 'node:zlib'; | |
| import { pipeline } from 'node:stream/promises'; | |
| async function backupFile(filePath) { | |
| const backupPath = `${filePath}.zst`; | |
| const source = createReadStream(filePath); | |
| const compressStream = zlib.createZstdCompress({ params: { [zlib.constants.ZSTD_c_compressionLevel]: 3 } }); | |
| const destination = createWriteStream(backupPath); | |
| await pipeline(source, compressStream, destination); |
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
| import os | |
| import stat | |
| import github.Auth | |
| from github import Github | |
| import json | |
| import subprocess | |
| import time | |
| from pathlib import Path | |
| import shutil |
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
| package main | |
| import ( | |
| "fmt" | |
| tea "github.com/charmbracelet/bubbletea" | |
| "os" | |
| "path/filepath" | |
| ) | |
| type model struct { |
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
| // ==WindhawkMod== | |
| // @id taskbar-icon-changer | |
| // @name Change taskbar icon | |
| // @description Assigns custom icons to app instances based on their command line arguments or window title. | |
| // @version 0.5 | |
| // @author claude | |
| // @include * | |
| // @compilerOptions -lshlwapi -lcomctl32 | |
| // ==/WindhawkMod== |
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
| export function prevent<T extends unknown[], R>(listener: (event: KeyboardEvent, ...rest: T) => R) { | |
| return (event: KeyboardEvent, ...rest: T) => { | |
| event.preventDefault(); | |
| event.stopPropagation(); | |
| return listener(event, ...rest); | |
| }; | |
| } |
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
| import { createKeybindingsHandler } from "tinykeys"; | |
| // code from https://github.com/jaywcjlove/hotkeys-js/blob/master/src/index.js | |
| function isInput(event: KeyboardEvent) { | |
| const target = event.target as HTMLInputElement; | |
| const { tagName } = target; | |
| const isInput = | |
| tagName === "INPUT" && | |
| !["checkbox", "radio", "range", "button", "file", "reset", "submit", "color"].includes( | |
| target.type, |
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
| en := DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1) | |
| ru := DllCall("LoadKeyboardLayout", "Str", "00000419", "Int", 1) | |
| ~<+RControl::SetLayout(ru) | |
| ~>^LShift::SetLayout(ru) | |
| ~RControl::SetLayout(en) | |
| #Space::ChangeLayout() | |
| !Space::ChangeLayout() |
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
| ol { | |
| padding-inline-start: 0; | |
| list-style: none; | |
| counter-reset: my-counter; | |
| display: grid; | |
| grid-template-columns: auto 1fr; | |
| row-gap: 0.5rem; | |
| } | |
| ol li { | |
| display: contents; |
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 debounce(fn, delay) { | |
| let timer; | |
| return function (...args) { | |
| clearTimeout(timer); | |
| timer = setTimeout(() => fn.apply(this, args), delay); | |
| }; | |
| } |
NewerOlder