Anarchaia

Experimental, impressionistic sub-paragraph tumblin' (think obstsalat)

30nov2005

#ruby-lang
21:24 <xinit> I have a string that contains 0 or 1 and I want to convert that for output to "no" and "yes"
21:25 <Qerub> string == "1" ? "yes" : "no"
21:26 <lucas> {'0' => 'no', '1' => 'yes'}[string]
21:26 <chris2> %w[no yes][s.to_i] =)
21:28 <chris2> "no"*(1-s.to_i)+"yes"*s.to_i
21:36 <SlowByte> "yesno"[s[0]/?1*3,3]
21:36 * SlowByte laughs evilly
Fwd:

I met a young child beside a dead pony,
I met a white man who walked a black dog,
I met a young woman whose body was burning,
I met a young girl, she gave me a rainbow…
— Bob Dylan, A Hard Rain’s A-Gonna Fall

#ruby-lang
19:02 <chris2> i'm almost a japanese teenage girl
19:03 <chris2> except not being japanese and not a girl

If you ever see me in the debugger, whack me up upside the head and tell me to write a test. — Ron Jeffries

He gambled in the White House and in the railroad yards,
Wherever there was people, there was Willie and his cards.
— Bob Dylan, Rambling, Gambling Willie

Red leaves
#rpa
15:09 * chris2 just visited a heavy metal concert
15:09 <chris2> …in my mouth :P