2009-09-06から1日間の記事一覧

prawn:Prawn::Document::Destinations#dest_fit_vertically

#!/usr/bin/env ruby require "prawn" pdf = Prawn::Document.new pdf.link_annotation([0, 100, 100, 150], :Dest => pdf.dest_fit_vertically(200)) pdf.render_file(File.basename($0, ".rb") + ".pdf") ?

Manual:Resource Management

まんま >>> from lepl import * >>> matches = (Literal('*')[:,...][2] & Eos()).match('*' * 4) >>> list(matches) [(['****'], ''), (['***', '*'], ''), (['**', '**'], ''), (['*', '***'], ''), (['****'], '')] >>> config = Configuration(monitors=…