Topic: 20 Liners - August 08 - Space |
|
---|---|
Author | Thread |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
posted 08-08-2008 19:35
Looks like I'm responsible for this month's theme and after a few days delay (due to excessive climbing of stairs in churches, arcs of triumph and Eiffel towers), here we go. code: // WARNING: nonsensical example approaching // declare a couple of variables /* 01 */ var baz = "Fy", /* | */ foo = /* | */ { /* | */ name:"Bob", /* | */ kind:"cat", /* | */ yield:function( msg ) /* . */ // the expressions of this function count /* */ { /* 02 */ var msg = msg||"I'm "+ name +" the "+ kind +"."; /* 03 */ alert( "Meow! "+ msg ); /* */ } /* . */ // resume to line 01 /* | */ isAlive:Math.random()>.5; /* | */ }, /* | */ bar = "it's candy"; /* */ document.body.onclick = function() /* */ { /* 04 */ val= prompt( 'enter a number' ); /* 04 */ for( i=0; i<10; i++ ) /* */ { /* 05 */ alert( stupidFunction( val, i ) ); /* */ } /* */ } // like regular function, anonymous function declaration do not count /* */ (function() /* */ { /* 06 */ setTimeout( arguments.callee, 10 ); /* */ }) /* 07 */ (); // calling it, however counts as an expression /* */ function stupidFunction( a, b ) /* */ { /* 08 */ return a>b?a:b; // I said it was a stupid function /* */ } |
Paranoid (IV) Inmate From: Norway |
posted 08-09-2008 11:44 |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
posted 08-19-2008 09:55
*bump* Anyone else working on an entry? We can't have just have p01 running off with an easy victory. |
Paranoid (IV) Inmate From: Norway |
posted 08-19-2008 10:42
Sweep the leg. |
Bipolar (III) Inmate From: |
posted 08-20-2008 04:39
I got sacked with work - sounds like a fun topic, looking forward to seeing the entries. |
Paranoid (IV) Inmate From: cell 3736 |
posted 08-21-2008 12:48
Not sure if it qualifies by that logic a dog turd could be space-related |
Nervous Wreck (II) Inmate From: Finland |
posted 08-21-2008 14:23
I was working on a space shooter for last month's challenge during the train trip to Helsinki. If I've time I'll try to finalize it.. (though I started my studies at tut few days ago and I've lots of things in my todo list). |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
posted 08-24-2008 11:47
Arthurio: Space is huge and largely unexplored. If you say that somewhere there are space fireworks like these, I'll take your word for it. |
Nervous Wreck (II) Inmate From: Germany |
posted 08-30-2008 18:12
My entry: Lunar Lander in 5 lines. |
Paranoid (IV) Inmate From: cell 3736 |
posted 08-31-2008 00:04
It's definitely under 20 lines so who cares ... great job! |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
posted 09-01-2008 13:03
p01, smoff: You guys got anything? |
Paranoid (IV) Inmate From: Norway |
posted 09-01-2008 13:55
Nope sorry |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
posted 09-01-2008 21:16
Alright then. Thanks for playing, all. |
Paranoid (IV) Inmate From: Norway |
posted 09-01-2008 22:01
Yes. It should provide an encoded ( will it be URL encoding, string escaping or whatever the server sends I'm not sure yet ) responseText, allowing XHR to load "binary streams" in Opera the same way as in FireFox and Safari. XHR.overMimeType() is of course some sort of hack meanwhile XHR2 and the responseBody get, widely, implemented. So when this patch lands, your ID3 and EXIF stuffs should finally work in Opera. |
Nervous Wreck (II) Inmate From: Germany |
posted 09-01-2008 22:26
Hoorai |
Bipolar (III) Inmate From: |
posted 09-05-2008 03:47
wow - I'm glad I didn't code anything as I was thinking of a lunar lander too having participated a bit in the Google Lunar X-Prize program. Nice work! |
Maniac (V) Mad Librarian From: Seoul, Korea |
posted 09-05-2008 09:50
Wow, that Lunar Lander game was pretty cool! Nice work! |