Skip to content

Instantly share code, notes, and snippets.

@zdTang
zdTang / index.html
Created June 21, 2022 16:16
Simple Chart.js Pie Chart
<div id="canvas-container">
<button id="randomizeData">Randomize Data</button>
<button id="addDataset">Add Dataset</button>
<button id="removeDataset">Remove Dataset</button>
<canvas id="chart-area" />
</div>

Async and Await: Here be dragons

Overview

  • Background
  • Basics
  • Concepts
  • Examples

In the Beginning …

@zdTang
zdTang / Example.cpp
Created February 10, 2019 16:35 — forked from elbarsal/Example.cpp
reliability-and-flow-control
/*
Reliability and Flow Control Example
From "Networking for Game Programmers" - http://www.gaffer.org/networking-for-game-programmers
Author: Glenn Fiedler <gaffer@gaffer.org>
*/
#include <iostream>
#include <fstream>
#include <string>
#include <vector>