Skip to content

Instantly share code, notes, and snippets.

View matheusdepaula's full-sized avatar

Matheus Pereira De Paula matheusdepaula

View GitHub Profile
@matheusdepaula
matheusdepaula / Commit Log
Created May 30, 2019 13:30
Commits Log from specific date
git log --no-merges --author="GIT_NAME" --after={2019-04-30} --name-only --pretty=format:"" | sort -u
@matheusdepaula
matheusdepaula / README.md
Last active April 22, 2019 18:06 — forked from lopspower/README.md
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.

All hex value from 100% to 0% alpha:

@matheusdepaula
matheusdepaula / dp To px
Last active March 26, 2019 23:57
Dp to Px Kotlin Code
private fun dpToPx(value: Float) =
TypedValue.applyDimension(TypedValue.COMPLEX_UNIT_DIP, value, resources.displayMetrics)
python -m SimpleHTTPServer
@matheusdepaula
matheusdepaula / RNfontWeights.js
Created December 18, 2018 00:21 — forked from knowbody/RNfontWeights.js
React Native Font Weight Cheatsheet iOS
{ fontWeight: '100' }, // Thin
{ fontWeight: '200' }, // Ultra Light
{ fontWeight: '300' }, // Light
{ fontWeight: '400' }, // Regular
{ fontWeight: '500' }, // Medium
{ fontWeight: '600' }, // Semibold
{ fontWeight: '700' }, // Bold
{ fontWeight: '800' }, // Heavy
{ fontWeight: '900' }, // Black
JSON.stringify(JSON_RESULT, null, 2) -> Copia o retorno do Json
@matheusdepaula
matheusdepaula / CocoaPods
Last active December 3, 2018 15:40
Cocoapods
INSTALAR UMA VERSÃO ESPECIFICA DO COCOAPODS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
pod --version -> Verificar versão
sudo gem install cocoapods -v 1.4.0 -> Instalar uma versão específica
gem uninstall cocoapods -v 1.2.2 -> Desinstalar versão específica
gem uninstall cocoapods -> Remover completamente o Cocoapods