Skip to content

Instantly share code, notes, and snippets.

#include <iostream>
using namespace std;
const int MAX = 100;
void bubSort(int a[], int size)
{
bool run = true;
while (run) {
run = false;
@rvong
rvong / gist:9969713
Created April 4, 2014 07:19
QueryPerformanceCounter
#include <windows.h>
#include <iostream>
using namespace std;
double PCFreq = 0.0;
__int64 CounterStart = 0;
void StartCounter()
{
LARGE_INTEGER li;

Keybase proof

I hereby claim:

  • I am rvong on github.
  • I am richvong (https://keybase.io/richvong) on keybase.
  • I have a public key whose fingerprint is 9387 C3D7 8EC4 CEBB 4C53 D2DD E4FB 4794 6AFC 673C

To claim this, I am signing this object:

@rvong
rvong / notes_on_testing.md
Created March 15, 2018 23:44 — forked from ikusalic/notes_on_testing.md
Exploration: how to do unit testing

Testing notes

Uncle Bob: Test First

Source: http://blog.8thlight.com/uncle-bob/2013/09/23/Test-first.html

  • tests are specs for the system and are more important than the system itself
  • (Tests should be) short, well factored, and well named. They ought to read like specifications; because they are specifications
  • (Goal:) trust your test suite to the extent that, if it passes, you know you
@rvong
rvong / about.md
Created March 16, 2018 01:01 — forked from jasonrudolph/about.md
Programming Achievements: How to Level Up as a Developer
@rvong
rvong / iterm2-solarized.md
Created April 20, 2019 02:12 — forked from kevin-smets/iterm2-solarized.md
iTerm2 + Oh My Zsh + Solarized color scheme + Meslo powerline font + [Powerlevel9k] - (macOS)

Default

Default

Powerlevel9k

Powerlevel9k