Skip to content

Instantly share code, notes, and snippets.

View tientq64's full-sized avatar
🧋
Chill with code

Tran Quang Tien tientq64

🧋
Chill with code
View GitHub Profile
{
"id": "a1d38f58-4509-4aea-935f-81cbbd6b3036",
"schemaVersion": "1",
"name": "okino-city-in-colors-vs-void-even-cropped.png",
"opacity": 1,
"image": {
"dataUrl": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAOYAAAC5CAYAAAA8skOZAAAQAElEQVR4AezdC7QsV1kn8H1AhSABBESQ8HBADAqJCWE0D8gwQlB8rCgQA+oQQpRIeKjg8qLoxAcDOEQlJBjGAGHUgBGQtVQUfAZvUBeQyAVJwGQEhCFEQAhvAc/Ur+75znynblV3dXd1n+5z+6777++xv71r167617d3VXWfW5T1v4WMwNGnv3xzIRvaxY3c+K4nDLGP2tjU1hduOLmW1S7xVWLHf75NMbuBq1573GDbr/Zqx36wZybmFVdcoYNVW+v/XSOAlNe9/uyNrvK1f8cI1ON01we8svzb5+5bvuaI60tFUgHOMwhd3Mat7nNVHce5yrAfAfsxMzHPOOMMA6StNdYjMNQIOKc2kNPJipxVVswEzdup457x41/Ivrnqv/2qz5aTH31NvY1L/+e/1XKWD/vWxNTEXGfKWQ7Fum7PEUDQgpw5e176K8epHtmTvnHJm95WZ8+3/cNn2XMDUp7znIOktJHzLnl33T/6kJiamOtMOeRhaG1r7Tw4AshZZ0UEveE9B8qPPO42RYapprib5552AoJunnLKKeRGlclqgsqgQ5FUO9/xhI2iTV36p995UoFqnVnLi154XlGuf4grZlZMTcxZN7yuvx6BCUegJmhFvDpDPet5X1GQ9Pxf+5Z6invWd35Gc8i5+XNP+oFyh+MfXk83kQWhkEvWFTQOYk1Rn3yfGwr89ktvWV5x7jeVZ/63Y8v971/KTUdcXUM79OO+4S11ObJ+4YNfqOtMuk1tZayJmUdjra/CCNQE1VEktQ4F
@tientq64
tientq64 / gist:da720f2166e917fc98af0c5d80c9373f
Created June 20, 2025 04:01
Select all items in the last row when using repeat(auto-fit/fill) with Grid.
https://codepen.io/kevinpowell/pen/YPXJwew
AG: An Giang
BD: Bình Dương
BE: Bến Tre
BG: Bắc Giang
BI: Bình Định
BK: Bắc Kạn
BL: Bạc Liêu
BN: Bắc Ninh
BP: Bình Phước
@tientq64
tientq64 / favicon-url.txt
Created May 24, 2024 09:47
Lấy favicon một trang web nào đó.
https://www.google.com/s2/favicons?sz=64&domain=diep.io
@tientq64
tientq64 / no-fullscreen-dropdown.js
Last active May 24, 2024 09:51
Real fullscreen instead of fullscreen dropdown, very annoying when playing games. Useful for Microsoft Edge. Press Shift+F11 to toggle fullscreen.
// ==UserScript==
// @name No Fullscreen Dropdown
// @namespace http://tampermonkey.net/
// @version 0.1.0
// @description Real fullscreen instead of fullscreen dropdown, very annoying when playing games. Useful for Microsoft Edge. Press Shift+F11 to toggle fullscreen.
// @author https://github.com/tientq64
// @match https://*
// @license MIT
// @grant none
// ==/UserScript==
@tientq64
tientq64 / gist:b4497616b07e5e6298b499aa5f73d6de
Created March 11, 2024 13:29
Disabled HTML input autocomplete.
"aria-autocomplete": "both"
Mỹ nhân trong thiên hạ đều tầm thường, chỉ có JavaScript mới làm ta thích thú 😂
(6 * 9) + (6 + 9) == 69

[game] Copycat

Little update, I've updated the visuals during the translation and cleaning of the code :) Made with Diorama

A Pen by Tibo on CodePen.

License.

@tientq64
tientq64 / add.js
Last active October 22, 2023 14:57
Add 2 numbers, fix floating point problem, example: 0.1 + 0.2, not support Node.js :Đ
function add(a, b) {
if (a === 0) return b;
if (b === 0) return a;
let sign = 1;
if (a < 0 && b < 0) {
a = -a;
b = -b;
sign = -1;
}
if (b < 0) {