Full description: https://medium.com/@thibaut.deveraux/yet-another-git-and-git-flow-cheatsheet-c1e721af3417
git checkout -b feature_branch dev
| version: '3' | |
| networks: | |
| # enable connection with Traefik | |
| traefik: | |
| external: true | |
| # network for the app | |
| backend: | |
| services: |
| # Start With TypeScript | |
| npx react-native init AwesomeTSProject --template react-native-template-typescript | |
| # Run the app locally | |
| npx react-native start | |
| npx react-native run-android | |
| npx react-native run-ios |
| import React, { FC } from 'react' | |
| import { StyleSheet, Text, View } from 'react-native' | |
| interface Props { | |
| /** prop1 documentation */ | |
| prop1: string | |
| } | |
| /** | |
| * Component description |
| import React, { FC, useEffect, useState } from 'react' | |
| import { StyleSheet, Text, TouchableOpacity, View } from 'react-native' | |
| interface Props { | |
| /** prop documentation */ | |
| restart?: number | |
| } | |
| /** | |
| * Component description |
| import React, { createContext, FC } from 'react' | |
| import useCustomHook, { UseCustomHookType, initialCustomHookContext } from './useCustomHook' | |
| // Props type | |
| interface Props { | |
| /** Children components place, shall not be needed here with FC type, yet eslint requires it... */ | |
| children: React.ReactNode | |
| } | |
| // Create the context objects |
| import React, { useEffect, useState, useContext, FC } from 'react' | |
| import { StyleSheet, SafeAreaView, FlatList } from 'react-native' | |
| import { StackNavigationProp } from '@react-navigation/stack' | |
| import { RouteProp } from '@react-navigation/native' | |
| import { HomeScreenStackParamList } from '../navigation/navigationTypes' | |
| interface Props { | |
| navigation: StackNavigationProp<ScreenNameStackParamList, 'Home'> | |
| route: RouteProp<ScreenNameStackParamList, 'Home'> | |
| } |
Full description: https://medium.com/@thibaut.deveraux/yet-another-git-and-git-flow-cheatsheet-c1e721af3417
git checkout -b feature_branch dev
| sudo apt-get update -y | |
| sudo apt-get install -y python3-pip git-all awscli | |
| sudo pip3 install flask jupyter boto3 | |
| sudo pip3 install --upgrade awscli | |
| cd /home/ubuntu | |
| jupyter notebook --ip=0.0.0.0 --port=8888 --allow-root |
| library(tidyverse) | |
| library(textshape) | |
| library(lexicon) | |
| library(textclean) | |
| library(hunspell) | |
| library(qdapRegex) | |
| #' Detect and correct misspells in a string | |
| #' @param x string. | |
| #' @return corrected string |
scp -r [email protected]:/home/thibaut/project backups/project
nohup python myscript.py &