Skip to content

Instantly share code, notes, and snippets.

View Minemobs's full-sized avatar
💭
yes

minemobs Minemobs

💭
yes
View GitHub Profile
@MangaD
MangaD / cpp26.md
Created March 16, 2025 11:17
C++26: Overview and Context

C++26: Overview and Context

CC0

Disclaimer: Grok generated document.

C++26 is the next major revision of the C++ standard, following C++23, and is being shaped by the ISO C++ Standards Committee (WG21). As of March 16, 2025, it’s in its third design phase, with key meetings like Tokyo (November 2024) and Wrocław (November 2024) driving progress. The focus areas—reflection, contracts, and pattern matching—reflect years of community effort to enhance metaprogramming, safety, and expressiveness. Other features (e.g., std::simd, trivial relocatability) are also in play, but I’ll prioritize your specified trio, then touch on additional notable additions.


1. Reflection (P2996)

@AskinNet
AskinNet / kitty.md
Created May 10, 2024 07:29 — forked from pnsinha/kitty.md
Kitty CheatSheet

Default shortcuts

Scrolling

Action Shortcut
Scroll line up ctrl+shift+up (also ⌥+⌘+⇞ and ⌘+↑ on macOS)
Scroll line down ctrl+shift+down (also ⌥+⌘+⇟ and ⌘+↓ on macOS)
Scroll page up ctrl+shift+page_up (also ⌘+⇞ on macOS)
Scroll page down ctrl+shift+page_down (also ⌘+⇟ on macOS)
@gledos
gledos / YouTubeShareLinkCleaner.user.js
Created December 6, 2023 08:54
YouTube Share Link Cleaner
// ==UserScript==
// @name YouTube Share Link Cleaner
// @namespace http://tampermonkey.net/
// @version 0.0.1
// @description Cleaner YouTube share links to remove tracking parameters
// @author ChatGPT
// @match https://www.youtube.com/*
// @grant none
// ==/UserScript==
@nmalayev
nmalayev / saveToPlaylist.js
Created February 28, 2022 18:16
YouTube Music Likes to Playlist
// Define the sleep method and relevant paths.
function sleep(ms) {
return new Promise((resolve) => setTimeout(resolve, ms));
}
const sleepTime = 600;
const count = 0;
// Update playlistName to desired playlist
const playlistName = "#####";

⚠️ This guide has moved ⚠️

Updates for both 1.18.2 and newer versions can be found at https://minecraft.wiki/w/Tutorial:Custom_structures

Custom data pack structures in 1.18.2

This guide will showcase how to create a data pack that adds a custom structure to the world. There is also a data pack download of this complete example.

Always leave the world and rejoin to apply the new changes!

Pack.mcmeta

@IllusionTheDev
IllusionTheDev / KnockbackUtil.java
Last active January 8, 2025 06:35
Simulate realistic player knockback
// Ported from Exerosis' kotlin example
public class KnockbackUtil {
private static final double FRICTION = 1.0;
private static final double HORIZONTAL = 0.40;
private static final double VERTICAL = 0.36075;
private static final double EXTRA_VERTICAL = 0.1;
private static final double EXTRA_HORIZONTAL = 1.5;
public static Vector getKnockback(Location entityLoc, Entity attacker) {
@mendes5
mendes5 / launch.md
Last active March 23, 2022 06:07
How to launch minecraft java ediction from the command line

Minecraft is intended to be launched by the minecraft launcher to do login stuff, integrity verification, premium status check, etc... So its difficult to launch it from a comand line for diagnostic porpuses (For example attaching a RenderDoc process to it)

When you launch Minecraft, the launcher spawn the process

C:\Program Files (x86)\Minecraft Launcher\runtime\jre-x64\bin\javaw.exe

In the CWD:

C:\Users\User\AppData\Roaming\.minecraft\
@robin-a-meade
robin-a-meade / unofficial-bash-strict-mode.md
Last active June 6, 2025 20:24
Unofficial bash strict mode

Unofficial Bash Strict Mode

Sometimes a programming language has a "strict mode" to restrict unsafe constructs. E.g., Perl has use strict, Javascript has "use strict", and Visual Basic has Option Strict. But what about bash? Well, bash doesn't have a strict mode as such, but it does have an unofficial strict mode:

set -euo pipefail

set -e

@lolzballs
lolzballs / HelloWorld.java
Created March 22, 2015 00:21
Hello World Enterprise Edition
import java.io.FileDescriptor;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;
import java.io.PrintStream;
public class HelloWorld{
private static HelloWorld instance;
public static void main(String[] args){
instantiateHelloWorldMainClassAndRun();
@XVilka
XVilka / TrueColour.md
Last active August 26, 2025 13:19
True Colour (16 million colours) support in various terminal applications and terminals

THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.

PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!