This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## To add extract the open graph things | |
require 'optparse' | |
require 'metainspector' | |
def note(title, url, tags, content, desc = nil) | |
return %Q|--- | |
title: #{title} | |
desc: #{desc if !desc.to_s.empty?} | |
#{"source: #{url if !url.to_s.empty?}"} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'optparse' | |
require 'find' | |
def note(path, files) | |
return %Q|--- | |
title: #{path} Index | |
desc: '' | |
updated: #{Time.now.to_i * 1000} | |
created: #{Time.now.to_i * 1000} | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# config/initializers/will_paginate.rb | |
module WillPaginate | |
module ActionView | |
def will_paginate(collection = nil, options = {}) | |
options[:renderer] ||= BootstrapLinkRenderer | |
super.try :html_safe | |
end | |
class BootstrapLinkRenderer < LinkRenderer |