Skip to content

Instantly share code, notes, and snippets.

View tiendq's full-sized avatar
🌳
Code for a Living

Tien Do tiendq

🌳
Code for a Living
View GitHub Profile
// Testing EventEmitter and Promise, async/await
const EventEmitter = require('events');
const http = require('http');
const fs = require('fs').promises;
const myEmitter = new EventEmitter();
async function handler3() {
console.log('handler3: myevent was fired! test Promise');
let seedDate = Date.now();
let sampleDateStrings = [];
let sampleDateValues = [];
const TOTAL_SAMPLE = 1000000;
for (let i = 0; i < TOTAL_SAMPLE; ++i) {
sampleDateStrings.push((new Date(seedDate + i)).toISOString());
sampleDateValues.push(seedDate + i);
}

C++ Toolbox

Libraries

fmt A modern formatting library.

googletest Google Testing and Mocking Framework.

Building Sourcetrail

# Boost is installed in /usr/local with `b2 install`
# llvm-project is built

cd build
cmake -DCMAKE_BUILD_TYPE=Debug -DQt5_DIR=/Users/tiendo/Qt_5_12_3/5.12.3/clang_64/lib/cmake/Qt5 \
-DClang_DIR=/Users/tiendo/GitHub/clang-llvm/build/lib/cmake/clang -DBUILD_CXX_LANGUAGE_PACKAGE=ON ..
cmake --build .
@tiendq
tiendq / badge.json
Created October 19, 2022 02:20
Sample badge metadata for CryptoBadge Reboot
{
"textColor": "#000000",
"backgroundColor": "#ffffff"
}