scp -r [email protected]:/home/thibaut/project backups/project
nohup python myscript.py &
clean_corpus = function(x){ | |
# Replace redundant white spaces and line jumps such as \n | |
x = replace_white(x) | |
# Replace or remove non ASCII characters | |
x = replace_non_ascii(x) | |
# Replace contractions such as "you're" by expanded such as "you are" | |
x = replace_contraction(x) | |
# Replace elongations. Ex: "heyyyyy" is replaced by "Hey" | |
x = replace_word_elongation(x) | |
# Replace emoji by plain text |
scp -r [email protected]:/home/thibaut/project backups/project
nohup python myscript.py &
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 |
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 |
Full description: https://medium.com/@thibaut.deveraux/yet-another-git-and-git-flow-cheatsheet-c1e721af3417
git checkout -b feature_branch dev
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'> | |
} |
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, { FC, useEffect, useState } from 'react' | |
import { StyleSheet, Text, TouchableOpacity, View } from 'react-native' | |
interface Props { | |
/** prop documentation */ | |
restart?: number | |
} | |
/** | |
* Component description |
import React, { FC } from 'react' | |
import { StyleSheet, Text, View } from 'react-native' | |
interface Props { | |
/** prop1 documentation */ | |
prop1: string | |
} | |
/** | |
* Component description |
# 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 |