This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// This is a better version (i think), it does not use std::get(). | |
#include <iostream> | |
#include <array> | |
template <typename T, T T1, T... Ts> | |
struct ConstexprSetHelper { | |
constexpr static size_t size = 1 + sizeof...(Ts); | |
constexpr static bool contains(T elem) { | |
return (elem == T1) || ConstexprSetHelper<T, Ts...>::contains(elem); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
ALL_PACKAGES="" | |
NOSYNC_PACKAGES="" | |
AUR_PACKAGES="" | |
NON_AUR_PACKAGES="" | |
OFFICIAL_PACKAGES="" | |
STATE_RAN=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// compiled as in: `g++ -std=c++1y 'test-facade-through-sfinae.cpp' -o 'test-facade-through-sfinae' | |
#include <iostream> | |
template <typename T, template <typename TTTs> class... TTs> | |
struct facade : public TTs<T>... { | |
facade(T& t): state__(&t) {} | |
constexpr inline operator T&() { return *state__; } | |
private: | |
T* state__; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $flisboac 2017-03-01 | |
/** | |
* @file error.hpp | |
*/ | |
#pragma once | |
#ifndef adl__error__hpp__ | |
#define adl__error__hpp__ | |
#include <string> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
silly gist hack, why do we need you? :( |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
#include <chrono> | |
#include <type_traits> | |
using clock_type = std::conditional< | |
std::chrono::high_resolution_clock::is_steady, | |
std::chrono::high_resolution_clock, | |
std::chrono::steady_clock | |
>::type; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
# | |
# This file was generated by a make rule | |
# | |
# | |
####################################################### | |
# From 'shell_config' | |
####################################################### | |
ENABLE_ABYSS_THREADS="yes" | |
THREAD_LIBS="-lpthread" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
See https://stackoverflow.com/questions/38335668/how-to-refer-to-typescript-enum-in-d-ts-file-when-using-amd | |
Run with `npm run exec`, will install all dependencies as needed. | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
main() { | |
local m2_root; m2_root="~/.m2" | |
local groupId | |
local artifactId | |
local parsing; parsing=0 | |
local path | |
local exitcode; exitcode=0 | |
local dry_run; dry_run=1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
readonly wsconfig_env_home="$(cd "$(dirname "$0")" && pwd -P)" | |
{ WS_DOCKERFILE_CONTENTS="$(cat)"; } <<"_DOCKERFILE_" | |
FROM ubuntu:bionic | |
ENV DEBIAN_FRONTEND="teletype" | |
# Update system and install essential developer tools |