Skip to content

Instantly share code, notes, and snippets.

View nikhedonia's full-sized avatar
💭
actively open-sourcing

Gaetano Checinski nikhedonia

💭
actively open-sourcing
View GitHub Profile
int i = 0;
for (auto x : squares()) {
std::cout << x << std::endl;
// squares is infinite, so we need to break
if (i > 10) {
break;
}
++i;
}
auto squares = []() -> seq<int> {
int x = 0;
while (true) {
co_yield x * x;
++x;
}
};
#include <experimental/coroutine>
#include <type_traits>
#include <iostream>
#include <memory>
using namespace std::experimental;
template<class T>
struct AwaitValue {
T x;
Project Files Disk Space stat md5sum shasum sha256sum
LLVM 319618 9.5 GB 1.7s 7.5s 9.7s 20s
OpenCV 26923 2.5 GB 0.3s 2.0s 2.4s 5.5s
OpenSSL 35699 855 MB 0.3s 0.4s 0.8s 1.2s
def merge_dicts(x, y):
z = x.copy()
z.update(y)
return z
cxx_library(
name = "bitcoin_crypto_sse41",
header_namespace= '',
compiler_flags = ["-fstack-protector-all","-fPIE","-msse4.1"],
@nikhedonia
nikhedonia / boost-test.bzl
Created October 22, 2018 10:01
boost test using sh_test
include_defs('//BUCKAROO_DEPS')
def test_tree(name, path):
genrule(
name = name,
out = ".",
srcs = [path],
cmd = "cp -r $SRCS/* $OUT"
)
return ":"+name
include_defs('//BUCKAROO_DEPS')
def test_tree(name, path):
genrule(
name = name,
out = ".",
srcs = [path],
cmd = "cp -r $SRCS/* $OUT"
)
return ":"+name
include_defs('//BUCKAROO_DEPS')
def test_tree(name, path):
genrule(
name = name,
out = ".",
srcs = [path],
cmd = "cp -r $SRCS/* $OUT"
)
return ":"+name
@nikhedonia
nikhedonia / llvm-minimal.svg
Last active October 10, 2018 16:49
buildinfer-svgs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
prebuilt_cxx_library(
name="ippicv",
static_lib = "build/3rdparty/ippicv/ippicv_lnx/lib/intel64/libippicv.a"
)
cxx_library(
name = "build_modules_core_precomp_hpp-headers",
compiler_flags = [],
preprocessor_flags = [],
exported_headers = subdir_glob([
("build/3rdparty/ippicv/ippicv_lnx/include", "**/*.h"),