Skip to content

Instantly share code, notes, and snippets.

View neroist's full-sized avatar
🔪
Found you!

niko neroist

🔪
Found you!
View GitHub Profile
@mjakeman
mjakeman / distribute-windows-msys2.md
Last active February 11, 2025 01:47
An easy way to distribute GTK applications and dependenices on Windows

Distribute GTK Apps with Windows (MSYS2)

Make sure package mingw-w64-x86_64-gtk3 is installed. Build your project with a custom prefix (e.g. ~/my-gtk-app-prefix). Navigate to this directory such that you have subdirectories 'bin', 'lib', 'share', etc containing the executable to distribute.

1. Dependent DLLs

The following command copies all dependent DLLs to the current directory:

@petrklus
petrklus / rgb_to_kelvin.py
Last active April 14, 2025 06:56
Kelvin to RGB in python
"""
Based on: http://www.tannerhelland.com/4435/convert-temperature-rgb-algorithm-code/
Comments resceived: https://gist.github.com/petrklus/b1f427accdf7438606a6
Original pseudo code:
Set Temperature = Temperature \ 100
Calculate Red:
If Temperature <= 66 Then