Skip to content

Instantly share code, notes, and snippets.

View douglira's full-sized avatar
🤓
Focused on my career and always studying

Douglas Lira douglira

🤓
Focused on my career and always studying
  • IFOOD.COM AGENCIA DE RESTAURANTES ONLINE S.A.
  • Mogi das Cruzes, SP - Brasil
View GitHub Profile
@douglira
douglira / rn-font-scale.js
Last active February 25, 2021 17:32
React Native normalize font scale
import { Dimensions, Platform, PixelRatio } from 'react-native';
const {
width: SCREEN_WIDTH,
height: SCREEN_HEIGHT,
} = Dimensions.get('window');
// based on iphone 5s's scale
const scale = SCREEN_WIDTH / 320;
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
@douglira
douglira / .babelrc
Last active December 18, 2018 20:29
React native eslint config
{
"presets": ["module:metro-react-native-babel-preset"],
"plugins": [
["babel-plugin-root-import", {
"rootPathSuffix": "src",
}]
],
"env": {
"production": {
"plugins": [
@douglira
douglira / History|-109d7310|entries.json
Last active August 11, 2022 13:13
Visual Studio Code Settings Sync Gist
{"version":1,"resource":"file:///home/douglas/workspace/alura/golang/4-api-rest/frontend/src/components/Personalidades.js","entries":[{"id":"3xc4.js","timestamp":1652371265039},{"id":"78dq.js","timestamp":1652371378777},{"id":"7iWs.js","timestamp":1652372875403}]}