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
# save class annotation to the clipboard | |
/^@MediumTest/ { | |
h | |
d | |
} | |
/^@LargeTest/ { | |
h | |
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
mkdir -p kindle/ | |
for file in *jpg; do | |
name="kindle/$(echo $file |sed "s/\.jpg\$//").png" | |
convert -trim -fuzz 20% "$file" "${name}" && \ | |
convert "${name}" -adaptive-resize 600x800 -quality 100 -gravity center -extent 600x800^ "${name}" | |
done |
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
for i in *jpg; do | |
name=$(echo $i |awk -F_ '{print $4}' |sed 's/\.jpg$//') | |
convert -size 600x800 xc:white \ | |
$i -type Grayscale -resize 600x800 -gravity center -extent 600x800^ \ | |
~/Downloads/Kindle\ Stamp/stamp.png -flatten kindle/$name.jpg | |
done |
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/bash | |
chr() { | |
printf \\$(printf "%03o" $1) | |
} | |
declare -a data | |
data=( | |
'#!/bin/bash' | |
'' |