Skip to content

Instantly share code, notes, and snippets.

View italomlp's full-sized avatar
🏠
Working from home

Italo Menezes italomlp

🏠
Working from home
View GitHub Profile
@italomlp
italomlp / display-names.js
Last active July 19, 2022 23:15
Facebook API Timezones - This is a parsed list of the Facebook available timezones with their ids and some helpful attributes. The final data is on the file `facebook-timezones.json`. There is also the script used to generate this data.
/**
* Values gotten from:
* https://github.com/mayple/facebook_timezones/blob/master/facebook_timezones/__init__.py
*
* I needed to put 4 missing values from version 14.0 of Facebook API in the list
*/
export const displayNames = {
0: "Unknown",
1: "America/Los_Angeles",
@italomlp
italomlp / cloudSettings
Last active May 10, 2021 15:06
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-05-10T15:05:56.202Z","extensionVersion":"v3.4.3"}
@italomlp
italomlp / notes.md
Last active July 24, 2019 16:39
Configs to make in an existing React Native project to migrate it to Typescript

I'M NOT RESPONSIBLE FOR WHAT YOU DO IN YOUR PROJECT. DO IT AT YOUR OWN RISK

These configs are based in setup.js and package.json from React Native Template Typescript.

  • If you starting your project now, I recommend to use the typescript template, with the following command:

    react-native init MyApp --template typescript

  • Keep the root index.js file with .js extension.

  • If you use PropTypes before the migration, you can delete its package running: