2009-01-26から1日間の記事一覧
#!/usr/bin/env ruby require "hpdf" pdf = HPDFDoc.new page = pdf.add_page p [HPDFDoc::HPDF_PAGE_LAYOUT_SINGLE, HPDFDoc::HPDF_PAGE_LAYOUT_ONE_COLUMN, HPDFDoc::HPDF_PAGE_LAYOUT_TWO_COLUMN_LEFT, HPDFDoc::HPDF_PAGE_LAYOUT_TWO_COLUMN_RIGHT] p pd…
import java.util.*; import org.apache.commons.lang.time.DateUtils; public class C2009012600 { public static void main(String[] args) { GregorianCalendar c = new GregorianCalendar(); System.out.println(c); System.out.println(DateUtils.trunc…
module Main where import Text.ParserCombinators.Parsec import Text.ParserCombinators.Parsec.Token import Text.ParserCombinators.Parsec.Language lexer :: TokenParser () lexer = makeTokenParser(javaStyle) test = do { string "foo" ; x <- getI…
#!/usr/bin/env lua debug.debug() で、 lua_debug> print("foo") foo