Skip to content

Instantly share code, notes, and snippets.

View laxerrrr's full-sized avatar
🤔
game networking stuff

laxerrrr

🤔
game networking stuff
View GitHub Profile
@laxerrrr
laxerrrr / Parser.cpp
Created July 25, 2023 09:27
Concatenated incremental JSON stream parsing with nlohmann/json (somewhat 💩 code!)
//mtx_ is a Boost mutex
void Parser::put_into_internal_string_stream(std::string& str) {
mtx_.lock();
internal_ss_.clear();
internal_ss_.str(internal_ss_.str() + str);
mtx_.unlock();
}
@laxerrrr
laxerrrr / .zshrc
Last active April 8, 2023 16:31
.zshrc | MacOS | Sep 25 2022
setopt PROMPT_SUBST
export PATH="/opt/homebrew/opt/openjdk/bin:$PATH"
alias v="nvim"
alias brow="arch --x86_64 /usr/local/Homebrew/bin/brew"
alias cd..="cd .."
#dirs is used because I want full path, but I want my home directory to be replaced by ~
PS1="