Skip to content

Instantly share code, notes, and snippets.

View tinylucid's full-sized avatar

Filip Miletic tinylucid

View GitHub Profile
{
"$schema": "https://zed.dev/schema/themes/v0.2.0.json",
"name": "Visual Assist Dark",
"author": "",
"themes": [
{
"name": "Visual Assist Dark",
"appearance": "dark",
"style": {
"border": null,
@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"
@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 / 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 / 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;
}
{
;;; naysayer-theme.el --- Aftereight theme for Emacs.
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
@tinylucid
tinylucid / Firefox font rendering.md
Last active October 6, 2023 22:53
fix that fuglt default font rendering on Firefox on Windows

Enter about:config and change the following configurations:

Key Value
gfx.font_rendering.cleartype_params.cleartype_level 0
gfx.webrenderer.all true
gfx.font_rendering.cleartype_params.rendering_mode 5
gfx.use_text_smoothing_setting true
@tinylucid
tinylucid / GPUOptimizationForGameDev.md
Created January 10, 2021 15:16 — forked from silvesthu/GPUOptimizationForGameDev.md
GPU Optimization for GameDev
@tinylucid
tinylucid / nixShellRust.nix
Created November 28, 2019 00:02
small nix script for nix-shell for Rust projects
let
mozilla = import (builtins.fetchTarball https://github.com/mozilla/nixpkgs-mozilla/archive/master.tar.gz);
nixpkgs = import <nixpkgs> { overlays = [ mozilla ]; };
in
with nixpkgs;
mkShell {
buildInputs = [
clang # needed for bindgen
@tinylucid
tinylucid / makefilecpp
Created March 11, 2019 12:17
minimal makefile for cpp
CC = clang++
CXX = clang++
DEBUG = -ggdb -O1 -march=native
RELEASE = -O2
CPPFLAGS := -I.
CXXFLAGS := $(DEBUG) -W -Wall -Wextra -std=c++17
LDLIBS := -lm
OUTPUT_OPTION = -MMD -MP -o $@ -MJ [email protected]
# Modify your C++ filesuffix here: