Skip to content

Instantly share code, notes, and snippets.

View tinylucid's full-sized avatar

Filip Miletic tinylucid

View GitHub Profile
@tinylucid
tinylucid / mu.cpp
Created May 18, 2025 16:15 — forked from pervognsen/mu.cpp
Mu as of the second stream
#include "mu.h"
#define _CRT_SECURE_NO_WARNINGS
#include <malloc.h>
#define _USE_MATH_DEFINES
#include <math.h>
#define _NO_CRT_STDIO_INLINE
#include <stdio.h>
#include <stdarg.h>
#define NO_STRICT
@tinylucid
tinylucid / vs_cpp_setup.md
Created May 18, 2025 16:11 — forked from pervognsen/vs_cpp_setup.md
My Visual Studio setup for C++ development

I recently upgraded to Windows 11 and had to set up Visual Studio C++ again. A few things have changed in Windows 11 with the tiled window management and deeper Windows Terminal integration, so I ended up revisiting my usual VS setup and made a bunch of changes. I'm documenting them here for my own future benefit (yes, I do know about VS import/export settings) and on the off chance that anyone else might get some ideas for their own setup.

It should be mentioned that I'm a single monitor user (multimon gives me neck pain as I've gotten older) and the monitor I currently use is 25". A laptop screen can't really accommodate the 2x2 full screen layout I'm using as my default here, so when I'm on a laptop I only use the vertical layout out of necessity.

{
"$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