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
#!/bin/sh | |
print_usage() { | |
echo "usage: compress_video <input_file>" | |
echo "supported formats: mp4, webm, mkv, mov, avi, flv" | |
} | |
get_extension() { | |
f="${1##*/}" | |
case "$f" in |
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 React, { Component } from 'react' | |
import { Animated, Dimensions, Easing, PanResponder, SafeAreaView, StyleSheet, Text, View } from 'react-native' | |
import { connect } from 'react-redux' | |
import FastImage from 'react-native-fast-image' | |
// Actions & Selectors | |
import { setCurrComp, setNextComp, setPrevComp } from '../actions' | |
import { getCurrComp, getNextComp, getPrevComp } from '../selectors/comps' | |
import { getActiveProject } from '../selectors/projects' |
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 { StatusMessage } from '../constants'; | |
import { isObject } from '../utils/isObject'; | |
import type { RequestResponse } from '../types'; | |
export type RequestParams = { | |
body?: BodyInit; | |
credentials?: RequestCredentials; | |
headers?: HeadersInit; | |
integrity?: string; |
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 { useCallback, useMemo, useState } from 'react'; | |
import { FetchStatus } from '../enums'; | |
export function useFetchStatus() { | |
const [errorCode, setErrorCode] = useState<number | null>(null); | |
const [errorMessage, setErrorMessage] = useState<string>(''); | |
const [status, setStatus] = useState<FetchStatus>(FetchStatus.UNFETCHED); | |
const fail = useCallback((message: string, code?: number) => { |