2008-05-01から1日間の記事一覧
require 'pdf/charts/stddev' pdf = PDF::Writer.new chart = PDF::Charts::StdDev.new p chart.height p chart.datapoint_width p chart.maximum_width chart.height = 500 chart.datapoint_width = 100 chart.data << PDF::Charts::StdDev::DataPoint.new(…
Java FAQ:S011 Q-19まんま class C2008050101 extends C2008050100 { void foo() { System.out.println("foo in C2008050101"); } private void bar() { System.out.println("bar in C2008050101"); } } public class C2008050100 { void foo() { System.ou…
#!/usr/bin/env python import ply.lex as lex tokens = ( 'NUM', ) literals = ['+', '-', '*', '/', '^', '(', ')'] def t_NUM(t): r'\d+(\.\d+)*' try: t.value = float(t.value) except ValueError: print "Integer value too large", t.value t.value =…