Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env bb
;;
;; This is a babashka script to calculate the duration a github issue spent in
;; each github project board column. It will output the results in a few
;; different views, where this view is maybe most interesting:
;;
;; | :iss-title | :iss-html | Total | To do | In Progress | Done |
;; |--------------------+--------------+-------+-------+-------------+------+
;; | your issue 1 title | issue 1 html | 100 | 25 | 50 | 25 |
mdlr('mmzsource:raytrace', m => {
// SHARED
function isEqualNumber(n1, n2, epsilon=Number.EPSILON) {
return Math.abs(n1-n2) < epsilon;
}
function dot(r,c){
console.assert(r.length === c.length);