2009-07-31から1日間の記事一覧
まんま #!/usr/bin/env ruby require "prawn" pdf = Prawn::Document.new pdf.vertical_line 100, 300, :at => 25 pdf.stroke pdf.render_file(File.basename($0, ".rb") + ".pdf")
import org.apache.commons.lang.builder.StandardToStringStyle; public class C2009073100 { public static void main(String[] args) { StandardToStringStyle x = new StandardToStringStyle(); System.out.println(x.getContentStart()); x.setContentS…
まんま >>> from lepl import * >>> next( Word().match('hello world') ) (['hello'], ' world') >>> next( Integer().match('123 four five') ) (['123'], ' four five') >>> next( And(Word(), Space(), Integer()).match('hello 123') ) (['hello', ' ',…