Skip to content

Instantly share code, notes, and snippets.

#!/usr/local/bin/perl
#
# cpan-user-release-history - take a PAUSE id and generate an ascii graph of their # releases by year
#
use strict;
use warnings;
use CPAN::ReleaseHistory 0.02;
my $MAX_BAR_SIZE = 50;
my $iterator = CPAN::ReleaseHistory->new()->release_iterator();
@pstuifzand
pstuifzand / marpa-calc-eval.go
Created May 17, 2013 09:52
The first result of some work on the Go version of the wrapper for Marpa. You can have more control over the evaluator. In the first version (in 'go-marpa') you needed to specify actions on interface{} parameters. Now you can create your own stack with your own type. This uses the go feature where a switch statement values don't need to be const…
/* Copyright (C) 2013 Peter Stuifzand
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU Lesser General Public License as published by the Free
Software Foundation, either version 3 of the License, or (at your option) any
later version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more