Skip to content

Instantly share code, notes, and snippets.

View Zitrax's full-sized avatar
👽

Daniel Bengtsson Zitrax

👽
View GitHub Profile
@Zitrax
Zitrax / stringformat_constexpr_if.cpp
Last active November 7, 2023 23:06
stringformat with constexpr if
#include <string>
#include <iostream>
#include <memory>
/**
* Convert all std::strings to const char* using constexpr if (C++17)
*/
template<typename T>
auto convert(T&& t) {
@Zitrax
Zitrax / Dockerfile
Last active October 7, 2020 09:38
Critic docker experiment
# OperaCritic
#
# VERSION 0.1.0
# Note, a pre-release of 18.04 was tested but posgres did not want to start
# there. And in ubuntu 16.04 apache crashed (possibly due to old mod_wsgi, not
# tested with the pip version)
FROM ubuntu:17.10
# Originally based on https://hub.docker.com/r/tjarosik/critic/
MAINTAINER Daniel Bengtsson <[email protected]>