Skip to content

Instantly share code, notes, and snippets.

View filipebezerra's full-sized avatar
💭
Ich bin Filipe. Ich komme aus Brasilien. Ich wohne in Goiânia.

Filipe Bezerra filipebezerra

💭
Ich bin Filipe. Ich komme aus Brasilien. Ich wohne in Goiânia.
View GitHub Profile
@borgstrom
borgstrom / human_time_duration.py
Created May 9, 2018 04:00
Python: Convert seconds (duration) to human readable string
TIME_DURATION_UNITS = (
('week', 60*60*24*7),
('day', 60*60*24),
('hour', 60*60),
('min', 60),
('sec', 1)
)
def human_time_duration(seconds):
@lopspower
lopspower / README.md
Last active May 3, 2024 13:26
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store