Skip to content

Instantly share code, notes, and snippets.

View MetGang's full-sized avatar

Patrick Stritch MetGang

  • 12:27 (UTC +02:00)
View GitHub Profile
# set -g default-command /usr/bin/zsh
set-option -sa terminal-overrides ',xterm*:Tc'
set -g mouse on
unbind C-b
set -g prefix C-Space
bind C-Space send-prefix
unbind r
@MetGang
MetGang / Stritch-swap-v2.cpp
Created November 24, 2019 21:53
Stritch swap v2
// Stritch swap v2
// Live demo https://godbolt.org/z/gXEqjX
#include <iostream>
#include <type_traits>
#include <tuple>
#include <new>
template <typename T>
concept Trivial = std::is_trivial_v<T>;
@MetGang
MetGang / C++Tricks.md
Last active January 13, 2023 15:41
C++ Tricks