Skip to content

Instantly share code, notes, and snippets.

@trevershick
trevershick / CMakeLists.txt
Last active November 21, 2023 06:54
Simple client and server using libuv and unix domain sockets...
set(CMAKE_BUILD_TYPE Debug)
cmake_minimum_required(VERSION 2.8.12)
project(libuv1)
add_definitions("-std=c++11")
include(${CMAKE_BINARY_DIR}/conanbuildinfo.cmake)
conan_basic_setup()
add_executable(server server.cpp)
@trevershick
trevershick / test.cpp
Last active February 7, 2019 03:40
test.cpp
#include <cstring>
#include <functional>
#include <iostream>
#include <string>
#include <utility>
#include <vector>
class MyBuf : public std::streambuf {
public:
MyBuf(int maxLength, std::function<void(const char *, int)> callbackFn);
@trevershick
trevershick / adverbs.txt
Last active January 17, 2021 21:47
Word List
aback
abaft
abaxially
abeam
abed
abjectly
ably
abnormally
aboard
abominably