Skip to content

Instantly share code, notes, and snippets.

View tinylucid's full-sized avatar

Filip Miletic tinylucid

View GitHub Profile
@tinylucid
tinylucid / Settings.10x_settings
Created March 18, 2023 19:50
10x config (beta)
# Format: <SettingName>: <Settingvalue>
# Setting name must appear at start of line and there must be whitespace after the colon.
# Multiple values can be comma separated or on subsequent lines.
#
# General
#
# Open the last workspace opened when starting 10x
OpenLastWorkspaceOnStartup: false
@tinylucid
tinylucid / hash.c
Created June 16, 2023 12:14
PCG_RNG hash function
// https://www.reedbeta.com/blog/hash-functions-for-gpu-rendering/
uint pcg_hash(uint input)
{
uint state = input * 747796405u + 2891336453u;
uint word = ((state >> ((state >> 28u) + 4u)) ^ state) * 277803737u;
return (word >> 22u) ^ word;
}
{
@tinylucid
tinylucid / InfiniteGrid.shader
Created October 12, 2023 08:50 — forked from bgolus/InfiniteGrid.shader
Infinite Grid shader with procedural grid with configurable divisions and major and minor lines markings.
Shader "Unlit/InfiniteGrid"
{
Properties
{
[Toggle] _WorldUV ("Use World Space UV", Float) = 1.0
_GridScale ("Grid Scale", Float) = 1.0
_GridBias ("Grid Bias", Float) = 0.5
_GridDiv ("Grid Divisions", Float) = 10.0
_BaseColor ("Base Color", Color) = (0,0,0,1)
_LineColor ("Line Color", Color) = (1,1,1,1)
@tinylucid
tinylucid / config
Created May 7, 2024 08:20
Ghostty config
font-family = Berkeley Mono
font-style = Regular
font-size = 13
font-thicken = true
adjust-underline-position = 40%
adjust-underline-thickness = -60%
cursor-style = block
cursor-style-blink = false
@tinylucid
tinylucid / -etc-environment
Created December 7, 2024 13:59
Linux font stem-darkening
// Open up /etc/environment and then add the following line to the end of it.
FREETYPE_PROPERTIES="cff:no-stem-darkening=0 autofitter:no-stem-darkening=0"