2009-08-10から1日間の記事一覧
#!/usr/bin/env ruby require "prawn" pdf = Prawn::Document.new pdf.text_annotation([0, 0, 50, 50], "foo") pdf.render_file(File.basename($0, ".rb") + ".pdf")
import org.apache.commons.lang.builder.StandardToStringStyle; public class C2009081000 { public static void main(String[] args) { StandardToStringStyle x = new StandardToStringStyle(); System.out.println(x.getSummaryObjectStartText()); x.s…
ほぼ、まんま >>> from lepl import * >>> (Drop('hello') / 'world').parse_string('hello world') [' ', 'world'] >>> (~Literal('hello') / 'world').parse_string('hello world') [' ', 'world'] >>> (Lookahead('hello') / 'world').parse_string('hell…