Skip to content

Instantly share code, notes, and snippets.

View G33N's full-sized avatar
🎯
Focusing

Celiz Matias G33N

🎯
Focusing
View GitHub Profile
#!/bin/bash
# Set the directory path to rename images
directory_path="/path/to/images"
# Loop through all image files in the directory and its subdirectories
find "$directory_path" -type f \( -iname "*.jpg" -o -iname "*.jpeg" -o -iname "*.png" -o -iname "*.gif" \) | while read file; do
# Generate a UUIDv4 string
uuid=$(uuidgen | tr '[:upper:]' '[:lower:]')
import {isIphoneX} from 'react-native-iphone-x-helper';
import {Platform, StatusBar, Dimensions} from 'react-native';
const {height, width} = Dimensions.get('window');
const standardLength = width > height ? width : height;
const offset =
width > height ? 0 : Platform.OS === 'ios' ? 78 : StatusBar.currentHeight; // iPhone X style SafeAreaView size in portrait
const deviceHeight =
isIphoneX() || Platform.OS === 'android'