Skip to content

Instantly share code, notes, and snippets.

View ironsmile's full-sized avatar

Doychin Atanasov ironsmile

View GitHub Profile
@ironsmile
ironsmile / gist:997831
Created May 29, 2011 14:53
different results
iron4o@norad4$ ./ctimer-full
868[~/Desktop]
iron4o@norad4$ ./ctimer-full
832[~/Desktop]
iron4o@norad4$ ./ctimer-full
849[~/Desktop]
iron4o@norad4$ ./ctimer-full
905[~/Desktop]
iron4o@norad4$ ./ctimer-full
817[~/Desktop]
/*
Christmas stuff
I don't have any idea who wrote this but it is somewhat cool.
Compile and run it!
*/
#include <stdio.h>
main(t,_,a)
char *a;
{return!0<t?t<3?main(-79,-13,a+main(-87,1-_,
class kalendar{
public:
char month[10];
int day;
char hour[5];
void days(char m[10], int d, char h[5]){
this->month[10] = m[10];
this->day = d;
this->hour[5] = h[5];
/* ----------------------------------------------------------------------------
* "THE BEER-WARE LICENSE" (Revision 42):
* <phk@login.dknet.dk> wrote this file. As long as you retain this notice you
* can do whatever you want with this stuff. If we meet some day, and you think
* this stuff is worth it, you can buy me a beer in return. Poul-Henning Kamp
* ---------------------------------------------------------------------------- */
#define RP_STORE_COMP(x) \
current = sel_storeges->data[x]; \
stor = stor_weights->data[current.value]; \
switch(wt){ \
\
case RP_WEIGHT_SPEED: \
if(stor.speed > best){ \
best = stor.speed; \
best_id = x; \
} \
?- len(R).
ERROR: toplevel: Undefined procedure: len/1 (DWIM could not correct goal)
?- R
| .
% ... 1,000,000 ............ 10,000,000 years later
%
% >> 42 << (last release gives the question)