Skip to content

Instantly share code, notes, and snippets.

View VapidLinus's full-sized avatar

Linus VapidLinus

View GitHub Profile
@ripter
ripter / gist:4270799
Created December 12, 2012 19:29 — forked from hashmal/gist:874792
Added check for boolean.
-- Print contents of `tbl`, with indentation.
-- `indent` sets the initial level of indentation.
function tprint (tbl, indent)
if not indent then indent = 0 end
for k, v in pairs(tbl) do
formatting = string.rep(" ", indent) .. k .. ": "
if type(v) == "table" then
print(formatting)
tprint(v, indent+1)
elseif type(v) == 'boolean' then
@andrew-raphael-lukasik
andrew-raphael-lukasik / RequireReference.cs
Last active July 9, 2018 16:07
Mark your fields with [RequireReference] attribute to make them glow red if null
//SOURCE: https://gist.github.com/andrew-raphael-lukasik/60e6dc072dc170ab535a7aff961c3ba9
using UnityEngine;
#if UNITY_EDITOR
using UnityEditor;
#endif
//TODO: Add build-time warnings
@yuderekyu
yuderekyu / spacemacs-cheshe.md
Last active September 24, 2025 13:32 — forked from robphoenix/spacemacs-cheshe.md
Spacemacs Cheat Sheet

Useful Spacemacs commands

  • SPC q q - quit
  • SPC w / - split window vertically
  • SPC w - - split window horizontally
  • SPC 1 - switch to window 1
  • SPC 2 - switch to window 2
  • SPC w c - delete current window
  • SPC TAB - switch to previous buffer
  • SPC b b - switch buffers
@Srfigie
Srfigie / .gitattributes
Created February 2, 2020 14:30 — forked from nemotoo/.gitattributes
.gitattributes for Unity3D with git-lfs
## Unity ##
*.cs diff=csharp text
*.cginc text
*.shader text
*.mat merge=unityyamlmerge eol=lf
*.anim merge=unityyamlmerge eol=lf
*.unity merge=unityyamlmerge eol=lf
*.prefab merge=unityyamlmerge eol=lf
@jamesjlyons
jamesjlyons / cozy-kagi-theme.css
Last active August 8, 2025 16:06
A cozy theme for Kagi Search. Be sure to set the default Kagi themes to "Calm Blue" and "Moon Dark" for the themes to apply properly.
:root {
--sand1: hsl(50, 20%, 99%);
--sand2: hsl(60, 7.7%, 97.5%);
--sand3: hsl(59, 6.5%, 95.1%);
--sand4: hsl(58, 6.1%, 92.9%);
--sand5: hsl(57, 6%, 90.7%);
--sand6: hsl(56, 5.9%, 88.4%);
--sand7: hsl(55, 5.9%, 85.2%);
--sand8: hsl(51, 6%, 77.1%);
--sand9: hsl(50, 2%, 55.7%);
@VapidLinus
VapidLinus / cozy-kagi-theme.css
Last active January 20, 2024 14:14 — forked from jamesjlyons/cozy-kagi-theme.css
A fix for jamesjlyons's cozy theme for Kagi Search. This version respects Kagi's dark mode setting. Be sure to set the default Kagi themes to "Calm Blue" and "Moon Dark" for the themes to apply properly.
: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);
@VapidLinus
VapidLinus / kaaut.js
Last active August 4, 2025 11:54
A collapsible, auto-refreshing, theme-integrated usage widget for Kagi Assistant.
// ==UserScript==
// @name Kagi Assistant AI Usage Tracker
// @namespace http://tampermonkey.net/
// @version 17.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
// ==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