Skip to content

Instantly share code, notes, and snippets.

View soumyakantiroychowdhury's full-sized avatar

Soumya Kanti Roy chowdhury soumyakantiroychowdhury

View GitHub Profile
#include <iostream>
#include <tuple>
auto GoLikeFunc() {
return std::tuple(100, true);
}
int main() {
auto [val, status] = GoLikeFunc();
if (status)
@soumyakantiroychowdhury
soumyakantiroychowdhury / free_email_provider_domains.txt
Created May 24, 2018 07:06 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
@soumyakantiroychowdhury
soumyakantiroychowdhury / free_email_provider_domains.txt
Created May 24, 2018 07:06 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
150ml.com
15meg4free.com
163.com
#include <iostream>
#include <thread>
#include <nghttp2/asio_http2_server.h>
using namespace nghttp2::asio_http2;
using namespace nghttp2::asio_http2::server;
int main(int argc, char *argv[]) {
std::thread::id this_id = std::this_thread::get_id();
std::cout << "Main thread running at " << this_id << std::endl;
@soumyakantiroychowdhury
soumyakantiroychowdhury / glog-performance-test.cpp
Last active March 5, 2018 01:16
Logging from multiple threads using glog
#include <glog/logging.h>
#include <boost/thread.hpp>
#include <boost/chrono.hpp>
#include <iostream>
void logger()
{
int num = 1000000;
auto tid = boost::this_thread::get_id();
auto before = boost::chrono::system_clock::now();