Skip to content

Instantly share code, notes, and snippets.

View acinader's full-sized avatar
:octocat:
headphones on!

Arthur Cinader acinader

:octocat:
headphones on!
View GitHub Profile
@acinader
acinader / formatTime.html
Created May 3, 2018 16:25
Format seconds into minutes:seconds
<html>
<span id='time'></span>
<script>
var formatTime = function formatTime(element, time) {
var min = Math.floor(time / 60);
var sec = time % 60;
element.innerHTML = min + ':' + pad(sec);
};

Keybase proof

I hereby claim:

  • I am acinader on github.
  • I am acinader (https://keybase.io/acinader) on keybase.
  • I have a public key ASDz4uIir0HPRg4MbDYRpD1C94G3m9rlJLx2sQc1wF9F0Qo

To claim this, I am signing this object: