This file contains 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
;; Disable mouse on typing | |
(defvar jogo3000/mouse-disabled nil) | |
(use-package disable-mouse) | |
(defun jogo3000/disable-mouse () | |
"Disable mouse." | |
(setq jogo3000/mouse-disabled t) | |
(global-disable-mouse-mode t)) | |
(defun jogo3000/enable-mouse () |
This file contains 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
;; Adaptations of equations found in Jack Daniels - Daniels' Running Formula in clojure | |
(import (java.lang Math)) | |
(defn %VOmax | |
"Returns the percentage of VOmax a runner can sustain for the given duration" | |
[seconds] | |
(let [mins (/ seconds 60)] | |
(+ 0.8 | |
(* 0.1894393 | |
(Math/exp (* -0.012778 mins))) |
This file contains 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
(: | |
Outputs all Trackpoints in the BaseX database 'moves' in CSV format with columns in following order | |
ID - Activity identifier | |
SPORT - Sport (Running|Biking|Other) | |
TIMESTAMP - Timestamp as UNIX epoch | |
LAT - Latitude as degrees | |
LONG - Longitude as degrees | |
HR - Heart rate as BPM (integer) | |
ALT - Altitude as float | |
CAD - Cadence as integer |