Skip to content

Instantly share code, notes, and snippets.

@calcsam
Created December 20, 2016 11:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calcsam/3a7e090f392da3fe435e310dd0691ac5 to your computer and use it in GitHub Desktop.
Save calcsam/3a7e090f392da3fe435e310dd0691ac5 to your computer and use it in GitHub Desktop.
Simple shell script to measure app complexity over time
for i in {1..100}
do
a=$(find ./assets/ -name *.jsx | xargs wc -l | tail -n 1); b=$(git rev-parse HEAD); c=$(git show -s --format=%ct $b); echo $a $b $c >> ~/Documents/line-log.txt; git checkout HEAD~1
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment