Skip to content

Instantly share code, notes, and snippets.

View truongduyng's full-sized avatar
🎯
Focusing is a key value

Duy Nguyen truongduyng

🎯
Focusing is a key value
View GitHub Profile
import math
import decimal
def pretty_print(value):
value = float(value)
bias = 0
intdigits = math.floor(math.log10(value))
divisor = 0
if intdigits >= 3:
divisor = intdigits - (intdigits%3)
{
"binary_file_patterns":
[
"*.jpg",
"*.jpeg",
"*.png",
"*.gif",
"*.ttf",
"*.tga",
"*.dds",