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
#!/usr/bin/env bash -vex | |
find ~ -maxdepth 2 -mindepth 2 -name ".git" -type d -print -execdir git pull \; |
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 <ostream> | |
#include <utility> | |
#include <type_traits> | |
#include <functional> | |
#include <memory> | |
#include <vector> | |
#include <cstdlib> | |
#include <cassert> |
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 <type_traits> | |
#include <utility> | |
#include <iostream> | |
#include <cassert> | |
#include <cstdlib> | |
namespace details | |
{ | |
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 <type_traits> | |
#include <utility> | |
#include <cstdlib> | |
#pragma clang diagnostic push | |
#pragma clang diagnostic ignored "-Wglobal-constructors" | |
template< typename F > | |
F callee = {}; |
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 <cstdlib> | |
#include <cstddef> | |
#include <cstdint> | |
#include <x86intrin.h> | |
struct phash | |
{ |
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 <iomanip> | |
#include <cstdint> | |
#include <cstdlib> | |
int | |
main() | |
{ |
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
-- mkdir boost ; cd boost ; lua ../git-submodules-clone-HEAD.lua https://github.com/boostorg/boost.git . | |
local module_url = arg[1] or 'https://github.com/boostorg/boost.git' | |
local module = arg[2] or module_url:match('.+/([_%d%a]+)%.git') | |
local branch = arg[3] or 'master' | |
function execute(command) | |
print('# ' .. command) | |
return os.execute(command) | |
end | |
-- execute('rm -rf ' .. module) | |
if not execute('git clone --single-branch --branch ' .. branch .. ' --depth=1 ' .. module_url .. ' ' .. module) then |
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
cd | |
svn co https://llvm.org/svn/llvm-project/llvm/trunk llvm | |
cd llvm/projects/ | |
svn co https://llvm.org/svn/llvm-project/libcxxabi/trunk libcxxabi | |
svn co https://llvm.org/svn/llvm-project/libcxx/trunk libcxx | |
svn co https://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt | |
svn co http://llvm.org/svn/llvm-project/openmp/trunk openmp | |
cd ../tools | |
svn co https://llvm.org/svn/llvm-project/cfe/trunk clang | |
svn co https://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra |
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
struct S { ~S() noexcept(false) { ; } }; | |
static_assert(noexcept(::new (nullptr) S())); | |
static_assert(!noexcept(S())); | |
struct T { T() noexcept(false) { ; } }; | |
static_assert(!noexcept(::new (nullptr) T())); | |
static_assert(!noexcept(T())); |
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 <type_traits> | |
#include <iostream> | |
#include <cstdlib> | |
#define PP { std::cout << __PRETTY_FUNCTION__ << std::endl; } | |
struct descriptor | |
{ | |
std::size_t const s; |
OlderNewer