Skip to content

Instantly share code, notes, and snippets.

@coffeebite
coffeebite / trix_autolink_on_paste.coffee
Created February 14, 2016 03:47
Trix Autolink on paste
@coffeebite
coffeebite / remove-source.rb
Created October 22, 2011 23:18
Clear source from yard documentation
require "find"
Find.find(".") do |file|
if file.match(/\.html$/)
puts "Filtering #{file}"
content = File.read(file)
no_source_content = content.gsub(/<table class="source_code".*?<\/table>/m, "")
File.open(file, "w") { |io| io.write no_source_content }
end
end