Move 1988-2004 entries into subdirs
We we move 1988-2004 entries from all of a year's winning entries in a single directory to each winner being in their own sub-directory under the given year directory.
This commit is contained in:
1 parent
1e82e8aa3e
commit
d2a42f42e8
478 files changed
No files matched your search
@@ -0,0 +1,45 @@
|
||||
Most humorous output:
|
||||
|
||||
Oskar von der Luehe
|
||||
Institut fuer Astronomie
|
||||
ETH - Zentrum
|
||||
8092 Zuerich
|
||||
Switzerland
|
||||
|
||||
Judges notes:
|
||||
|
||||
Run this program using your favorite text file as input. Files
|
||||
such as mailboxes, man pages and usenet articles are especially
|
||||
recommended. You will get different output each time you run it.
|
||||
|
||||
Run the program this way:
|
||||
|
||||
ovdluhe < textfile
|
||||
|
||||
The program stops when it reaches the end of the template buffer
|
||||
by chance or is killed.
|
||||
|
||||
Selected notes from the author:
|
||||
|
||||
This program implements an "Eddington ape" - it generates
|
||||
random text from a supplied template. The template text file
|
||||
is read through stdin. The larger the template, the better the
|
||||
result. A maximum of 2**12 chars are used. From the template,
|
||||
the program calculates the statistics of chars that immediately
|
||||
follow a given string (correlator string) of a certain length
|
||||
(currently 4 - can be varied by changing the definition for P
|
||||
accordingly). A character is randomly chosen, weighted by its
|
||||
probability to occur after the correlator string. That
|
||||
character is printed to stdout and placed at the end of the
|
||||
correlator string, whose first character is discarded.
|
||||
Meaningful words are therefore usually preserved, the effect on
|
||||
sentences can be dramatically random.
|
||||
|
||||
You might want to vary the definition of P between 2 and 10 and
|
||||
observe the result.
|
||||
|
||||
Copyright (c) 1989, Landon Curt Noll & Larry Bassel.
|
||||
All Rights Reserved. Permission for personal, educational or non-profit use is
|
||||
granted provided this this copyright and notice are included in its entirety
|
||||
and remains unaltered. All other uses must receive prior permission in writing
|
||||
from both Landon Curt Noll and Larry Bassel.
|
||||
@@ -0,0 +1,21 @@
|
||||
#include <string.h>
|
||||
typedef char ape
|
||||
#define D define
|
||||
#D EA register
|
||||
#D EP unsigned
|
||||
#D A 1
|
||||
#D AP (A<<A)
|
||||
#D P (A<<AP)
|
||||
#D AE ((P<<P)<<A)
|
||||
#D PE (((A<<P)<<P)<<P)
|
||||
#D E ((EP)A>>A)
|
||||
#D APE {EA EP ape ea=AE;while(ea--) e[ea]=E;}
|
||||
;ape a[PE+A],ap,*ae,p[P+A],e[AE];
|
||||
main(){ape pe,*ep=a;srand((EP)time((long)E));
|
||||
while(((*(ep++)=getchar())!=-A)&&((ep-a)<PE));
|
||||
*(ae= --ep)=E;for(ap=E;ap<=P;){APE;if(pe=PA())
|
||||
{putchar(pe);if(ap<P){p[ap]=pe;ap++;}else{
|
||||
ep=p+A;while(*ep) *(ep-A)= *(ep++); *(ep-A)=pe;}}else break;}}
|
||||
PA(){EA ape pe,*ep=a,pa,Ap=E;for(ep=a;ep<ae-P;ep++)
|
||||
if(!strncmp(ep,p,ap)){e[*(ep+ap)]++;Ap++;}if(!Ap)return(Ap);
|
||||
pa=rand()%Ap+A;pe=~E,Ap=!Ap;while((Ap+=e[++pe])<pa);return(pe);}
|
||||
Reference in new issue
Block a user