Skip to content

Instantly share code, notes, and snippets.

View maddouri's full-sized avatar

Yassine MADDOURI maddouri

View GitHub Profile
@maddouri
maddouri / on_scope_exit.hpp
Last active July 27, 2019 19:56
Neat C++11 scope guard inspired by Andrei Alexandrescu's CppCon 2015 talk about declarative control flow
#pragma once
#include <cstdint>
#include <exception>
#include <type_traits>
#include <utility>
// Usage
// ON_SCOPE_EXIT <callable> ;
// ON_SCOPE_EXIT_FAIL <callable> ;
@Mike-Devel
Mike-Devel / Boostdep.png
Last active November 29, 2019 18:35
Boost dependency graph with cmake coloring
Boostdep.png
@MattPD
MattPD / cpp.std.coroutines.draft.md
Last active May 18, 2025 22:23
C++ links: Coroutines (WIP draft)
@maddouri
maddouri / cd_without_writing_cd.bashrc.sh
Created September 10, 2019 17:45
cd just by typing the directory's path in bash 🔥
# https://unix.stackexchange.com/a/37182/140618
shopt -s autocd