Brunobkr/llama.cpp_AlgMor24_github
ΩFFFΣLLIa • llama.cpp • AlgMor24 ██████╗ ███████╗███████╗███████╗██╗ ██╗ ██╗ █████╗ ██╔═══██╗██╔════╝██╔════╝██╔════╝██║ ██║ ██║██╔══██╗ ██║ ██║█████╗ █████╗ █████╗ ██║ ██║ ██║███████║ ██║ ██║██╔══╝ ██╔══╝ ██╔══╝ ██║ ██║ ██║██╔══██║ ╚██████╔╝██║ ██║ ███████╗███████╗███████╗██║██║ ██║ ╚═════╝ ╚═╝ ╚═╝ ╚══════╝╚══════╝╚══════╝╚═╝╚═╝ ╚═╝ High-Performance LLM / VLM Inference & Autonomous Agentic Ecosystem… See the full description on the dataset page: https://huggingface.co/datasets/Brunobkr/llama.cpp_AlgMor24_github.
03.1k
1// Original Source: https://reemus.dev/article/disable-css-transition-color-scheme-change#heading-ultimate-solution-for-changing-color-scheme-without-transitions2let timeoutAction;3let timeoutEnable;4/**5 * Whether this is the first time the function has been6 * called, which will be true for the initial load, where7 * we shouldn't need to disable any transitions, as there8 * is nothing to transition from.9 */10let hasLoaded = false;11let styleElement = null;12// Create reusable style element13function getStyleElement() {14 if (styleElement)15 return styleElement;16 styleElement = document.createElement("style");17 styleElement.appendChild(document.createTextNode(`* {18 -webkit-transition: none !important;19 -moz-transition: none !important;20 -o-transition: none !important;21 -ms-transition: none !important;22 transition: none !important;23 }`));24 return styleElement;25}26// Perform a task without any css transitions27// eslint-disable-next-line @typescript-eslint/no-explicit-any28export function withoutTransition(action, synchronous = false) {29 if (typeof document === "undefined")30 return;31 // Skip transition disabling on initial load32 if (!hasLoaded) {33 hasLoaded = true;34 action();35 return;36 }37 // In test environments, run synchronously to avoid timing issues38 const isTest = (typeof process !== "undefined" && process.env?.NODE_ENV === "test") ||39 (typeof window !== "undefined" &&40 window.__vitest_worker__);41 if (isTest) {42 action();43 return;44 }45 clearTimeout(timeoutAction);46 clearTimeout(timeoutEnable);47 const style = getStyleElement();48 const disable = () => document.head.appendChild(style);49 const enable = () => {50 if (style.parentNode) {51 document.head.removeChild(style);52 }53 };54 function executeAction() {55 action();56 // defer enable to ensure action completes57 window.requestAnimationFrame(enable);58 }59 // Use requestAnimationFrame for better performance60 if (typeof window.requestAnimationFrame !== "undefined") {61 disable();62 if (synchronous) {63 executeAction();64 }65 else {66 // defer action to next frame to avoid blocking67 window.requestAnimationFrame(() => {68 executeAction();69 });70 }71 return;72 }73 // Fallback for older browsers74 disable();75 timeoutAction = window.setTimeout(() => {76 action();77 timeoutEnable = window.setTimeout(enable, 16);78 }, 16);79}80 