Skip to content

Instantly share code, notes, and snippets.

View sss's full-sized avatar

SASAKI Suguru sss

  • Kyoto, Japan
View GitHub Profile
@sss
sss / draft.rb
Created June 23, 2011 02:53 — forked from no6v/draft.rb
module Earthquake::Input
def drafts
@drafts ||= []
end
end
Earthquake.init do
d = drafts
subcommands = {
apply: ->(index){Readline::HISTORY.push(d.at(Integer(index)))},