Skip to content

Instantly share code, notes, and snippets.

@brentalanmiller
brentalanmiller / boost_uuid_trunc.cpp
Created Aug 24, 2018
Boost UUID truncates long string UUIDs without error
View boost_uuid_trunc.cpp
#include <iostream>
#include <boost/uuid/uuid.hpp>
#include <boost/uuid/uuid_io.hpp>
#include <boost/uuid/string_generator.hpp>
int main() {
boost::uuids::string_generator gen;
boost::uuids::uuid u = {};
View keybase.md

Keybase proof

I hereby claim:

  • I am brentalanmiller on github.
  • I am brentalanmiller (https://keybase.io/brentalanmiller) on keybase.
  • I have a public key ASBCd93ZC2mjquVGtLLLV_oM6lt7KfdJwgm40ZkKAvCksgo

To claim this, I am signing this object:

View rinkeby.txt
0x3d6c8964cf545169dd0c31f463270e90eedd443b
View motor_deadlock.py
import json
import random
import motor
from tornado import gen, ioloop, web
@gen.coroutine
def get_data():
cur1 = _client.test.testcol1.find()
cur2 = _client.test.testcol2.find()
You can’t perform that action at this time.