Search found 1330 matches

by hotaru
Thu Apr 19, 2007 11:13 am UTC
Forum: Individual XKCD Comic Threads
Topic: 0196: "Command Line Fu"
Replies: 68
Views: 28426

ohki wrote:Yeah, it should be something like if ((isGeek(guy) && isGeek(girl) || (!isGeek(guy) && !isGeek(girl))) and that's just ugly.

what about something like:

Code: Select all

if(!isGeek(guy)==!isGeek(girl))
by hotaru
Thu Apr 19, 2007 8:48 am UTC
Forum: General
Topic: Smoking and cigarette taxes
Replies: 149
Views: 19353

(they charged me $400 last time) What the fuck? Are you American? The US never ceases to amaze me. Neither does the fact that people can actually bring themselves to live there. yeah... and the $400 was just for the ambulance... i had to pay the hospital, too... and all they did was tell me i had a...
by hotaru
Thu Apr 19, 2007 8:32 am UTC
Forum: General
Topic: Smoking and cigarette taxes
Replies: 149
Views: 19353

i don't smoke, but i don't really care if anyone else does. as long as they don't do it around me. if they do, i ask them not to, and if they continue... well, i'm allergic to something in cigarette smoke and i'd rather not have to pay for a ride in an ambulance (they charged me $400 last time)... s...
by hotaru
Wed Apr 18, 2007 6:38 pm UTC
Forum: General
Topic: INTRODUCTIONS THREAD
Replies: 3985
Views: 696959

Belial wrote:Are you? Are you *really*?

Prove it.

if you're talking to me, that's easy. "me" is the objective case of "i".
by hotaru
Wed Apr 18, 2007 6:23 pm UTC
Forum: General
Topic: INTRODUCTIONS THREAD
Replies: 3985
Views: 696959

i guess i should post in this thread since i haven't yet.
so umm... yeah... i'm me.
by hotaru
Wed Apr 18, 2007 4:00 pm UTC
Forum: Coding
Topic: Prime Factor Golf
Replies: 18
Views: 6023

Perl: $\=" ";while(++$_<$n){$n%$_?0:print;} $,=" ";print grep{!($n%$_)}(1..$n); actually, those don't work. $ perl -le'$n=8;$,=" ";print grep{!($n%$_)}(1..$n);' 1 2 4 8 $ perl -e'$n=8;$\=" "...
by hotaru
Wed Apr 18, 2007 3:41 am UTC
Forum: Coding
Topic: escalating returns
Replies: 30
Views: 8784

Cosmologicon wrote:Sorry. I was going to call the function "escalator"... but when I see that word... I just can't help but replace it with skeletor in my mind! I'm sure we all know what that's like.

you should have called it "elevator".
http://escalatorelevator.ytmnd.com/
by hotaru
Mon Apr 16, 2007 3:21 am UTC
Forum: Coding
Topic: Fizzbuzz!
Replies: 81
Views: 233511

i've managed to get it down to 50 bytes in perl, a few different ways: print"Fizz"x!($_%3).Buzz x!($_%5)||$_,$/for 1..100 print"Fizz"x!($_%3).Buzz x/[05]$/||$_,$/for 1..100 print+Fizz x!($_%3).Buzz x!($_%5)||$_,$/for 1..100 print+Fizz x!...
by hotaru
Fri Apr 13, 2007 8:32 pm UTC
Forum: Individual XKCD Comic Threads
Topic: 0248: "Hypotheticals"
Replies: 77
Views: 20853

OneLess wrote:Edit: It just struck me that this comic would be really surreal if the beret guy in the 2nd bubble was thinking about what would would be like if he didn't have ice cream :D


it would be really surreal if that 3rd bubble was the "real" situation on the far left.
by hotaru
Fri Apr 13, 2007 7:36 pm UTC
Forum: Coding
Topic: [ Poll ] Infinite loops
Replies: 185
Views: 40737

Code: Select all

my@i=0;do{...;++$#i}for@i;


and if you want to know how many times the loop has run, you can just do this:

Code: Select all

my@i=0;do{print$#i;++$#i}for@i;

Go to advanced search