Last active
October 6, 2018 01:27
-
-
Save JRJurman/0610468cb011bf77091d078df1d71bd3 to your computer and use it in GitHub Desktop.
Binary Clock Actions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| init: () => new Date(), | |
| tick: () => new Date() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = { | |
| init: () => null, | |
| startTicking: (ticker, delay, actions) => { | |
| return setInterval(() => { | |
| actions.tick() | |
| }, delay) | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment