Skip to content

Instantly share code, notes, and snippets.

@rwbaker
rwbaker / Importing posts from Wordpress into Jekyll.rb
Created November 15, 2011 17:42 — forked from vitobotta/Importing posts from Wordpress into Jekyll.rb
The script I used to import posts from my Wordpress blog into a new Jekyll one.
%w(rubygems sequel fileutils yaml active_support/inflector).each{|g| require g}
require File.join(File.dirname(__FILE__), "downmark_it")
module WordPress
def self.import(database, user, password, table_prefix = "wp", host = 'localhost')
db = Sequel.mysql(database, :user => user, :password => password, :host => host, :encoding => 'utf8')
%w(_posts _drafts images/posts/featured).each{|folder| FileUtils.mkdir_p folder}
@rwbaker
rwbaker / HTML5_reset.css
Created June 21, 2010 14:57 — forked from nathansmith/html_reset.css
Nathan Smith's HTML5 reset merged with Eric Meyer's reset.
a,
abbr,
acronym,
address,
applet,
article,
aside,
audio,
b,
big,