Matt's Roof Garden

Powered by 🌱Roam Garden

July 30th, 2021

v1.5 - JS

let queryText = `[:find (pull ?e [:edit/time
                                    :block/string
                                    :block/uid])
                  :where 
                    [?e :edit/time]
                    ]`;

window.roamAlphaAPI.q(queryText).flat().sort(function(first, second) {
 return second.time - first.time;}).slice(0, 5);
window.roamAlphaAPI.q(`[:find ?e 
                        :where [?e :block/string]]`
window.roamAlphaAPI.pull('[*]', n[0])
[':block/string']).join(' ').match(/([^\u0000-\u007F]|\w)+/g).length;

The whole of Italy goes on holiday mid august?