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.

# golflua5252 51 chars

~@h=0~@n=0,46w47w(S.q("'%02d:%d0',"%d0'%c",hn/2,h%2*3n%2*3,n<47&44|0))$w("'23:30'")$


If I could figure out the edge case of 23:30Using ascii 44 = (with respect to the comma), I'd save quite, and 0 a few charactersspace saves a character.

An ungolfed Lua version would be

for h=0,4647 do
print(string.format("'%02d:%d0',"%d0'%c",h/2,h%2*3, if h<47 and 44 or 0))
end
write("'23:30'")


The if statement is much like the ternary operator a > b ? 44 : 0.

~@h=0,46w(S.q("'%02d:%d0',",h/2,h%2*3))$w("'23:30'")  If I could figure out the edge case of 23:30 (with respect to the comma), I'd save quite a few characters. An ungolfed Lua version would be for h=0,46 do print(string.format("'%02d:%d0',",h/2,h%2*3)) end write("'23:30'")  # golflua52 51 chars ~@n=0,47w(S.q("'%02d:%d0'%c",n/2,n%2*3,n<47&44|0))$


Using ascii 44 = , and 0 a space saves a character.

An ungolfed Lua version would be

for h=0,47 do
print(string.format("'%02d:%d0'%c",h/2,h%2*3, if h<47 and 44 or 0))
end


The if statement is much like the ternary operator a > b ? 44 : 0.

1

# golflua 52 chars

~@h=0,46w(S.q("'%02d:%d0',",h/2,h%2*3))\$w("'23:30'")


If I could figure out the edge case of 23:30 (with respect to the comma), I'd save quite a few characters.

An ungolfed Lua version would be

for h=0,46 do
print(string.format("'%02d:%d0',",h/2,h%2*3))
end
write("'23:30'")