Sign in
or
Join FriendFeed
FriendFeed
is the easiest way to share online.
Learn more »
Join FriendFeed
187
subscriptions
152
subscribers
9
comments
14
likes
Kamal Fariz
more »
Subscribe
to Kamal Fariz
Untitled -
http://blog.bitfluent.com
January 10
from
bitfluent
-
Comment
-
Like
-
Share
June 29
from
Picasa Web Albums
-
Comment
-
Like
-
Share
RT @
harisbinali
: the price of ron97 fuel is set automatically. it will always rise... I thought we knew this. stop being ignorant fucks
April 1
from
Twitter
-
Comment
-
Like
-
Share
Developing a flu
April 1
from
Twitter
-
Comment
-
Like
-
Share
What about a Ruby client for socket.io?
March 31
from
Twitter
-
Comment
-
Like
-
Share
What's the simplest way to implement a line-based protocol socket server in node.js?
March 31
from
Twitter
-
Comment
-
Like
-
Share
Mine a[:b].inspect.split("=>").size-1 or a[:b][:c].inspect.split("=>").size-1. Similar to @
arzumy
we need no stinking recursion @
sengming
March 31
from
Twitter
-
Comment
-
Like
-
Share
We have a winner! “@arzumy: @
kamal
def foo(hash); hash.values.to_s.count('{'); end heh”
March 31
from
Twitter
-
Comment
-
Like
-
Share
RT @
sengming
: @
kamal
def depth(hash, c = 0); hash.keys.empty? ? c : hash.keys.inject(0){|lc, key| lc += depth(hash[hash.keys.first], c + 1) }; end
March 31
from
Twitter
-
Comment
-
Like
-
Share
RT @
sengming
: @
kamal
only goes in 1st key of hash tho. def depth(hash, count = 0); hash.keys.empty? ? count : depth(hash[hash.keys.first], count + 1); end
March 31
from
Twitter
-
Comment
-
Like
-
Share
Clarification: the method should return a single number given any particular subhash. foo(a[:b]) it returns 3. foo(a[:b][:c]) it returns 2
March 31
from
Twitter
-
Comment
-
Like
-
Share
Ruby code golf: given a deeply nested hash {:b=>{:c=>{:d=>{:e=>{}}}}}, return the count of descendents. e.g. :b => 3, :c => 2
March 31
from
Twitter
-
Comment
-
Like
-
Share
RT @
siong1987
: @
kamal
a={:b=>{:c=>{:d=>{:e=>{}}}}};def gk(h,i=0,k={});h.each{|x, y|k[x]=i;gk(y,i-1,k)};k;end;puts gk(a, gk(a).length)
March 31
from
Twitter
-
Comment
-
Like
-
Share
passenger_set_cgi_param HTTP_X_FORWARDED_PROTO https;
March 31
from
Twitter
-
Comment
-
Like
-
Share
RDRC speaker highlights: @
yukihiro_matz
@
imf
@
raasdnil
@
pragdave
@
mojombo
@
greggpollack
@
ryanbigg
. Super lineup or super lineup??
March 31
from
Twitter
-
Comment
-
Like
-
Share
Not really a quiz, more like code golf.
March 31
from
Twitter
-
Comment
-
Like
-
Share
RT @
Viki
: Looking for developers with
#RubyonRails
#CSS
&
#Javascript
experience! Based in Singapore. Details here:
http://careers.stackoverflow.com/jobs...
March 31
from
Twitter
-
Comment
-
Like
-
Share
Ruby quiz: given a deeply nested hash {:b=>{:c=>{:d=>{:e=>{}}}}}, return the count of descendents. e.g. :b => 3, :c => 2
March 31
from
Twitter
-
Comment
-
Like
-
Share
The IM equivalent of CC-ing all your bosses to cover your ass is adding them into a Skype chat.
March 31
from
Twitter
-
Comment
-
Like
-
Share
Happy 4th Birthday, Sarah!
http://yfrog.com/h2wjodlj
March 30
from
Twitter
-
Comment
-
Like
-
Share
What's a decent place to meet and have lunch in KL Sentral? Anything in Sooka Sentral?
March 30
from
Twitter
-
Comment
-
Like
-
Share
If I were Norwegian, I would have said "Hej
#wckl
pïpøl"
March 30
from
Twitter
-
Comment
-
Like
-
Share
Before my battery runs out, hei
#wckl
people, I'm hiring 3 fulltime developers to work on Ruby on Rails projects. Let's meet!
March 30
from
Twitter
-
Comment
-
Like
-
Share
On the way to
#wckl
March 30
from
Twitter
-
Comment
-
Like
-
Share
If I bought books, I bet I can be an actor too.
March 30
from
Twitter
-
Comment
-
Like
-
Share
Taiping in the hizzouse @
tekong
March 30
from
Twitter
-
Comment
-
Like
-
Share
WHAT??!! “@LilJon: IM N KUALA LUMPUR BITCHHH¡!!”
March 30
from
Twitter
-
Comment
-
Like
-
Share
I think we can offer a significantly better offering at @
fluentspace
:)
March 29
from
Twitter
-
Comment
-
Like
-
Share
White Space now has hot desk for RM20/day at Solaris. You need an existing membership (RM99/mo is cheapest tier). You get 1 mineral water.
March 29
from
Twitter
-
Comment
-
Like
-
Share
And I don't feel like building qt.
March 29
from
Twitter
-
Comment
-
Like
-
Share
Best of week from Kamal Fariz
-
Older items »
Other ways to read this feed: