Skip to content

Instantly share code, notes, and snippets.

@polaris
polaris / timePointAsString.cpp
Created June 20, 2016 11:53
Convert a std::chrono::system_clock::time_point to std::string
static std::string timePointAsString(const std::chrono::system_clock::time_point& tp) {
std::time_t t = std::chrono::system_clock::to_time_t(tp);
std::string ts = std::ctime(&t);
ts.resize(ts.size()-1);
return ts;
}
@greew
greew / README.md
Last active July 29, 2023 16:50
Fix Spotify stuck in full screen (Ubuntu) installed from snap

Problem: I experienced Spotify being stuck in full screen mode. The title bar with minimize, maximize and close wasn't present and no keyboard shortcut I know about would exit full screen.

Solution:

@mastier has improved the solution - see here

Solution (old):