Skip to content

Instantly share code, notes, and snippets.

View MATRIXKOO's full-sized avatar
Focusing

M4tr1xt4ng MATRIXKOO

Focusing
View GitHub Profile
C++ 🕓 1 min ███████████▏░░░░░░░░░ 53.1%
JSON 🕓 0 secs █████████▊░░░░░░░░░░░ 46.9%
@MATRIXKOO
MATRIXKOO / Diamond.cpp
Created February 23, 2022 13:35
Diamond class.
class X {};
class Y : public virtual X {};
class Z : public virtual X {};
class A : public Y , public Z {};
/*
X --> +-----------+
| 1 bytes |
+-----------+
option (FORCE_COLORED_OUTPUT "Always produce ANSI-colored output (GNU/Clang only)." FALSE)if (${FORCE_COLORED_OUTPUT})
if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
add_compile_options (-fdiagnostics-color=always)
elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
add_compile_options (-fcolor-diagnostics)
endif ()
endif ()
@MATRIXKOO
MATRIXKOO / gist:efe1ef3b14030c1764ebbdcffa9000fc
Created August 5, 2022 06:45 — forked from gtors/gist:effe8eef7dbe7052b22a009f3c7fc434
Makefile -> compilation_commands.json

emacs --daemon to run in the background. emacsclient.emacs24 <filename/dirname> to open in terminal

NOTE: "M-m and SPC can be used interchangeably".

  • Undo - C-/
  • Redo - C-?
  • Change case: 1. Camel Case : M-c 2. Upper Case : M-u
  1. Lower Case : M-l