Skip to content

Instantly share code, notes, and snippets.

Cameron cameron314

Block or report user

Report or block cameron314

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View git-last-commits.cpp
// Compile with g++ git-last-commits.cpp -std=c++11 -O3 -g -DNDEBUG -o git-last-commits -Ilibgit2-0.23.1/include -Llibgit2-0.23.1/build -lgit2 -lz -pthread
#include <git2.h>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <unistd.h>
#include <cerrno>
#include <map>
cameron314 / stabtest.cpp
Last active Jun 6, 2016
Simple stability test that I whipped up for exercising my lock-free queue. Compile with g++ -std=c++11 -DNDEBUG stabtest.cpp -O3 -pthread
View stabtest.cpp
#include "readerwriterqueue.h"
using namespace moodycamel;
#include <exception>
#include <fstream>
#include <thread>
#include <cstdlib> // rand()
#include <unistd.h> // usleep()
cameron314 /
Created Nov 13, 2011
PNGEncoder2 benchmark source
import flash.display.*;
import flash.utils.*;
import ru.inspirit.encoders.png.PNGEncoder;
import flash.system.ApplicationDomain;
import com.adobe.images.PNGEncoder;
You can’t perform that action at this time.