Skip to content

Instantly share code, notes, and snippets.

View fxb's full-sized avatar

Felix Bruns fxb

View GitHub Profile
@fxb
fxb / gist:10548784
Created April 12, 2014 18:07
keybase.md
### Keybase proof
I hereby claim:
* I am fxb on github.
* I am felixbruns (https://keybase.io/felixbruns) on keybase.
* I have a public key whose fingerprint is 5E08 24FD 8D63 30CE 1A90 6544 D8FB 1ADA 76C7 D526
To claim this, I am signing this object:
@fxb
fxb / keybase.md
Last active August 16, 2016 11:55

Keybase proof

I hereby claim:

  • I am fxb on github.
  • I am felixbruns (https://keybase.io/felixbruns) on keybase.
  • I have a public key whose fingerprint is 6ABB F609 2C01 FAE2 DCD6 E9E9 0F35 2F05 8680 A9E4

To claim this, I am signing this object:

@fxb
fxb / main.cpp
Created January 11, 2016 14:59
std::random_shuffle / std::shuffle swap element with itself (move element to itself).
#include <algorithm>
#include <cassert>
#include <vector>
#include <random>
using namespace std;
struct Foo {
public:
Foo() {}