I hereby claim:
- I am dkorolev on github.
- I am dkorolev (https://keybase.io/dkorolev) on keybase.
- I have a public key whose fingerprint is 0127 DF62 0BDD E3BE C7C9 7BFE A4E7 FF85 790C A9CF
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
#!/bin/bash | |
# | |
# This script downloads the master branch of some GitHub repository and installs it in current directory. | |
GITHUB_REPO=${1:-Bricks} | |
GITHUB_USER=${2:-KnowSheet} | |
GITHUB_BRANCH=${3:-master} | |
TMPDIR=tmp |
#!/bin/bash | |
# | |
# This script downloads the specified GitHub repository and installs it in current directory. | |
set -u -e | |
# Command-line parameters. | |
GITHUB_REPO=${1:-Bricks} | |
GITHUB_USER=${2:-KnowSheet} | |
GITHUB_BRANCH=${3:-master} |
#!/bin/bash | |
# | |
# Generates code coverage report using gcov/geninfo/genhtml for each .cc file in current directory. | |
set -u -e | |
CPPFLAGS="-std=c++11 -g -Wall -W -fprofile-arcs -ftest-coverage" | |
LDFLAGS="-pthread" | |
TMPDIR=tmp |
#!/bin/bash | |
# | |
# Checks that every header can be compiled independently. | |
# | |
# Compiles each header with g++ and clang++, then links them all together | |
# to confirm the one-definition-rule is not violated, i.e., all the | |
# `inline`-s are set and the library really is header-only. | |
set -u -e |
#include <iostream> | |
enum class Selector : int { A, B }; | |
struct ImplA { | |
void foo() { | |
std::cout << "A::foo()" << std::endl; | |
} | |
int a; | |
constexpr static bool is_a = true; |
// V1: Types `A` and `B` hardcoded. | |
#include <cstdio> | |
#include <memory> | |
// Library code. | |
struct A; | |
struct B; |
// V2: Using the type list, to allow user-defined dispatching. | |
#include <cstdio> | |
#include <vector> | |
#include <utility> | |
// Library code. | |
template<typename> | |
struct Visitor { |
#include <cstdio> | |
#include <vector> | |
#include <utility> | |
// Library code. | |
template<typename> | |
struct Visitor { | |
}; | |