Skip to content

Commit

Permalink
Merge branch 'master' of github.com:perl6/perl6-examples
Browse files Browse the repository at this point in the history
Conflicts:
	rosalind/cons-grondilu.pl
  • Loading branch information
grondilu committed Mar 10, 2015
2 parents 2689d5c + efeec43 commit e03747e
Show file tree
Hide file tree
Showing 394 changed files with 5,514 additions and 2,502 deletions.
5 changes: 5 additions & 0 deletions .gitignore
@@ -0,0 +1,5 @@
*.so
html/*.html
html/categories
categories/rosalind/lcsq.o
categories/wsg/beginner-2008/firstlines.out
33 changes: 0 additions & 33 deletions 99-problems/README

This file was deleted.

59 changes: 0 additions & 59 deletions README

This file was deleted.

74 changes: 74 additions & 0 deletions README.md
@@ -0,0 +1,74 @@
# Perl 6 Examples

This is intended to be a repository for all kinds of Perl 6 examples.

All examples should work for any full implementation of Perl 6.

If an example needs an implementation specific version then it should end in
.implementation. For example, if you are making an example that only works
on Rakudo, it should end in .rakudo.

If you want to contribute, just ask! The quicker choice is to use IRC: join
#perl6 in Freenode and you'll be welcome.


Please use POD (mostly this template
https://github.com/perl6/perl6-examples/blob/master/template_pod) when
adding a new example.

## Goals

1. Compile a list of open source Perl 6 examples
2. Help different implementations of Perl 6 test out their code in a less
testy and more fun manner `;)`


## What you can find here


| Directory | Description |
|--------------------|------------------------------------------|
|best-of-rosettacode | The best of the rosettacode.org examples |
|99-problems | Based on lisp 99 problems |
|cookbook | Cookbook examples |
|euler | [Answers for Project Euler](http://projecteuler.net) |
|games | Games should go in here :) |
|interpreters | Language or DSL interpreters |
|module-management | Module management |
|parsers | Example grammars |
|perlmonks | Answers to perlmonks.org questions |
|rosalind | Bioinformatics programming problems |
|shootout | [The Computer Language Benchmark Game](http://shootout.alioth.debian.org/) |
|tutorial | Tutorial examples |
|wsg | Answers for Winter Scripting Games |
|bin | utility scripts |
|lib | utility modules |
|doc | out-of-script documentation |
|other | all other |

Since you have a commit-bit (if not then talk to the folks at #perl6 on
irc.freenode.net) feel free to commit your changes to the main repository.
No need to submit a pull request!

## Building the examples documentation

To build the examples documentation web pages, simply run the `htmlify.p6`
script in the base directory:

$ perl6 htmlify.p6

After the pages have been generated, you can view them on your local
computer by starting the included `app.pl` program:

$ perl app.pl daemon

You can then view the examples documentation by pointing your web browser at
http://localhost:3000.

## License Information

"Perl 6 Examples" is free software; you can redistribute it and/or modify it
under the terms of the Artistic License 2.0. (Note that, unlike the
Artistic License 1.0, version 2.0 is GPL compatible by itself, hence there
is no benefit to having an Artistic 2.0 / GPL disjunction.) See the file
LICENSE for details.
3 changes: 3 additions & 0 deletions TODO
@@ -0,0 +1,3 @@
17:35 < moritz> [ptc]: bonus points for adding some sort of test suite (can
be just storing results from one run, and then comparing on the next run),
and only HTML-rendering those that pass the tests
25 changes: 25 additions & 0 deletions app.pl
@@ -0,0 +1,25 @@
#!/usr/bin/env perl

use Mojolicious::Lite;

app->static->paths(['html']);

get '(*dir)/:file' => sub {
my $self = shift;
my $dir = $self->param('dir');
my $file = $self->param('file');
return $self->redirect_to("/$dir/$file.html");
};

get '(*dir)/' => sub {
my $self = shift;
my $dir = $self->param('dir');
return $self->redirect_to("/$dir.html");
};

get '/' => sub {
my $self = shift;
return $self->redirect_to('/index.html');
};

app->start;
74 changes: 0 additions & 74 deletions best-of-rosettacode/24-game.pl

This file was deleted.

6 changes: 0 additions & 6 deletions best-of-rosettacode/README

This file was deleted.

Empty file removed best-of-rosettacode/TODO
Empty file.
72 changes: 0 additions & 72 deletions best-of-rosettacode/accumulator-factory.pl

This file was deleted.

0 comments on commit e03747e

Please sign in to comment.