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
@tiendq
tiendq / badge.json
Created October 19, 2022 02:20
Sample badge metadata for CryptoBadge Reboot
{
"textColor": "#000000",
"backgroundColor": "#ffffff"
}
@tiendq
tiendq / jquery.ui.datepicker-vi-VN.js
Created March 27, 2013 08:01
Vietnamese localization for the jQuery UI date picker plugin. Tested with jQuery UI 1.10.2
/* Vietnamese localization for the jQuery UI date picker plugin. */
/* Written by Tien Do (tiendq@gmail.com) */
jQuery(function ($)
{
$.datepicker.regional["vi-VN"] =
{
closeText: "Đóng",
prevText: "Trước",
nextText: "Sau",

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 .

C++ Toolbox

Libraries

fmt A modern formatting library.

googletest Google Testing and Mocking Framework.

@tiendq
tiendq / VSCode
Last active August 8, 2020 09:29
VSCode.settings.json
/*
Atom One Dark Theme
C/C++
CMake
Debugger for Chrome
DotENV
ESLint
Markdown All in One
vscode-icons
*/
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);
}
// 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');
// https://davidwalsh.name/essential-javascript-functions
let getAbsoluteUrl = (function () {
let a;
return function (url) {
if (!a)
a = document.createElement('a');
a.href = url;
return a.href;
@tiendq
tiendq / install-cmake.md
Created April 10, 2019 05:08
Install the latest CMake on Ubuntu