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
# Author: @vitovalov | |
# Description: Resize to a given size and automatically generate all android resource directories | |
# Usage: sh rescale_for_android.sh <dp size (mdpi)> <source path to original images> <output path for results>(optional) | |
if [ "$#" -le 1 ]; then | |
echo "\nUsage: sh rescale_for_android.sh <dp size (mdpi)> <source path to original images> <output path for results>(optional)\n" | |
exit 1 | |
fi | |
mdpisize=$1 | |
hdpisize=$(echo "$mdpisize * 1.5" | bc -l) |
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
git remote prune origin |
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
git checkout develop | |
git branch --merged | grep -v "*" | grep -v -e "[develop|master]" | xargs -n 1 git branch -d |
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
# Made by vitovalov@gmail.com | |
# Overwrites existing files and directories | |
# Creates missing directories | |
node generate strings.json 'android' | |
# no trailing slash | |
PROJECT_DIR=~/project/src/main/res | |
if [ ! -d "$PROJECT_DIR" ]; then | |
echo "Error: Please define PROJECT_DIR" |
NewerOlder