Skip to content

Instantly share code, notes, and snippets.

View lordpuza's full-sized avatar

Powsin lordpuza

View GitHub Profile
@lordpuza
lordpuza / Font-Awesome-Cheatsheet-to-CSV.js
Last active September 10, 2015 13:52 — forked from jspinella/Font-Awesome-Cheatsheet-to-CSV.js
Provides entire Font Awesome Cheatsheet in CSV format - just paste into your browser's Js console while on the Font Awesome Cheatsheet page (http://fortawesome.github.io/Font-Awesome/cheatsheet/)
// Font Awesome Cheatsheet to CSV
var awesomeOutput = "";
$(".col-md-4.col-sm-6.col-lg-3").each(function (i, element) { // selects a Font Awesome cheatsheet item
// Unicode value (i.e. "&#xf166")
var unicode = $(element).children(".muted").text(); // the unicode value is in a child span element with class "muted", this grabs it and "removes" the surrounding [brackets]
// CSS class name (i.e. "fa-youtube-square")