Skip to content

Instantly share code, notes, and snippets.

@defli
defli / rake_new_post.rb
Last active August 29, 2015 14:16
Rake new_post for Jekyll based on octopress new post
require "stringex" # gem install stringex
posts_dir = "_posts" # directory for blog files
new_post_ext = "md"
#extented by can: open editor after creating post, ex. Sublime Text, ia writer
editor = "Ia Writer"
def get_stdin(message)
print message
STDIN.gets.chomp
end