Skip to content

Instantly share code, notes, and snippets.

View balamuruganky's full-sized avatar

Balamurugan Kandan balamuruganky

View GitHub Profile
@balamuruganky
balamuruganky / pubclient.cpp
Created March 9, 2023 14:21 — forked from kuenishi/pubclient.cpp
ZeroMQ sample codes
#include <zmq.hpp>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
int main (void)
{
zmq::context_t context(1);
const char * protocol =
"tcp://localhost:5555";
@balamuruganky
balamuruganky / gps_points_calc.cpp
Last active April 20, 2021 14:20
GPS points calculated by using the distance and direction of the movement
#include <stdio.h>
#include <math.h>
#include <time.h>
#include <iostream>
#include <string>
#include <iomanip>
using namespace std;
int main(int argc, char** argv) {
constexpr double earthRadius = 6371000.0;