Podcast #128: We chat with Kent C Dodds about why he loves React and discuss what life was like in the dark days before Git. Listen now.
4 added 5 characters in body
source | link

Ruby, 94 61 5656 51

puts $><<(0..47).map{|i|"'%02d:%02d'"%[i/2,i%2*30]}.join"*",
"

Thanks to @blutorange (again) for his help in golfing!

Ruby, 94 61 56

puts (0..47).map{|i|"'%02d:%02d'"%[i/2,i%2*30]}.join",
"

Thanks to @blutorange (again) for his help in golfing!

Ruby, 94 61 56 51

$><<(0..47).map{|i|"'%02d:%02d'"%[i/2,i%2*30]}*",
"

Thanks to @blutorange (again) for his help in golfing!

3 added 5 characters in body
source | link

Ruby, 94 6161 56

puts (0..47).to_a.map{|h|"'%02d|i|"'%02d:%02d'"%[h%02d'"%[i/2,h%2*30]i%2*30]}.join",
"

Thanks to @blutorange (again) for his help in golfing!

Ruby, 94 61

puts (0..47).to_a.map{|h|"'%02d:%02d'"%[h/2,h%2*30]}.join",
"

Thanks to @blutorange (again) for his help in golfing!

Ruby, 94 61 56

puts (0..47).map{|i|"'%02d:%02d'"%[i/2,i%2*30]}.join",
"

Thanks to @blutorange (again) for his help in golfing!

2 deleted 116 characters in body
source | link

Ruby, 9494 61

puts (0..2347).to_a.map{|h|?'+(h/2).to_s.rjust(2,?0)+?|h|"'%02d:+(h%2*30).to_s.rjust(%02d'"%[h/2,?0)+?'h%2*30]}.join "join",\n"
"

I tried golfing it with other methods but this ended up being the shortest one... it might be possibleThanks to golf it more but I don't have the time now.@blutorange (again) for his help in golfing!

Ruby, 94

puts (0..23).to_a.map{|h|?'+(h/2).to_s.rjust(2,?0)+?:+(h%2*30).to_s.rjust(2,?0)+?'}.join ",\n"

I tried golfing it with other methods but this ended up being the shortest one... it might be possible to golf it more but I don't have the time now.

Ruby, 94 61

puts (0..47).to_a.map{|h|"'%02d:%02d'"%[h/2,h%2*30]}.join",
"

Thanks to @blutorange (again) for his help in golfing!

1
source | link