April 2007
Monthly Archive
youporn
megarotic
redtube
tube8
pornhub
red tube
tube 8
redtube
tube8
youporn
Monthly Archive
Posted by David on 13 Apr 2007 | Tagged as: Javascript
for (j=(d[0] == "YAHOO") ? 1 : 0; j<d.length; j++) {
o[d[j]]=o[d[j]] || {};
o=o[d[j]];
}
pretty concise. Let’s break it down.
(expression) ? 1 : 0
Take a look at Ternary Operators.
variable = (condition) ? what to store if true : what to store if not true;
So if d[0] has a value of “YAHOO”, then j gets assigned 1. Otherwise 0.
So the for loop runs either d.length times or (d.length - 1) times if (d[0] == “YAHOO”) evaluates to true.
Inside the loop? No freakin’ clue, especially out of context. Don’t know what o is, or d, or d.length, so it’s hard to say.
Also, we’d have to know under what circumstances o[d[j]] could evaluate to false. When that happens, the function assigns { } to that value (meaning that it will be defined as an empty array), which is then assigned to o.
Whatever o is.
Posted by David on 13 Apr 2007 | Tagged as: Uncategorized
Blog’s back. Please Add to your Google Reader subscription! My aim is to blog about my hobbies, and to say nothing about anything else. I want it to be a valuable resource for both me and you. I’m going to work to make that happen with lots of informative posts about things I happen to know about, usually after extensive research.
Topics up for discussion:
Javascript
CSS
HTML
Windows
Ubuntu
Misc. Tech and other interesting stuff on the tubes.
Politics
Motorsports
And anything else that tickles my fancy.
I’ll start off with something that will probably be of little interest to you.
Posted by David on 11 Apr 2007 | Tagged as: Uncategorized
This is an example of a WordPress page, you could edit this to put information about yourself or your site so readers know where you are coming from. You can create as many pages like this one or sub-pages as you like and manage all of your content inside of WordPress.