Skip to content

Instantly share code, notes, and snippets.

Avatar

Brendon Walsh niamu

View GitHub Profile
@niamu
niamu / beats.cljs
Last active Mar 24, 2017
Swatch Internet Time (Beats Time)
View beats.cljs
;; https://en.wikipedia.org/wiki/Swatch_Internet_Time
(defn beats
[]
(let [d (js/Date.)]
(->> (/ (+ (.getUTCSeconds d)
(* (.getUTCMinutes d) 60)
(* (inc (.getUTCHours d)) 3600))
86.4)
(.floor js/Math))))
View keybase.md

Keybase proof

I hereby claim:

  • I am niamu on github.
  • I am niamu (https://keybase.io/niamu) on keybase.
  • I have a public key whose fingerprint is E115 849B 95B4 52AF 1C9F 3C4E BA93 F75E ED4D 48FE

To claim this, I am signing this object: