Skip to content

Instantly share code, notes, and snippets.

View cassiompf's full-sized avatar
🏡
Working from home

Cássio Fontoura cassiompf

🏡
Working from home
View GitHub Profile
@lopspower
lopspower / README.md
Last active September 27, 2024 09:33
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

@joshmosh
joshmosh / 01.md
Last active September 17, 2021 18:32
Using binary UUIDs with Ruby (on Rails) and MySQL

Binary UUIDs are much more efficient in space and lookups compared to VARCHAR or CHAR UUIDs. To better exmplain how they work I have a few examples of raw sql and how that translates in a programming language like Ruby using the UUID tools module. All examples will reference the following database table and schema.

Table name: users

 id          :uuid(16)
 first_name  :string(255)
 last_name :string(255)
@staltz
staltz / introrx.md
Last active September 25, 2024 09:04
The introduction to Reactive Programming you've been missing