Skip to content

Instantly share code, notes, and snippets.

@SteveShaw
SteveShaw / zmq-publisher.cpp
Created January 11, 2021 04:17 — forked from hmartiro/zmq-publisher.cpp
ZeroMQ pub/sub usage and latency timing for C++11
/**
* Example of ZeroMQ pub/sub usage for C++11.
*/
#include <zmqpp/zmqpp.hpp>
#include <iostream>
#include <chrono>
#include <thread>
using namespace std;
@SteveShaw
SteveShaw / astylerc
Created June 21, 2018 15:41 — forked from derofim/astylerc
Astyle code automatic formatting settings
# @file Astyle code automatic formatting settings
# @see http://astyle.sourceforge.net/astyle.html#_General_Information
#
# "One True Brace Style" uses linux brackets and adds brackets to unbracketed one line conditional statements.
# Opening brackets are broken from namespaces, classes, and function definitions.
# Brackets are attached to everything else including statements within a function, arrays, structs, and enums.
# In the following example brackets have been added to the "return 0;" statement. The option ??add?one?line?brackets can also be used with this style.
#
# int Foo(bool isBar)