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 {isUndefined} from 'lodash'; | |
import {useEffect, useState, useCallback} from 'react'; | |
import {Dimensions, ScaledSize} from 'react-native'; | |
const dimensions = Dimensions.get('window'); | |
export type Orientation = 'LANDSCAPE' | 'PORTRAIT'; | |
const getOrientation = ({ | |
width, |
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
# custom download git folder function/command | |
git-grab() { | |
if [ $# -lt 3 ]; then | |
# Display Help | |
echo "This function will download specific folder/directory of a github repo" | |
echo | |
echo "Syntax: git-grab <user-name> <repo-name> <directory> # download from master branch" | |
echo "Syntax: git-grab <user-name> <repo-name> <branch> <directory> # download from a specific branch" | |
echo | |
elif [ $# -eq 3 ]; then |