Skip to content

Instantly share code, notes, and snippets.

View taeguk's full-sized avatar
😈
BAAAD

taeguk | thai taeguk

😈
BAAAD
View GitHub Profile
@taeguk
taeguk / errorrrrrrrrr.txt
Created August 12, 2017 17:34
errorrrrrrrrr.txt
[tkwon@bob1 hpx_build]$ make -j16 tests.performance.parallel_algorithms.local_.benchmark_is_heap
Scanning dependencies of target hpx_init
[ 8%] Building CXX object src/CMakeFiles/hpx_init.dir/hpx_main.cpp.o
[ 8%] Building CXX object src/CMakeFiles/hpx_init.dir/hpx_main_variables_map.cpp.o
[ 8%] Building CXX object src/CMakeFiles/hpx_init.dir/hpx_main_winsocket.cpp.o
[ 8%] Building CXX object src/CMakeFiles/hpx_init.dir/hpx_main_argc_argv.cpp.o
[ 8%] Building CXX object src/CMakeFiles/hpx_init.dir/hpx_user_main.cpp.o
[ 8%] Building CXX object src/CMakeFiles/hpx_init.dir/hpx_user_main_argc_argv.cpp.o
[ 8%] Building CXX object src/CMakeFiles/hpx_init.dir/util/lightweight_test.cpp.o
[ 8%] Building CXX object src/CMakeFiles/hpx_init.dir/main.cpp.o
@taeguk
taeguk / aaa.cpp
Created August 15, 2017 01:22
aaa.cpp
#include <thread>
#include <chrono>
#include <hpx/dataflow.hpp>
void haaam(int& i)
{
using namespace std::chrono_literals;
std::this_thread::sleep_for(2s);
std::cout << "[haaam] start" << std::endl;
std::this_thread::sleep_for(2s);
std::cout << "[haaam] end" << std::endl;
@taeguk
taeguk / scan_partitioner____.cpp
Created August 18, 2017 08:37
scan_partitioner____.cpp
// Copyright (c) 2007-2017 Hartmut Kaiser
// Copyright (c) 2015 Daniel Bourgeois
// Copyright (c) 2017 Taeguk Kwon
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(HPX_PARALLEL_UTIL_SCAN_PARTITIONER_DEC_30_2014_0227PM)
#define HPX_PARALLEL_UTIL_SCAN_PARTITIONER_DEC_30_2014_0227PM
@taeguk
taeguk / scanpartitioner_with_removing_finalitems.cpp
Created August 18, 2017 08:44
scanpartitioner_with_removing_finalitems.cpp
// Copyright (c) 2007-2017 Hartmut Kaiser
// Copyright (c) 2015 Daniel Bourgeois
// Copyright (c) 2017 Taeguk Kwon
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
#if !defined(HPX_PARALLEL_UTIL_SCAN_PARTITIONER_DEC_30_2014_0227PM)
#define HPX_PARALLEL_UTIL_SCAN_PARTITIONER_DEC_30_2014_0227PM
@taeguk
taeguk / ensure_future.cpp
Created August 25, 2017 13:58
ensure_future.cpp
template <typename T>
struct ensure_future
{
typedef hpx::future<T> type;
static type get(T && t)
{
return hpx::make_ready_future(std::move(t));
}
@taeguk
taeguk / asdf
Created November 7, 2017 04:56
asdf
<details open>
<summary>Want to ruin the surprise?</summary>
<br>
Well, you asked for it!
<details>
@taeguk
taeguk / asdf.md
Last active November 7, 2017 04:56
asdf.md
Want to ruin the surprise?
Well, you asked for it!
@taeguk
taeguk / gist:dac7a5a3037d215670f6a06fee447559
Last active August 9, 2018 06:48
maybe visual c++ 2015 Update 3 Bug?
// Test on MSVC 2015 Update 3
#include <exception>
#include <typeinfo>
template <typename T>
class A : T
{
};
template <typename T>
@taeguk
taeguk / 11.gif
Last active June 6, 2019 15:57
Jeju Island - Marado
11.gif
@taeguk
taeguk / unwatch-repos-of-org.js
Created June 21, 2019 09:34
Unwatch repositories of specific organizations
// run js codes in https://github.com/watching
Array.prototype.slice.call(
document.querySelectorAll('.clearfix')
).map(function (row) {
if (row.querySelector('div:first-child').innerText.indexOf('ORGANIZATION_NAME/') >= 0) {
row.querySelector('button').click()
}
})
location.reload()