Skip to content

Instantly share code, notes, and snippets.

View eimfach's full-sized avatar
💭
https://www.robingruenke.com/journal/blogging/tools/how-my-journal-is-build.html

Robin Gruenke eimfach

💭
https://www.robingruenke.com/journal/blogging/tools/how-my-journal-is-build.html
View GitHub Profile
@MangaD
MangaD / cpp_idioms.md
Created June 24, 2025 16:28
C++ Idioms

C++ Idioms

CC0

Disclaimer: Grok generated document.

C++ idioms are recurring patterns or techniques used by experienced programmers to write robust, efficient, and maintainable code. They leverage C++'s features to solve common problems or express intent clearly. Below is a comprehensive overview of key C++ idioms, organized by their purpose and functionality. This list covers both classic idioms and modern ones introduced with evolving C++ standards (up to C++20 and some C++23 insights where relevant). I’ll keep the explanations concise yet informative, focusing on the idiom, its purpose, and a brief example where necessary.

1. Resource Management Idioms

These idioms ensure proper resource handling, preventing leaks and ensuring exception safety.

@Momijiichigo
Momijiichigo / _Hyprland Intuitive Keybind Config.md
Last active December 12, 2025 20:36
Hyprland Intuitive Keybind Config

Hyprland Intuitive Keybind Config

Hyprland keybinding configuration syntax is not for humans.

I made a little script so you can write keybinding config with short and intuitive syntax.

The script will write the transpiled config into hyprland.conf

Syntax

@MangaD
MangaD / cpp_build_systems.md
Created March 5, 2025 16:29
Comprehensive Comparison of C++ Build Systems

📌 Comprehensive Comparison of C++ Build Systems

CC0

Disclaimer: ChatGPT generated document.

Choosing the right build system for C++ projects can significantly impact compilation speed, dependency management, and portability. This guide compares CMake, Meson, Bazel, Autotools, MSTools, and other alternatives.


@dalexeev
dalexeev / godot_type.cpp
Created October 8, 2023 17:18
GodotType
/**************************************************************************/
/* godot_type.cpp */
/**************************************************************************/
/* This file is part of: */
/* GODOT ENGINE */
/* https://godotengine.org */
/**************************************************************************/
/* Copyright (c) 2014-present Godot Engine contributors (see AUTHORS.md). */
/* Copyright (c) 2007-2014 Juan Linietsky, Ariel Manzur. */
/* */

During the past days, this great article by Sam Pruden has been making the rounds around the gamedev community. While the article provides an in-depth analysis, its a bit easy to miss the point and exert the wrong conclusions from it. As such, and in many cases, users unfamiliar with Godot internals have used it points such as following:

  • Godot C# support is inefficient
  • Godot API and binding system is designed around GDScript
  • Godot is not production ready

In this brief article, I will shed a bit more light about how the Godot binding system works and some detail on the Godot

@mieki256
mieki256 / gpl2aco.py
Created July 8, 2021 17:00
Convert GIMP palette (.gpl) to Photoshop color swatch (.aco)
#!python
# -*- mode: python; Encoding: utf-8; coding: utf-8 -*-
# Last updated: <2021/07/08 04:18:55 +0900>
"""
Convert GIMP palette (.gpl) to Photoshop color swatch (.aco).
usage: python gpl2aco.py GPL_FILE ACO_FILE
Windows10 x64 20H2 + Python 3.9.5 64bit
"""
@avaccari
avaccari / createFile.applescript
Last active January 25, 2024 17:13
Apple script to create a file with desired extension in a folder. Can be used in automator to create an app or a quick action.
(*
* Apple script to create a new file/folder based on the current selection in Finder:
* - if there is nothing selected, it will create the file/folder in the currently displayed folder
* - if a file is selected, it will create the file/folde in the folder of the selected file
* - if a folder is selected, it will create the file/folder in the selected folder
* - if an application is selected, it will not create the file/folder
*
* Notes:
* - By default it creates files named "untitled.txt".
* - Pressing "shift" will prompt the user for the file name
@nhtua
nhtua / 00.install-android-sdk.sh
Last active October 13, 2025 11:44
Run a Headless Android Device on Ubuntu server (no GUI)
#!/bin/bash -i
#using shebang with -i to enable interactive mode (auto load .bashrc)
set -e #stop immediately if any error happens
# Install Open SDK
apt update
apt install openjdk-8-jdk -y
update-java-alternatives --set java-1.8.0-openjdk-amd64
java -version
@JoelQ
JoelQ / elm-generic-types-exercises.md
Last active June 14, 2022 21:22
Short exercises to learn how generic types and type variables work in Elm.

Generic Elm types exercises

A series of exercises to get a feel for how generic types and type variables work in Elm. For each of these, you are given some code that is not compiling. Your task is to get it compiling. You can change the body of the function but not the signature. No cheating with Debug.todo or infinite recursions either 😉

@JoelQ
JoelQ / elm-types-glossary.md
Last active March 30, 2025 21:26
Elm Type Glossary

Elm Types Glossary

There's a lot of type terminology and jargon going around when discussing types in Elm. This glossary attempts to list some of the most common type terms along with synonyms, terms from other language communities, examples, and links to more detailed articles on each topic.