Skip to content

Instantly share code, notes, and snippets.

Jay El-Kaake jayelkaake

Block or report user

Report or block jayelkaake

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@lpsBetty
lpsBetty / trix_editor.css
Last active May 26, 2019
Trix Editor Toolbar Icons with FontAwesome
View trix_editor.css
trix-toolbar .button_group button::before {
background-image: none !important;
font-family: 'FontAwesome';
font-size: 12px;
line-height: 28px;
}
trix-toolbar .button_group button.bold:before {
content: '\f032';
}
View gist:606c6b6b07c8e536dcd7
Things Nick Hates
0) Ann Kitchen
1) non-shallow tests
2) `if !`
3) ants
4) rock stars
5) sunlight off porch windows when drinking coffee
6) people who feed the meter
7) using floats for money
@albertodebortoli
albertodebortoli / generate_toc.rb
Last active Aug 2, 2019
Generate Markdown TOC
View generate_toc.rb
#!/usr/bin/env ruby
File.open("your_file.md", 'r') do |f|
f.each_line do |line|
forbidden_words = ['Table of contents', 'define', 'pragma']
next if !line.start_with?("#") || forbidden_words.any? { |w| line =~ /#{w}/ }
title = line.gsub("#", "").strip
href = title.gsub(" ", "-").downcase
puts " " * (line.count("#")-1) + "* [#{title}](\##{href})"
You can’t perform that action at this time.