Skip to content

Instantly share code, notes, and snippets.

View ameaninglessname's full-sized avatar
🦊
Firefox

CodingBot ameaninglessname

🦊
Firefox
View GitHub Profile
@MangaD
MangaD / cpp_template_argument_deduction.md
Last active April 18, 2026 03:57
C++: Template argument deduction, CTAD, and related

Template Argument Deduction in C++: A Comprehensive Guide

CC0

Disclaimer: Grok generated document.

Introduction

Template argument deduction is a core feature of C++ that allows the compiler to automatically infer the template parameters of a function or class template based on the arguments provided during a call or instantiation. This mechanism simplifies the use of templates, making generic code more concise and user-friendly. Since C++17, Class Template Argument Deduction (CTAD) has extended this capability to class templates. Combined with default template parameters, deduction enables flexible and robust generic programming. This article provides a thorough exploration of template argument deduction, its interaction with default template parameters, its application in function and class templates, and advanced techniques like SFINAE, tag dispatching, and C++20 concepts. It also addr

@Xuanwo
Xuanwo / README.md
Last active May 18, 2026 12:13
他现在运行的是linux我想在上面安装windows.txt
@jamiephan
jamiephan / README.md
Last active June 13, 2026 08:45
A script to automatically add ALL items to your account in quixel

Script to add all items from quixel

As quixel is being removed, all items are free to aquire. This script is to automate the process to add items to your account (As of writing, a total of 18874 items)

Note: This script only tested in the latest version of Chrome.

How to use

  1. Copy the script from below (run.js)
  2. Login into https://quixel.com
@regner
regner / BuildProject.xml
Last active May 26, 2026 07:56
A sample BuildGraph script for building, cooking, and packaging an Unreal project.
<?xml version='1.0' ?>
<!--
Why is this one giant script instead of a bunch of smaller scripts?
Mostly this comes down to BuildGraph and personal preference. As the language BuildGraph isn't
really much of a programming language there is no easy way to use an IDE and jump between
includes, find usages of variables, and just generally quickly search things. It was found to
be easier to have a single large file that a developer can quickly jump up and down in when
trying to understand what the BuildGraph script is doing.
@myusuf3
myusuf3 / delete_git_submodule.md
Created November 3, 2014 17:36
How effectively delete a git submodule.

To remove a submodule you need to:

  • Delete the relevant section from the .gitmodules file.
  • Stage the .gitmodules changes git add .gitmodules
  • Delete the relevant section from .git/config.
  • Run git rm --cached path_to_submodule (no trailing slash).
  • Run rm -rf .git/modules/path_to_submodule (no trailing slash).
  • Commit git commit -m "Removed submodule "
  • Delete the now untracked submodule files rm -rf path_to_submodule