Skip to content

Instantly share code, notes, and snippets.

View dgrfps's full-sized avatar
🐒

Daguer dgrfps

🐒
View GitHub Profile
@osipxd
osipxd / !paper-versions.md
Last active October 27, 2025 09:28
Paper versions links
@phg1024
phg1024 / threadexample.cpp
Last active November 9, 2023 08:06
a simple thread example to show thread-safe vector operation
#include <iostream>
#include <concurrent_vector.h>
#include <thread>
#include <algorithm>
#include <cstdlib>
#include <atomic>
#include <vector>
#include <mutex>
int counter = 0;
@mark-d-holmberg
mark-d-holmberg / Makefile
Created March 9, 2011 18:56
convert a C++ std::string to the template type you specify
all:
g++ -Wall -g -o sstream-convert.x86 main.cpp
clean:
rm sstream-convert.x86