Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Timeline for It's time for a clock challenge!

Current License: CC BY-SA 3.0

11 events
when toggle format what by license comment
Jun 17, 2020 at 9:04 history edited Community Bot
Commonmark migration
Jan 18, 2017 at 12:19 comment added Value Ink @IMP1 thanks! Although, it only saved 3 bytes AFAIK
Jan 18, 2017 at 12:18 history edited Value Ink CC BY-SA 3.0
added 10 characters in body
Jan 18, 2017 at 12:03 comment added IMP1 For windows, you can puts"\e[H\e[2J" to clear the console, which I think shaves four bytes. It would make your first line read loop{t=Time.now;puts"\e[H\e[2J%02d %s
Jan 18, 2017 at 11:58 comment added Value Ink @IMP1 as it turns out, puts`clear` is the way to go if you use Unix terminals. It just doesn't work with the Windows command prompt cls.
Jan 18, 2017 at 11:57 history edited Value Ink CC BY-SA 3.0
added 7 characters in body
Jan 18, 2017 at 11:53 comment added Value Ink @IMP1 indeed, backticks don't work for cls. Thanks for your other suggestion, though!
Jan 18, 2017 at 11:50 history edited Value Ink CC BY-SA 3.0
added 7 characters in body
Jan 18, 2017 at 10:26 comment added IMP1 It seems not, but you can use h=t.hour and then use h instead of the second t.hour, which saves 3 bytes.
Jan 18, 2017 at 10:14 comment added IMP1 Can you use backticks instead of system? `cls` vs system'cls'
Jan 17, 2017 at 19:38 history answered Value Ink CC BY-SA 3.0

AltStyle によって変換されたページ (->オリジナル) /