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

prawn:Prawn::Document::BoundingBox#bottom_left

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

Commons Lang、ClassUtils.getShortClassName()

import org.apache.commons.lang.ClassUtils; import java.util.*; public class C2009082100 { public static void main(String[] args) { System.out.println(ClassUtils.getShortClassName(String.class)); System.out.println(ClassUtils.getShortClassN…

Manual:Operators:Prefix And Postfix Operators On Matchers:[]

>>> from lepl import * >>> (Literal('a')[]).parse('aaa') File "<stdin>", line 1 (Literal('a')[]).parse('aaa') ^ SyntaxError: invalid syntax >>> (Literal('a')[:]).parse('aaa') ['a', 'a', 'a'] >>> (Literal('a')[2:]).parse('aaa') ['a', 'a', 'a'] >>></stdin>…