Skip to content

Instantly share code, notes, and snippets.

@taiyoh
taiyoh / Letter.pm
Created November 29, 2010 12:41
rewrite of Imager::DTP::Letter::draw
sub draw {
my($self) = shift;
my %o = $self->_draw_init(@_);
# recalculate bounding box
$self->_calcWidthHeight();
# draw frame - for debug
if($o{debug}){
# real body frame
$o{target}->box(
filled=>1,aa=>0,color=>'#FFAA99',
@mattn
mattn / .classpath
Created August 8, 2012 04:51
業務プログラマがFizzBuzz書いたらどうなるか ( ref: http://d.hatena.ne.jp/irof/20120808/p1 )
<?xml version="1.0" encoding="UTF-8"?>
<classpath>
<classpathentry kind="src" path="src/main/java"/>
<classpathentry kind="src" path="src/test/java"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="/usr/share/java/commons-logging-1.1.1.jar"/>
<classpathentry kind="lib" path="/usr/share/java/junit4.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>