This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'test_helper' | |
module Kindlemd | |
Chapter = Struct.new(:position, :nxt, :previous) do | |
def self.normalize(chapters) | |
chapters = chapters.map { |h| new(h[:position]) }.sort_by(&:position) | |
chapters.each_cons(2) { |previous, nxt| | |
previous.nxt = nxt | |
nxt.previous = previous |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require "bundler/inline" | |
gemfile do | |
gem "rubyflare" | |
gem "route53" | |
end | |
require "yaml" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(setq gnus-select-method | |
'(nnimap "wimdu" | |
(nnimap-address "imap.gmail.com") | |
(nnimap-server-port 993) | |
(nnimap-stream ssl) | |
(nnir-search-engine imap))) | |
(add-to-list 'gnus-secondary-select-methods | |
'(nnimap "gmail" | |
(nnimap-address "imap.gmail.com") | |
(nnimap-server-port 993) |