This file contains hidden or 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
# reference: https://itnext.io/build-ffmpeg-webassembly-version-ffmpeg-js-part-2-compile-with-emscripten-4c581e8c9a16 | |
# tested in macos / emscripten 1.38.48 | |
emconfigure ./configure \ | |
--disable-x86asm --disable-inline-asm --disable-doc --disable-stripping \ | |
--nm="$EMSDK/upstream/bin/llvm-nm -g" \ | |
--ar=emar --cc=emcc --cxx=em++ --objcc=emcc --dep-cc=emcc | |
emmake make -j8 |
This file contains hidden or 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
# version: 2.3.0-1 (installed from sudo apt-get install tig) | |
# Tig default configuration | |
# | |
# Please see 'man tigrc' for a complete reference. | |
# Settings | |
# -------- | |
# Most of these settings can be toggleable, either via the toggle-* | |
# actions or via the option menu (bound to `o` by default). |
This file contains hidden or 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
console->info("===== schduler ====="); | |
console->info("main thread id: {}", getThreadId()); | |
Rx::schedulers::run_loop runloop; | |
Rx::subject<int> subject; | |
auto observable = subject.get_observable(); | |
observable | |
.map([&](int v) { | |
console->info("thread[{}] - published value: {}", getThreadId(), v); | |
return v; |
This file contains hidden or 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
# .bash_profile | |
export PS1='\[\e[0;35m\]Inbox:$(task +in +PENDING count)\[\e[m\] '$PS1 | |
alias in='task add +in' | |
# .taskrc | |
urgency.user.tag.in.coefficient=15.0 | |
report.in.columns = id,description | |
report.in.description = Inbox | |
report.in.filter = status:pending limit:page (+in) |
This file contains hidden or 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
# usage: | |
# | |
# project(example) | |
# include(Dependency.cmake) | |
# add_executable(example main.cpp) | |
# add_dependencies(example ${DEP_PROJECTS}) | |
# target_include_directories(example PUBLIC ${DEP_INSTALL_DIR}/include) | |
# target_link_libraries(example PUBLIC -L${DEP_INSTALL_DIR}/lib) # add what you want | |
include(ExternalProject) |