Topic: 20 Liners - August 08 - Space (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
![]() 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 |
![]() |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
![]() *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 |
![]() Sweep the leg. |
Bipolar (III) Inmate From: |
![]()
|
Paranoid (IV) Inmate From: cell 3736 |
![]() Not sure if it qualifies |
Nervous Wreck (II) Inmate From: Finland |
![]() 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 |
![]() 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 |
![]() My entry: Lunar Lander in 5 lines. |
Paranoid (IV) Inmate From: cell 3736 |
![]() It's definitely under 20 lines so who cares |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
![]() p01, smoff: You guys got anything? |
Paranoid (IV) Inmate From: Norway |
![]() Nope sorry |
Nervous Wreck (II) Inmate From: blog.nihilogic.dk |
![]() Alright then. Thanks for playing, all. |
Paranoid (IV) Inmate From: Norway |
![]() 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 |
![]() Hoorai |
Bipolar (III) Inmate From: |
![]() 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 |
![]() Wow, that Lunar Lander game was pretty cool! Nice work! |