Skip to content

Instantly share code, notes, and snippets.

module Jekyll
class ArchiveGenerator < Generator
safe true
def generate(site)
collate_by_month(site.posts).each do |month, posts|
page = ArchivePage.new(site, month, posts)
site.pages << page
end
end
@nlindley
nlindley / launch_rails_app.applescript
Created August 22, 2012 18:45
Quick and dirty AppleScript to set up my terminal windows the way I like for a Rails project.
tell application "Finder"
set FolderPath to (choose folder default location alias ((home as text) & "RailsApps"))
set PosixPath to POSIX path of FolderPath
end tell
tell application "Terminal"
activate