Skip to content

Instantly share code, notes, and snippets.

View kaem-e's full-sized avatar
💭
a

Kaem kaem-e

💭
a
View GitHub Profile
@luciascarlet
luciascarlet / Balanced.ini
Last active March 21, 2025 20:34
MacType "Balanced" profile (WinUI-like)
# update v1.1 (see revisions for older version; this has a smoother appearance for both DirectWrite and GDI)
# Use with latest testing version of MacType only.
# Recommended to disable ClearType (not AA) system-wide by setting the FontSmoothingType DWORD to 1 in HKCU/Control Panel/Desktop. Do not do this step if you use Firefox, as it'll cause it to render very crunchy non-antialiased fonts for some text, but it improves Edge/Chrome and Chromium apps.
# Microsoft Edge and Chrome require bypassing the renderer code integrity policy so that vertical AA can be enabled by this profile. More details: https://github.com/snowie2000/mactype/wiki/Google-Chrome
# Additional suggested tweak: use Winaero Tweaker (https://winaero.com/winaero-tweaker/) to change every system font to "Segoe UI Variable Small", if you are using Windows 11. This will make fonts in Win32 UI's consistent with WinUI UI's, where Segoe UI Variable is used. (Windows doesn't use Segoe UI Variable for those by default because the legacy ClearType re
@nikolovlazar
nikolovlazar / keybindings.json
Last active April 17, 2025 22:10
VSCode key bindings to navigate like Neovim
[
// Navigation
{
"key": "ctrl-h",
"command": "workbench.action.navigateLeft"
},
{
"key": "ctrl-l",
"command": "workbench.action.navigateRight"
},
@ollpu
ollpu / spectrum.rs
Last active January 24, 2025 02:44
FFT spectrum example
use std::{f32::consts::PI, sync::Arc};
use realfft::{num_complex::Complex, RealFftPlanner, RealToComplex};
const N: usize = 1024;
const SR: f32 = 44100.;
pub struct Spectrum {
fft: Arc<dyn RealToComplex<f32>>,
real_buf: Vec<f32>,