This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"scripts": { | |
"test": "jest", | |
"test:watch": "jest --watch", | |
"test:coverage": "jest --coverage" | |
}, | |
"jest": { | |
"setupFiles": ["./test/jestsetup.js"], | |
"snapshotSerializers": [ | |
"<rootDir>/node_modules/enzyme-to-json/serializer" | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express from 'express'; | |
import uuid from 'uuid'; | |
import AWS from 'aws-sdk'; | |
import dotenv from 'dotenv' | |
dotenv.config(); | |
import User from '../models/user'; | |
let s3 = new AWS.S3(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import i18n from 'react-native-i18n' | |
import Exponent from 'exponent' | |
import es from '../locales/es' | |
import en from '../locales/en' | |
i18n.fallbacks = true | |
const getLanguage = async () => { | |
i18n.locale = (await Exponent.Util.getCurrentLocaleAsync()).substring(0,2) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function CustomForm ({handleSubmit}) { | |
let inputElement | |
return ( | |
<form onSubmit={() => handleSubmit(inputElement.value)}> | |
<input | |
type='text' | |
ref={(input) => inputElement = input} /> | |
<button type='submit'>Submit</button> | |
</form> | |
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lsof -i:3000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<Menu widths={3}> | |
<Menu.Item name="" /> | |
<Menu.Item><img src={logo} /></Menu.Item> | |
<Menu.Item name="Hello" /> | |
</Menu> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
root = true | |
[*] | |
indent_style = space | |
indent_size = 2 | |
end_of_line = lf | |
charset = utf-8 | |
trim_trailing_whitespace = true | |
insert_final_newline = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontSize": 15, | |
"editor.fontFamily": "Consolas", | |
"editor.tabSize": 2, | |
"editor.wordWrapColumn": 80, | |
"editor.fontLigatures": true, | |
"editor.snippetSuggestions": "top", | |
"editor.minimap.enabled": true, | |
"files.exclude": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 TOP PACKAGES | |
1. Path Intellisense | |
2. Project Manager | |
3. Auto Rename Tag | |
4. JavaScript (ES6) code snippets | |
5. Output Colorizer | |
You need to have |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"now-build": "echo 'not building'" |