Skip to content

Instantly share code, notes, and snippets.

View tandv592082's full-sized avatar
🎯
Focus on the task!

TΓ’n Dv tandv592082

🎯
Focus on the task!
  • Ha Noi, VN
  • 02:07 (UTC +07:00)
View GitHub Profile
const qna = [{"title":"ThΓ‘ch thα»©c cα»§a ngΓ’n hΓ ng khi chuyển Δ‘α»•i sα»‘ lΓ  gΓ¬?","ans":"2"},{"title":"Ý nΓ o KHΓ”NG phαΊ£i lΓ  xu hΖ°α»›ng cΓ΄ng nghệ trong chuyển Δ‘α»•i sα»‘ ngΓ nh ngΓ’n hΓ ng?","ans":"3"},{"title":"ĐÒu KHΓ”NG phαΊ£i lΓ  1 giai Δ‘oαΊ‘n trong chuyển Δ‘α»•i sα»‘ ngΓ’n hΓ ng?","ans":"4"},{"title":"Mα»™t α»©ng dα»₯ng phα»• biαΊΏn cα»§a trΓ­ tuệ nhΓ’n tαΊ‘o (AI) trong ngΓ’n hΓ ng lΓ  gΓ¬?","ans":"3"},{"title":"Fintech cΓ³ vai trΓ² gΓ¬ trong chuyển Δ‘α»•i sα»‘ ngΓ’n hΓ ng?","ans":"1"},{"title":"CΓ΄ng nghệ Blockchain giΓΊp ngΓ’n hΓ ng cαΊ£i thiện Δ‘iều gΓ¬?","ans":"4"},{"title":"Chuyển Δ‘α»•i sα»‘ trong ngΓ’n hΓ ng lΓ  gΓ¬?","ans":"2"},{"title":"CΓ΄ng nghệ nΓ o Δ‘Γ³ng vai trΓ² quan trọng trong chuyển Δ‘α»•i sα»‘ ngΓ’n hΓ ng?","ans":"4"},{"title":"MΓ‘y học (Machine Learning) cΓ³ thể giΓΊp ngΓ’n hΓ ng lΓ m gΓ¬?","ans":"4"},{"title":"ĐÒu lΓ  mα»™t biểu hiện cα»§a Chuyển Δ‘α»•i sα»‘ tαΊ‘i WBVN","ans":"4"},{"title":"Giao tiαΊΏp sα»‘ KHΓ”NG bao gα»“m hΓ¬nh thα»©c nΓ o sau Δ‘Γ’y?","ans":"3"},{"title":"Khi tham gia họp trα»±c tuyαΊΏn, hΓ nh vi nΓ o sau Δ‘Γ’y lΓ  phΓΉ hợp?","ans":"2"},{"title":"Cα»•ng Dα»‹ch vα»₯ cΓ΄ng Quα»‘c gia cΓ³ Δ‘α»‹a chỉ chΓ­nh thα»©c
@tandv592082
tandv592082 / video.html
Created May 19, 2024 13:57
Video player
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/vue.js"></script>
<style>
.playlist {
@tandv592082
tandv592082 / non_vi.js
Created August 10, 2023 02:24
Non Vietnamese
// This function converts the string to lowercase, then perform the conversion
function toLowerCaseNonAccentVietnamese(str) {
str = str.toLowerCase();
// We can also use this instead of from line 11 to line 17
// str = str.replace(/\u00E0|\u00E1|\u1EA1|\u1EA3|\u00E3|\u00E2|\u1EA7|\u1EA5|\u1EAD|\u1EA9|\u1EAB|\u0103|\u1EB1|\u1EAF|\u1EB7|\u1EB3|\u1EB5/g, "a");
// str = str.replace(/\u00E8|\u00E9|\u1EB9|\u1EBB|\u1EBD|\u00EA|\u1EC1|\u1EBF|\u1EC7|\u1EC3|\u1EC5/g, "e");
// str = str.replace(/\u00EC|\u00ED|\u1ECB|\u1EC9|\u0129/g, "i");
// str = str.replace(/\u00F2|\u00F3|\u1ECD|\u1ECF|\u00F5|\u00F4|\u1ED3|\u1ED1|\u1ED9|\u1ED5|\u1ED7|\u01A1|\u1EDD|\u1EDB|\u1EE3|\u1EDF|\u1EE1/g, "o");
// str = str.replace(/\u00F9|\u00FA|\u1EE5|\u1EE7|\u0169|\u01B0|\u1EEB|\u1EE9|\u1EF1|\u1EED|\u1EEF/g, "u");
// str = str.replace(/\u1EF3|\u00FD|\u1EF5|\u1EF7|\u1EF9/g, "y");
@tandv592082
tandv592082 / pre-commit
Created May 30, 2023 10:16
pre commit hook
#!/bin/sh
REPOS="$1"
TXN="$2"
MAVEN_HOME="/opt/apache-maven-3.6.3"
# Change to your project's directory
PROJECT_DIR="/home/tandv/Desktop/convention/demo"
# Change to the project directory
@tandv592082
tandv592082 / CalculationUtil.js
Last active May 10, 2023 08:59
Calculation Utility Function
const OPERATORS = {
plus: {
text: 'PhΓ©p cα»™ng',
value: '+'
},
minus: {
text: 'PhΓ©p trα»«',
value: '-'
},
divide: {
@tandv592082
tandv592082 / docker-installers.sh
Created April 24, 2023 04:16
Install docker ubuntu
#!bin/bash
# Update your system package index and install the required dependencies
sudo apt update
sudo apt install apt-transport-https ca-certificates curl software-properties-common
# Add the Docker GPG key and add the Docker repository to your system
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"
@tandv592082
tandv592082 / .bashrc
Created November 17, 2022 03:19
Git alias command
#############GIT ALIAS COMMAND###################
#Basic
alias gst='git status -s'
alias gcl='git clone'
alias gci='git commit'
alias gco='git checkout'
alias gbr='git branch'
alias gr='git reset'
alias gcp='git cherry-pick'
alias ggr='git grep -Ii'
@tandv592082
tandv592082 / custom-discord-status.js
Last active August 24, 2022 12:52
Custom discord status
['πŸ•›','πŸ•','πŸ•‘','πŸ•’','πŸ•“','πŸ•”','πŸ••','πŸ•–','πŸ•—','πŸ•˜','πŸ•™','πŸ•š'][((new Date()).getHours()%12)];
const getStatus = () => {
const day = new Date();
const time = day.getHours();
if(time >= 22 && time <= 23 || time >= 0 && time < 6 ) {
return 'πŸ›ŒπŸ»';
};
@tandv592082
tandv592082 / roslib-auto-reconnect.js
Last active August 31, 2022 08:12
Auto connect/reconnect to ROS Bridge Websocket with roslibjs
import ROSLIB from "roslib";
const connectToRosBridgeWs = (rosBridgeWSUrl = undefined, cb) => {
if (rosBridgeWSUrl) {
const ros = new ROSLIB.Ros();
try {
ros.connect(rosBridgeWSUrl);
if(typeof cb === 'function') {
@tandv592082
tandv592082 / πŸ“Š Weekly development breakdown
Last active March 28, 2023 01:33
πŸ“Š Weekly development breakdown
TypeScript 14 hrs 52 mins β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–‰β–‘β–‘ 90.0%
HTML 1 hr 1 min β–ˆβ–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 6.2%
JSON 16 mins β–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.7%
Bash 11 mins β–Žβ–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 1.2%
JavaScript 5 mins β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘β–‘ 0.5%