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,58 @@
|
||||
#ifdef s
|
||||
z
|
||||
r(
|
||||
){z
|
||||
k=0,l
|
||||
=0,n,x
|
||||
XQueryPointer(i
|
||||
,XRootWindow (i,j),&m,
|
||||
&m,&o,&p,&n,&n,( ghj)&n),(o
|
||||
>=s(g)||s(o
|
||||
)<=0)&&(k=1),
|
||||
(p>=h||p<=0)&&
|
||||
(l=1),(e==1)&&(
|
||||
c=o,d=p,e=0,1)||(
|
||||
(k==0&&o-c-(z)(a+y
|
||||
(a)*.5)!=0)&&(a=o-c
|
||||
),(l^-1==-1&&p-d-(z)(
|
||||
b+y(b)*.5)!=0)&&(b=p-d),a/=f,b/=f
|
||||
,k=0,l=0);(o >=s(g)||o<=0)&&(a=-a),(
|
||||
p>=h||s(p)<=0) &&(b=-b),c=o,d=p,I(XWarpP
|
||||
,ointer)(i,None,None,0,0,s
|
||||
(g),h,(z)(a+y(a)*.5),(int)(
|
||||
b+y(b)*.5 JJ(float B;int)C,D;
|
||||
#else/*Egads! something has */
|
||||
#include<X11/Xlib.h>/*taken a*/
|
||||
#include<stdio.h>/*huge bite o-*/
|
||||
#include<stdlib.h>/*ut of the m-*/
|
||||
#include<time.h>/*ouse pointer!!!*/
|
||||
#define H(a, b) (((a)&(7<<3*(b)))>>3*(b))
|
||||
#define G(c,d) ((H(c,d)<<3*(d+1))|((H(c,d+1)<<3*d)|/*
|
||||
_XSetPointer(display, screen,GREASY|BOUNCY)*/c&~(63<<3*(d))))
|
||||
#define s(e) (G(G(G(G(G(G(e,(z)0),1),2),1),0),1))
|
||||
typedef int z;float a=0,b=0,c,d,f=1.03;z e
|
||||
=s(512),g,h,j;
|
||||
Display/**/*i;
|
||||
#define y(X)((X>0)-(X<0))
|
||||
#define x o,p; Window m;
|
||||
#define ghj unsigned int*
|
||||
#define I(aa,bb)aa##bb
|
||||
#define JJ(X)\
|
||||
));return 0;}X
|
||||
z r();int main
|
||||
(z X,char**Y){
|
||||
clock_t q=0;(X
|
||||
==2)&&(f=atof(Y[1])),((i
|
||||
=XOpenDisplay(0) )==0)&&(exit(1
|
||||
),1),j=I(Defa, ultScreen)(i),
|
||||
g=s(I(Display,
|
||||
Width)(i,j)-1)
|
||||
,h=I(DisplayH,
|
||||
eight)(i,j)-1;
|
||||
for(;;((I(clo,
|
||||
ck)()-q)*100>(
|
||||
CLOCKS_PER_SEC
|
||||
))&&(r(),q=clock()));}
|
||||
#include __FILE__
|
||||
#endif
|
||||
|
||||
@@ -0,0 +1,143 @@
|
||||
Best abuse of the user:
|
||||
|
||||
Edward Rosten
|
||||
Oxford University
|
||||
34 The Chilterns
|
||||
Gloucester Green
|
||||
Oxford
|
||||
OX1 2DF
|
||||
United Kingdom
|
||||
|
||||
http://users.ox.ac.uk/~scat1148
|
||||
|
||||
|
||||
Judges' Comments:
|
||||
|
||||
To build:
|
||||
|
||||
make rosten
|
||||
|
||||
Try:
|
||||
|
||||
./rosten 1.03
|
||||
./rosten 1.00
|
||||
|
||||
For some abuse, try:
|
||||
|
||||
./rosten 0.99
|
||||
|
||||
Friction can be your friend if it does not rub you (or your mouse
|
||||
cursor) in the wrong way. :-)
|
||||
|
||||
|
||||
Selected Author's Comments:
|
||||
|
||||
NAME
|
||||
|
||||
rosten - make the mouse act as if it has been greased
|
||||
|
||||
SYNOPSIS
|
||||
|
||||
rosten [greasiness]
|
||||
|
||||
|
||||
DESCRIPTION
|
||||
|
||||
This program is designed primarily to make your X windows interface more
|
||||
obfuscated. Try doing something mouse driven (such as using a mouse
|
||||
driven editor on this program) whilst it is running. If you're not sure
|
||||
what it does, looking at the code should give a fair idea.
|
||||
|
||||
It also has a [cat] man page if you want to install it as a `utility'.
|
||||
|
||||
|
||||
OPTIONS
|
||||
|
||||
It only takes one optional option: the greasiness factor. This is the
|
||||
number that the speed is divided by on each iteration. The default is
|
||||
1.03. A setting of 1 (no friction is fun), as is 0.99.
|
||||
|
||||
Being an X program, it recognised the DISPLAY variable.
|
||||
|
||||
|
||||
PORTABILITY
|
||||
|
||||
The program is very portable, even to non X architectures. All that is
|
||||
required is a large desk and some good grease.
|
||||
|
||||
|
||||
COMMENTS
|
||||
|
||||
It is really rather surprising that code like this should not only be
|
||||
portable, but compile with almost no warnings on most of the compilers
|
||||
tested. It's a kind of shame that none of the compilers do anything
|
||||
like this:
|
||||
|
||||
$make greasymouse
|
||||
cc greasymouse.c -o greasymouse -lX11
|
||||
greasymouse.c:30: This macro should have more text and spaces in it
|
||||
greasymouse.c:32: This is a really stupid way to perform this operation
|
||||
greasymouse.c:42: This program would look better with a newline here
|
||||
greasymouse.c:48: That's a really silly thing to do
|
||||
greasymouse.c:55: So is that
|
||||
...
|
||||
greasymouse.c:58: This program is rubbish. I'm not going to link it.
|
||||
|
||||
The code is best viewed with tabstops every 8 spaces.
|
||||
|
||||
|
||||
BUGS
|
||||
|
||||
The mouse gets stuck completely if you give it an option of less
|
||||
than 1 and leave it for too long. This is quite annoying if it
|
||||
didn't leave the terminal if was run from in focus.
|
||||
|
||||
It gets very jerky if the processor is being used. There are
|
||||
better time functions than clock() but I haven't used them.
|
||||
|
||||
It deflects slightly when it gets very slow.
|
||||
|
||||
It annoys other people if you run it on their display too
|
||||
often. Maybe I should make future versions print funny jokes to
|
||||
keep the humor fresh.
|
||||
|
||||
It's pretty ropey over a 56K modem.
|
||||
|
||||
It's even ropier over a 56K modem and tunneled through 3 ssh links.
|
||||
|
||||
|
||||
WARNINGS
|
||||
|
||||
Pages and pages and pages of things, with GCC at any rate.
|
||||
|
||||
It suggests loads of ()'s where they're not needed.
|
||||
|
||||
It reckons I have not used some of the values I have computed. I
|
||||
would never do a thing like that: I just haven't used them in
|
||||
the way it's used to.
|
||||
|
||||
The MIPS compiler suggests an == instead of an = in expressions
|
||||
such as:
|
||||
|
||||
&&(a=b)
|
||||
|
||||
but I its suggestions would break my program. It also reckons
|
||||
that r() has no prototype.
|
||||
|
||||
Giving the -pedantic option to the MIPS compiler causes it to generate
|
||||
warnings about its own header files, but not any extra ones with this
|
||||
program.
|
||||
|
||||
With all warnings enabled, the DEC compiler, oddly enough finds some
|
||||
problems with its own include files, but none with my program.
|
||||
|
||||
|
||||
ERRORS
|
||||
|
||||
The DEC compiler of this version:
|
||||
|
||||
DEC C V5.6-079 on Digital UNIX V4.0 (Rev. 878)
|
||||
|
||||
can't compile the code. It thinks that preprocessor lines can not have
|
||||
whitespace preceding the #. Moving the preprocessor directives to the
|
||||
beginning of the line wrecks the layout but makes it compile.
|
||||
Reference in new issue
Block a user