Skip to content

Instantly share code, notes, and snippets.

@cbfrance
Created May 23, 2017 21:46
Show Gist options
  • Save cbfrance/f9bc7412865dd4cdb067a69f7c29ccf6 to your computer and use it in GitHub Desktop.
Save cbfrance/f9bc7412865dd4cdb067a69f7c29ccf6 to your computer and use it in GitHub Desktop.
histogram of common rules in a set of stylesheets
brew install distribution
cat src/app/**/*css | sed 's/^[ ]*//' | sed 's/[ ]*$//' | sed 's/{//' | sed 's/}//' | sed 's/[//]//' | sed 's/[/]//' | sed 's/\*//' | sort -nr | uniq -c | sort -n | distribution -g=vk --height=200 --color --width=100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment