Timeline for When will Brexit happen?
Current License: CC BY-SA 3.0
18 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jun 17, 2020 at 9:04 | history | edited | CommunityBot |
Commonmark migration
|
|
Apr 4, 2017 at 21:44 | history | edited | Stephen Touset | CC BY-SA 3.0 |
added 105 characters in body
|
Apr 4, 2017 at 21:41 | comment | added | Stephen Touset | Excellent discovery! | |
Apr 4, 2017 at 21:29 | comment | added | Synoli |
@StephenTouset You can move +"\r" to the right of the array. This enables you to use ['%02d']*4*?: instead of '%02d:'*4+"\b " so you can lose the parentheses, which nets you one byte. Save yet another byte by writing +?\r instead of +"\r" .
|
|
Apr 4, 2017 at 17:44 | comment | added | Eric Duminil |
You're welcome. This clock might still be 1s early though, even with .to_r instead of .to_f
|
|
Apr 4, 2017 at 17:43 | history | edited | Stephen Touset | CC BY-SA 3.0 |
added 8 characters in body
|
Apr 4, 2017 at 17:34 | comment | added | Stephen Touset |
Thanks! Tied with PHP now. :) I used to_r instead of to_f to preserve precision.
|
|
Apr 4, 2017 at 17:34 | history | edited | Stephen Touset | CC BY-SA 3.0 |
added 86 characters in body
|
Apr 4, 2017 at 12:50 | comment | added | Eric Duminil |
Working with hours instead of seconds seems to save 3 bytes : loop{h=431664-Time.now.to_f/3600;$><<('%02d:'*4+"\b \r")%[h/24,h%24,h%1*60,3600*h%60]} Seconds might be off by 1 though, due to rounding.
|
|
Apr 3, 2017 at 17:45 | history | edited | Stephen Touset | CC BY-SA 3.0 |
added 1 character in body
|
Apr 3, 2017 at 8:20 | history | edited | Stephen Touset | CC BY-SA 3.0 |
added 64 characters in body
|
Apr 3, 2017 at 8:09 | history | edited | Stephen Touset | CC BY-SA 3.0 |
added 131 characters in body
|
Apr 3, 2017 at 7:52 | history | edited | Stephen Touset | CC BY-SA 3.0 |
edited body
|
Apr 3, 2017 at 7:43 | history | edited | Stephen Touset | CC BY-SA 3.0 |
added 233 characters in body
|
Apr 3, 2017 at 7:34 | history | edited | Stephen Touset | CC BY-SA 3.0 |
deleted 35 characters in body
|
Apr 3, 2017 at 7:26 | history | edited | Stephen Touset | CC BY-SA 3.0 |
|
Apr 3, 2017 at 7:21 | history | edited | Stephen Touset | CC BY-SA 3.0 |
|
Apr 3, 2017 at 7:13 | history | answered | Stephen Touset | CC BY-SA 3.0 |