Total lines of code change needed to make the @joindin API work on PHP7: zero
— Lorna Mitchell (@lornajane) May 14, 2015
Author Archives:
Count Changed Lines in Git
git log --numstat
will show you how many lines were added (first column) and removed (next column) per file, kind of a more scientific version of the --stat
switch. And if you’re thinking of scripting this to gather stats, try it with --oneline
as well, it’s easier to parse.
Scaling and Sizing with PDFJam
pdfjam --suffix converted --papersize '{1920px,1080px}' --scale 0.4 --trim "-6cm -1cm 13cm 8cm" slides.pdf
The --suffix
is instead of giving an output filename, whatever you feed in ends up with the suffix in its filename. This is very handy because I use this command in a script and only need to pass in one variable. The --papersize
isn’t a switch I have used before either but you can set exact sizes for the final output which is nice. The --trim
switch can also be used to set --clip=true
to remove the trimmed space from the document if desired.
I find PDFJam a very handy tool but with not nearly enough blog posts and code snippets around, so I’m dropping my command for future reference (yours as well as mine!).
Vimdiff and Vim to Compare Files
Vivosmart Smart Watch
Continue reading