Skip to content

Instantly share code, notes, and snippets.

@JRJurman
Last active October 6, 2018 01:27
Show Gist options
  • Select an option

  • Save JRJurman/0610468cb011bf77091d078df1d71bd3 to your computer and use it in GitHub Desktop.

Select an option

Save JRJurman/0610468cb011bf77091d078df1d71bd3 to your computer and use it in GitHub Desktop.
Binary Clock Actions
module.exports = {
init: () => new Date(),
tick: () => new Date()
}
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