Skip to content

Instantly share code, notes, and snippets.

View vgenty's full-sized avatar

Victor Genty vgenty

  • Austin, TX
View GitHub Profile
#ifndef TYPE_HPP
#define TYPE_HPP
#include <string>
#include <typeinfo>
std::string demangle(const char* name);
template <class T>
std::string type(const T& t) {
--- a/src/gui/painting/qpaintengine_mac.cpp 2015-05-07 07:14:43.000000000 -0700
+++ b/src/gui/painting/qpaintengine_mac.cpp 2015-07-06 18:07:52.000000000 -0700
@@ -340,13 +340,7 @@
}
// Get the color space from the display profile.
- CGColorSpaceRef colorSpace = 0;
- CMProfileRef displayProfile = 0;
- CMError err = CMGetProfileByAVID((CMDisplayIDType)displayID, &displayProfile);
- if (err == noErr) {

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name: