Skip to content

Commit

Permalink
Lots of progress
Browse files Browse the repository at this point in the history
  • Loading branch information
davorg committed Nov 20, 2012
1 parent 4f330e0 commit 9919c6b
Show file tree
Hide file tree
Showing 7 changed files with 170 additions and 104 deletions.
17 changes: 17 additions & 0 deletions build
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ my $releases = get_rel();

$t->process('index.tt', {
releases => $releases,
headlines => get_headlines(),
years => $years,
get_x_offset => $x_offset,
get_y_offset => $y_offset,
Expand All @@ -53,3 +54,19 @@ sub get_rel {

return $rel;
}

sub get_headlines {
my $hl = {};

if (-f 'headlines.txt') {
open my $fh, '<', 'headlines.txt' or die $!;
while (<$fh>) {
next unless /\S/;
chomp;
my ($year, $headline) = split /\s+/, $_, 2;
$hl->{$year} = $headline;
}
}

return $hl;
}
10 changes: 10 additions & 0 deletions community.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
1989 comp.lang.perl
1995 perl.com

1997 The Perl Conference
1997 New York Perl Mongers
1998 London Perl Mongers
1999 First YAPC::NA
2000 First YAPC::EU
2001 use.perl.org launched

27 changes: 27 additions & 0 deletions get_books
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
#!/usr/bin/perl

use strict;
use warnings;
use 5.010;

use Net::Amazon;
use Data::Dumper;

my $amz = Net::Amazon->new(
associate_tag => $ENV{AMAZON_ASSTAG},
token => $ENV{AMAZON_KEY},
secret_key => $ENV{AMAZON_SECRET},
) or die;

my $resp = $amz->search(
mode => 'books',
title => 'Programming Perl',
year => 1991,
);

for ($resp->properties) {
say $_->Asin, ' ',
$_->title, ' ',
$_->year, ' ',
join ', ', $_->authors;
}
25 changes: 25 additions & 0 deletions headlines.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
1988 Perl 1.0 (and 2.0) Released!
1989 Perl 3.0 Released
1990
1991 Pink Camel published
1992
1993 Pink Llama published
1994 Perl 5 Released
1995 CPAN launched
1996 The Perl Journal
1997 The Perl Conference / Perl Mongers
1998 London Perl Mongers
1999 First YAPC
2000 Perl 6 announced
2001 Damian Conway works for us
2002
2003
2004 Catalyst
2005 DBIx::Class
2006 Moose
2007
2008
2009 PSGI
2010
2011
2012
Loading

0 comments on commit 9919c6b

Please sign in to comment.