Skip to content

Instantly share code, notes, and snippets.

@mfo
Last active April 30, 2016 08:10
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 mfo/5c44a976d572c25060c4715f87d2a3cd to your computer and use it in GitHub Desktop.
Save mfo/5c44a976d572c25060c4715f87d2a3cd to your computer and use it in GitHub Desktop.
wip: extract all uniq font awesome
grep -r "fa-" \
--include=\*.{rb,haml,jst,js} \
--exclude=\*xregexp\* \
--exclude-dir={public,.//app/assets/javascripts/i18n,.//app/assets/javascripts/i18n/web} \
./ \
> icons.txt
ruby -e 'File.read("./icons.txt").scan(/(fa(?:-\w+)+)/).flatten.uniq'
#TODO: custom build via font fontello_rails_converter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment