Skip to content

Instantly share code, notes, and snippets.

View luncliff's full-sized avatar
🥰
I love G3(Girls' Frontline)!

Park DongHa luncliff

🥰
I love G3(Girls' Frontline)!
View GitHub Profile
@luncliff
luncliff / conan_cpp_for_kor.md
Last active October 28, 2023 04:38
C++ Korea 2023년 10월 MeetUp: Conan C++ 패키지 매니저 살짝 맛보기
@luncliff
luncliff / logger.cpp
Last active January 20, 2023 07:31
C++, Swift build with CMake
#include "logger.hpp"
#include "logger_binding.h"
#define FMT_HEADER_ONLY
#define SPDLOG_HEADER_ONLY
#include <fmt/format.h>
#include <fmt/xchar.h>
#include <spdlog/sinks/stdout_color_sinks.h>
#include <spdlog/sinks/stdout_sinks.h>
#include <spdlog/spdlog.h>
@luncliff
luncliff / test_libdispatch.cpp
Last active January 18, 2024 21:56
C++ 20 Coroutines with libdispatch (Apple platform)
/**
* @author github.com/luncliff (luncliff@gmail.com)
* @brief Personal experiment with libdispatch in Apple platform.
*
* @note clang++ -std=c++2a -stdlib=libc++ -fcoroutines-ts
* @see https://developer.apple.com/library/archive/documentation/General/Conceptual/ConcurrencyProgrammingGuide/Introduction/Introduction.html
* @see https://apple.github.io/swift-corelibs-libdispatch/tutorial/
*/
#define CATCH_CONFIG_RUNNER
#define CATCH_CONFIG_FAST_COMPILE
@luncliff
luncliff / urgent-file-server.md
Last active November 17, 2020 11:48
급하게 HTTP file server를 띄워야 할때 쓰는 Docker Compose

대충 vscode, http 서버가 /mnt폴더를 workspace로 구동하게 만들고, 지정한 host_storage를 여기에 바인딩한다.

# docker-compose.yaml
version: "3"

volumes:
  host_storage:
 driver: local # for local mount
@luncliff
luncliff / date_time.hpp
Last active March 16, 2021 09:37
C++ Timer with Standard Library
#define CATCH_CONFIG_FAST_COMPILE
#define CATCH_CONFIG_MAIN
#include <catch2/catch.hpp>
#include <chrono>
#include <ctime>
#include <iomanip>
/// @brief ISO-8601 time
struct date_time final {
@luncliff
luncliff / a_windows_dll_test.go
Last active June 2, 2019 06:53
Short practice for using Windows DLL in Go Language
package main
//
// References
// - https://medium.com/jettech/breaking-all-the-rules-using-go-to-call-windows-api-2cbfd8c79724
//
import (
"math/rand"
"os"
@luncliff
luncliff / cmake-tutorial.md
Last active May 3, 2024 00:53
CMake 할때 쪼오오금 도움이 되는 문서

CMake를 왜 쓰는거죠?
좋은 툴은 Visual Studio 뿐입니다. 그 이외에는 전부 사도(邪道)입니다 사도! - 작성자

주의

  • 이 문서는 CMake를 주관적으로 서술합니다
  • 이 문서를 통해 CMake를 시작하기엔 적합하지 않습니다
    https://cgold.readthedocs.io/en/latest/ 3.1 챕터까지 따라해본 이후 기본사항들을 속성으로 익히는 것을 돕기위한 보조자료로써 작성되었습니다