|
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-15-2002 15:33
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
Slime
Lunatic (VI) Mad Scientist
From: Massachusetts, USA Insane since: Mar 2000
|
posted 10-15-2002 17:09
Heh heh heh, are you allowed to use the comma (,) operator to do hundreds of things at once within a single statement? =)
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-15-2002 17:31
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-15-2002 21:03
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
NoJive
Maniac (V) Inmate
From: The Land of one Headlight on. Insane since: May 2001
|
posted 10-15-2002 21:28
ok... so we know I know nothing about coding... but I want to see what's
going on with this... so I cut and paste..save the file as html...
open it in IE.. and everything seems fine but when
I enter the hex values... nothing happens. I see nothing. 'page error'
at the bottom of IE window. What have I missed???
thnx
[This message has been edited by NoJive (edited 10-15-2002).]
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-15-2002 21:32
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
NoJive
Maniac (V) Inmate
From: The Land of one Headlight on. Insane since: May 2001
|
posted 10-16-2002 01:08
Got it! As you all suspected the problem was *me.* <lol> I had wordwrap on in notepad,
so I went in and did all the line breaks at the appropriate spots and it works just fine.
But wouldn't you know it... I pick 2 colours that don't want to work.
In PS these hex values are a lite lime green and a pale orange.
But the gradient comes up as a dark green to a dark blue.
ok you won't hear anymore from me in here,
I'll just watch and play from now on. Thnx. <lol>
F58020
A8D051
[This message has been edited by NoJive (edited 10-16-2002).]
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-16-2002 01:36
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-16-2002 08:30
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-16-2002 19:09
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
Slime
Lunatic (VI) Mad Scientist
From: Massachusetts, USA Insane since: Mar 2000
|
posted 10-17-2002 08:08
Here's my 20-liner... actually, I saved more space than I need to; it's only 13 lines, counting function definitions.
Hey, people, make a 20-liner. It's time we had some sort of regular contest/practice-ish thing here like repeat performance, the sig contest, ps pong, debates, etc. It doesn't have to be perfect, but try something out; even if you can't get it below 20 lines, show your effort. You only get better through practice =)
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-17-2002 09:08
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
Nevel
Bipolar (III) Inmate
From: Amsterdam Insane since: Jun 2002
|
posted 10-17-2002 15:14
|
Petskull
Maniac (V) Mad Scientist
From: 127 Halcyon Road, Marenia, Atlantis Insane since: Aug 2000
|
posted 10-17-2002 15:48
I was thinking something like this, but my thought was more of a 'make a script (or webpage) that does this'
but then I thought that making, say, a javascript text editor that is regexp-searchable, would require more than 2 weeks..
..well, maybe not, but projects big enough to be cool are, um, big enough to be cool...
Code - CGI - links - DHTML - Javascript - Perl - programming - Magic - http://www.twistedport.com
ICQ: 67751342
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-17-2002 16:13
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
Slime
Lunatic (VI) Mad Scientist
From: Massachusetts, USA Insane since: Mar 2000
|
posted 10-17-2002 18:17
I updated mine, so it should be much smoother.
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-17-2002 21:14
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-17-2002 22:30
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
RoyW
Bipolar (III) Inmate
From: Insane since: Aug 2001
|
posted 10-18-2002 05:38
Ok,
I thought I'd give it a go. It was kinda like a puzzle.
First, write the script, then try and make it 20 lines.....
Reading InI's and Slime's scripts gave me the ideas on how to optimize (or is that cheat with ) the number of lines in the code .
First I thought I would try a Fading Text News Ticker as all those out there seem so overly complex for what they actually do.
Next, I just had to pay homage to Doc's Latest Experiment. (have you seen the graphics lately, wow!)
The killer was trying to make it xBrower compatible but anyway here is Orbit
Of course it doesn't have the Doc's great graphics.
The "Sun" is always centered on the browser so try resizing your window & refreshing for diffrnt orbits.
I am thinking of trying to mod the text fader to use opacity.
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-18-2002 09:13
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-18-2002 17:25
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
Bugimus
Maniac (V) Mad Scientist
From: New California Insane since: Mar 2000
|
posted 10-20-2002 07:31
Guys,
Are we counting
(condition) ? this : that
as one line?
I've got an idea I'm working on.
. . : slicePuzzle
|
Slime
Lunatic (VI) Mad Scientist
From: Massachusetts, USA Insane since: Mar 2000
|
posted 10-20-2002 08:04
Yup, that's certainly one line.
Another little trick; make use of the return values of assignments:
diffsquared = (diff=a-b)*diff;
A little obscure, but it works =)
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-20-2002 08:57
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
NoJive
Maniac (V) Inmate
From: The Land of one Headlight on. Insane since: May 2001
|
posted 10-20-2002 12:54
Roy: Just had a (so far) unrepeatable blip with your orbit20.
I clicked the 'stationary' object and all the orbitting spheres
changed to slim white rectangles with black holes center bottom.
Kinda looked like an orbitting Stone Henge. Tried refreshing several
times but could never gete it to repeat.
Anyway it was fun while it lasted. <lol>
[This message has been edited by NoJive (edited 10-20-2002).]
|
Slime
Lunatic (VI) Mad Scientist
From: Massachusetts, USA Insane since: Mar 2000
|
posted 10-20-2002 18:31
NoJive: Press ctrl+A to do it again =)
|
NoJive
Maniac (V) Inmate
From: The Land of one Headlight on. Insane since: May 2001
|
posted 10-20-2002 19:49
Slime: Thanks, works well. Somehow hook those up to an offset
cam and you'd have a pretty neat aerial view of a
carousel/merry-go-round sort of thing.
oh... by works well, I mean control+A works every time
but a 'click' doesn't work at all.
Like your piece there too. Reminds me of that bit
where a magnifying glass is moving across the page of a book,
each word getting larger and then all of a sudden the magnifying
glass moves over a fly. Plenty more than 20 lines in that I'm sure. <lol>
Anyway... fun stuff. Back in my hole now.
[edit] I'm in here doing hard line breaks because there's
code somewhere here that's giving me the horizontal scroll thing.
[/edit]
[This message has been edited by NoJive (edited 10-20-2002).]
|
Nevel
Bipolar (III) Inmate
From: Amsterdam Insane since: Jun 2002
|
posted 10-20-2002 21:51
Ok, I've found some spare time after all for a quick and dirty 20-liner.
Not much interaction, and not much of a graphical wonder, but hey, it's my first
It's located at http://www.codewarrior.nl/~bladibla/asylum20/popwin/
By the way, I do think we need a restriction on the "var a, b"-technique. I was tweaking and tweaking, and finally found out it's possible to do a "var a=myFunc(param)", and then I realized it had to be possible to create functions and objects the same way. So, the point is every script can be written in one valid line..
Now at first I thought it was neat, but later on I realized it was just lame, so I left it out after all .
|
Lord_Fukutoku
Paranoid (IV) Inmate
From: West Texas Insane since: Jul 2002
|
posted 10-21-2002 05:19
NoJive - I did the click thing and it works everytime. You have to click and drag from the stationary dot either upwards or downwards to highlight everything. Also, if you time it just right and get the cursor by starting on one of the moving dots, then dragging a bit, you can select just some of the moving dots... Kinda cool looking effect then as well...
I might just have to figure out something to try and contribute here...
Very cool things so far everyone. Can't wait to see what's next
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-21-2002 14:15
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
Nevel
Bipolar (III) Inmate
From: Amsterdam Insane since: Jun 2002
|
posted 10-21-2002 14:44
Well, at least this is working:
var a=6,newFunc=alert('a'); alert('b'); alert('c'),d=4, func1(),alert('a*d= ' + (a*d));
function func1(){
alert('func1 says hi');
}
And I guess it has to be possible to declare functions on the fly using a = new Function(){ /*instructions*/ }, but I haven't tried that out yet.
Anyway, I do think declaring thousands of vars at the same time is ok, as long as they ain't being used as function calls etc...
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-21-2002 15:22
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
Lord_Fukutoku
Paranoid (IV) Inmate
From: West Texas Insane since: Jul 2002
|
posted 10-22-2002 00:01
Woohoo, got mine. Gonna upload it in just a sec. It could use a bit of work still, but it's not even close to 20 lines yet.
About writing one long line of code that works, it's very possible. I did that with mine out of curiosity and it worked.
[edit: link: 20 liner
hint: It works best if the window is 255x255. And just move the cursor slowly...
Just one of the bugs I'll fix, hopefully this evening.
And sorry for the pop-ups...
[edit again: Any ideas on how to change the red, green, and blue at once by just moving the cursor?
I've got the x-coordinate and y-coordinate of the cursor changing 2 of the three, but I haven't figured out a way to change all three simultaneously... Maybe, click and hold the mouse and convert the time held into hex for the 3rd value?
[edit: 3rd time's a charm. Fixed all the bugs I found Check the new and improved color changing thing... Not really sure what to call it...
Are we counting "if (condition)" as a line? If so, I hit 21, but I can easily remove the line writing to the status bar. But now it should work correctly in any size window, without the jumping from one end of the spectrum to the other... Nice and smooooooothe now
________________________________________________________________
-- Jack of all trades, master of that which has my attention at
the moment.
Unoriginal Cell 693
[This message has been edited by Lord_Fukutoku (edited 10-22-2002).]
[This message has been edited by Lord_Fukutoku (edited 10-29-2002).]
|
Slime
Lunatic (VI) Mad Scientist
From: Massachusetts, USA Insane since: Mar 2000
|
posted 10-22-2002 00:09
Rule of thumb, at least the rule that I used: if the comma can be replaced with a semi-colon and a line break and still have the exact same effect, then you're not allowed to use the comma.
|
Lord_Fukutoku
Paranoid (IV) Inmate
From: West Texas Insane since: Jul 2002
|
posted 10-22-2002 00:10
How about declaring multiple variables?
var a=0, b=0, c=1;
versus
var a=0;
var b=0;
varc=1;
|
poi
Paranoid (IV) Inmate
From: France Insane since: Jun 2002
|
posted 10-23-2002 00:12
Lord_Fukutoku: If I were you I rather wrote
c=1-(a=b=0)
Mathieu "POÏ" HENRI
[This message has been edited by poi (edited 10-23-2002).]
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-23-2002 00:16
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|
RoyW
Bipolar (III) Inmate
From: Insane since: Aug 2001
|
posted 10-23-2002 00:28
Well,
I assumed you could use comma only to initialize variables and then only if they were valid variables used elsewhere in the code
var dx=10, dy=10, dz=100*Math.random(), w = document.innerWidth;
var x=dx + dy, y=dx + dz, z = dz + w;
and not
var dummy1=myFunc1(), dummy2=myFunc2() + myfunc3();
which would just cause the 3 functions to be called.
or not
function doNothing() {}
doNothing(a=1, b=2, z=myFunc1(a), myfunc2(a,b) );
If this is not the case (initializing vars) then it may be possible to rewrite mine and "inline" all the variables but I think that would make it harder to read.
Anyway - this is my latest if the comma rule standsDocument Fireworks
|
Bugimus
Maniac (V) Mad Scientist
From: New California Insane since: Mar 2000
|
posted 10-23-2002 00:37
Oooo pretty.
|
InI
Paranoid (IV) Mad Scientist
From: Somewhere over the rainbow Insane since: Mar 2001
|
posted 10-23-2002 00:40
The poster has demanded we remove all his contributions, less he takes legal action.
We have done so.
Now Tyberius Prime expects him to start complaining that we removed his 'free speech' since this message will replace all of his posts, past and future.
Don't follow his example - seek real life help first.
|