Browse files

"Old style" version, updated and renamed new version, added another c…

  • Loading branch information...
1 parent d3da8d7 commit 0824401d076ea9b53b818f36eca0e05da04ec6c6 @colomon committed Dec 12, 2012
Showing with 62 additions and 5 deletions.
  1. +8 −0 bin/
  2. +5 −0 bin/
  3. +0 −5 bin/
  4. +49 −0 data/moon_shines
@@ -0,0 +1,8 @@
+my %words;
+for $*ARGFILES.slurp.comb(/\w+/).map(*.lc) -> $word {
+ %words{$word}++;
+for %words.pairs.sort(-*.value) -> (:key($word), :value($count)) {
+ say "$word: $count";
@@ -0,0 +1,5 @@
+my $words = bag $*ARGFILES.slurp.comb(/\w+/).map(*.lc);
+for $words.pairs.sort(-*.value) -> (:key($word), :value($count)) {
+ say "$word: $count";
@@ -1,5 +0,0 @@
-my $hamlet-words = bag slurp("data/cherry-tree").comb(/\w+/).map(*.lc);
-for $hamlet-words.keys.sort({ $hamlet-words{$^b} <=> $hamlet-words{$^a} }) -> $word {
- say "$word: { $hamlet-words{$word} }";
@@ -0,0 +1,49 @@
+The moon shines bright and the stars give light
+A little before the day
+Our Lord, Our God, he called on us
+And bid us awake and pray!
+Awake, Awake! good people all
+Awake and you shall hear
+The Lord our God, died on the cross
+For us whom he loved so dear
+O fair, O fair Jerusalem,
+When shall I come to thee?
+When shall my sorrows have an end,
+Thy joy that I may see?
+The fields were green as green could be,
+When from His glorious seat,
+Our Lord, our God, he watered us,
+With His heavenly dew so sweet.
+And for the saving of our souls
+Christ died upon the cross,
+We ne'er shall do for Jesus Christ
+As he has done for us.
+The life of man is but a span,
+And cut down in its flower,
+We are here to-day, and to-morrow gone,
+We are all dead in an hour.
+O pray teach your children, man
+The while that you are here;
+It will be better for your souls,
+When your corpse lies on the bier.
+To-day you may be alive, dear man
+Worth many a thousand pound;
+To-morrow may be dead, dear man,
+And your body be laid under ground.
+With one turf at your head, O man,
+And another at your feet;
+Thy good deeds and thy bad, O man,
+Will all together meet.
+My song is done, I must be gone,
+I can stay no longer here;
+God bless you all, both great and small,
+And send you a happy new year!

0 comments on commit 0824401

Please sign in to comment.