dotfiles

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

commit c822d869c24d0c61952880b897821ce522074670
parent 93d6735f902c01ec95fe678befd62142fe5e7c71
Author: Alex Balgavy <alex@balgavy.eu>
Date:   Sun, 23 Jun 2024 23:59:03 +0200

koreader-parse-notes

Diffstat:
Ascripts/koreader-parse-notes.rb | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/scripts/koreader-parse-notes.rb b/scripts/koreader-parse-notes.rb @@ -0,0 +1,5 @@ +#!/usr/bin/env ruby +require 'nokogiri' +contents = Nokogiri::HTML.fragment ARGF.read +paragraphs = contents.children.reject(&:comment?).map { |line| line.text.strip } +print paragraphs.join "\n\n"