Skip to content

Instantly share code, notes, and snippets.

View rinthel's full-sized avatar
💭
Studying Unreal

Rinthel Kwon rinthel

💭
Studying Unreal
View GitHub Profile
@rinthel
rinthel / ffmpeg-emscripten-build.sh
Last active November 11, 2022 09:48
ffmpeg emscripten build
# 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
@rinthel
rinthel / .tigrc
Created August 9, 2019 11:23
my tig setup
# 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).
@rinthel
rinthel / rxcpp_scheduler_example.cpp
Created June 10, 2019 11:47
rxcpp scheduler example code
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;
@rinthel
rinthel / gist:4cf68f5e05425097095ed2a22aa551ff
Last active April 12, 2019 09:03
GTD + taskwarrior setting
# .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)
@rinthel
rinthel / Dependency.cmake
Last active December 6, 2018 10:42
C++ dependency management using CMake's external project feature
# 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)