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
// ==UserScript== | |
// @name Kagi Assistant Collapsible Models | |
// @namespace http://tampermonkey.net/ | |
// @version 1.6 | |
// @description Makes model sections in Kagi Assistant collapsible and saves their state. | |
// @author Gemini 2.5 Pro | |
// @match https://kagi.com/assistant* | |
// @grant GM_addStyle | |
// @grant GM_getValue | |
// @grant GM_setValue |
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
// ==UserScript== | |
// @name Kagi Assistant AI Usage Tracker | |
// @namespace http://tampermonkey.net/ | |
// @version 14.0 | |
// @description A collapsible, auto-refreshing, theme-integrated usage widget for Kagi Assistant. | |
// @author Gemini 2.5 Pro & VapidLinus | |
// @match https://kagi.com/assistant* | |
// @connect kagi.com | |
// @grant GM.xmlHttpRequest | |
// @grant GM_setValue |
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
private static async Task TransmitAudioData(byte[] audioData, VoiceTransmitSink sink) | |
{ | |
var startInfo = new ProcessStartInfo("ffmpeg") | |
{ | |
RedirectStandardInput = true, | |
RedirectStandardOutput = true, | |
RedirectStandardError = true, | |
UseShellExecute = false, | |
Arguments = string.Join(" ", [ | |
"-loglevel panic", |
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
:root { | |
--background-color: var(--sand2); | |
--color-primary: var(--sand12); | |
--search-result-title: var(--color-primary); | |
--search-result-title-hover: var(--color-primary); | |
--result-item-title-border_hover: var(--color-primary); | |
--domain-rank-icon-color-normal: var(--sand7); | |
--search-result-date-bg: var(--sand3); | |
--search-result-content-text: var(--sand11); | |
--inline-domain-tag-bg: var(--sand3); |
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
using UnityEngine.UI; | |
[RequireComponent(typeof(RectTransform), typeof(LayoutElement))] | |
[ExecuteInEditMode] | |
public class LayoutElementFitParent : MonoBehaviour | |
{ | |
[SerializeField] private float aspectRatio = 1; | |
[SerializeField] private bool updateMin = false; | |
[SerializeField] private bool updatePreferred = false; |
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
using System; | |
using UnityEngine; | |
public abstract class BaseBehaviour : MonoBehaviour | |
{ | |
public T RequireComponent<T>(Action<T> a) where T : Component | |
{ | |
T component = gameObject.GetComponent<T>(); | |
if (component == null) | |
{ |
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 net.uniqraft.api; | |
public final class StringTools { | |
public static String replaceAll(String text, String replace, String replacement) { | |
if (replace == replacement) | |
return text; | |
String currentText = null; | |
String newText = text; | |
do { |