dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

koreader-parse-notes.rb (194B)


      1 #!/usr/bin/env ruby
      2 require 'nokogiri'
      3 contents = Nokogiri::HTML.fragment ARGF.read
      4 paragraphs = contents.children.reject(&:comment?).map { |line| line.text.strip }
      5 print paragraphs.join "\n\n"