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
$ export PATH=/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin:$PATH |
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
sr = (sr >> 1) ^ (-(sr & 1) & 0xd0000001) |
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 | |
fb=`basename "$1" .pdf` | |
if [ ! -f "$fb.pdf" ]; then | |
echo "$fb.pdf not found" | |
exit 1 | |
fi | |
mkdir "$fb" | |
gm convert -verbose -density 300x300 -trim -bordercolor white -border 10x10 -resize 600x800 -quality 90 +adjoin "$fb.pdf" "$fb/%04d.jpg" |