Skip to content

Instantly share code, notes, and snippets.

[
"https://datuan.dev",
"https://google.com"
]

Chuẩn bị môi trường:

Sử dụng hệ điều hành Ubuntu 20.04 LTS. Sau đó cài đặt Docker, Git command line:

sudo apt-get update && sudo apt-get install -y git
curl -L get.docker.com | sudo bash && sudo apt install docker-compose -y

Git clone thư mục chứa code về máy chủ:

@tdtgit
tdtgit / udontknowhowmuchuspent.js
Last active May 21, 2024 03:45
Total spent on Uniqlo.com - Paste this code to your browser console and wait for minutes
// Function to format a number as currency
function formatCurrency(amount, currencyCode) {
return new Intl.NumberFormat('vi-VN', {
style: 'currency',
currency: currencyCode,
}).format(amount);
}
// Function to fetch data from a URL and handle errors
async function fetchData(url) {