Timeline for When will Brexit happen?
Current License: CC BY-SA 3.0
16 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 3, 2017 at 20:06 | history | edited | steve | CC BY-SA 3.0 |
-2 thanks to muru
|
Apr 3, 2017 at 20:01 | history | edited | steve | CC BY-SA 3.0 |
since 3600 and 86400 are divisible by 60, lose them in the final % calc
|
Apr 3, 2017 at 15:26 | history | edited | Toby Speight | CC BY-SA 3.0 |
Added prettify hint
|
Apr 3, 2017 at 10:47 | comment | added | muru |
C=:%02d;printf "%03d$C$C$C\r" to save a byte? And move the assignments to A and B in the arithmetic context: D=$[B=3600,A=24*B,1553990400-`date +%s`] to save another?
|
|
Apr 2, 2017 at 22:10 | comment | added | caird coinheringaahin g♦ | that's a shame. I'm used to python so... | |
Apr 2, 2017 at 22:09 | comment | added | steve |
3600 variable now done, thx. 24*B would need A=$[24*B] so not possible there though
|
|
Apr 2, 2017 at 22:07 | history | edited | steve | CC BY-SA 3.0 |
added 15 characters in body
|
Apr 2, 2017 at 22:03 | comment | added | caird coinheringaahin g♦ |
Assign 3600 to a variable to save 2 bytes? You might also be able to change B=3600;A=86400 to B=3600;A=24*B for another byte?
|
|
Apr 2, 2017 at 21:57 | history | edited | steve | CC BY-SA 3.0 |
deleted 11 characters in body
|
Apr 2, 2017 at 21:41 | history | edited | steve | CC BY-SA 3.0 |
rm expr
|
Apr 2, 2017 at 21:34 | history | edited | steve | CC BY-SA 3.0 |
var for 86400
|
Apr 2, 2017 at 21:27 | history | edited | steve | CC BY-SA 3.0 |
rm variables
|
Apr 2, 2017 at 21:19 | history | edited | steve | CC BY-SA 3.0 |
add ungolfed ver
|
Apr 2, 2017 at 21:15 | comment | added | steve |
Fair point, have now given that a try but it yields line 1: [1]: command not found error. Spaces are mandatory it seems :-(
|
|
Apr 2, 2017 at 19:45 | comment | added | caird coinheringaahin g♦ |
Never golfed in Bash before but can you remove the spaces at the while: while[1] ?
|
|
Apr 2, 2017 at 19:41 | history | answered | steve | CC BY-SA 3.0 |