2009-08-12から1日間の記事一覧

prawn:Prawn::Document::BoundingBox#absolute_bottom_left

#!/usr/bin/env ruby require "prawn" pdf = Prawn::Document.new p pdf.bounds.absolute_bottom_left で、 [36, 36.0]

Commons Lang、StandardToStringStyle#setUseFieldNames

import org.apache.commons.lang.builder.StandardToStringStyle; public class C2009081200 { public static void main(String[] args) { StandardToStringStyle x = new StandardToStringStyle(); System.out.println(x.isUseFieldNames()); x.setUseField…

Manual:Matchers:KApply (**)

>>> from lepl import * >>> def show(stream_in, stream_out, results): ... print('stream_in:', stream_in) ... print('stream_out:', stream_out) ... print('results:', results) ... >>> KApply(Any()[:,...], show).parse_string('hello world') stre…