Skip to content

Instantly share code, notes, and snippets.

View marcelometal's full-sized avatar
🤘

Marcelo Jorge Vieira marcelometal

🤘
View GitHub Profile
@marcelometal
marcelometal / analytics_month.md
Last active February 24, 2025 17:15
Obisidian + DataView: Analytics Month

🚀 Itens trabalhados

let pages = [...dv.pages().where(p => p.file.path.includes('/'))];
pages.sort((a, b) => b.file.name.localeCompare(a.file.name));

let grouped = {};

function addToHierarchy(pathArray, obj) {
 let part = pathArray[0];
@marcelometal
marcelometal / analytics_year.md
Created February 24, 2025 17:17
Obisidian + DataView: Analytics Year

🚀 Itens trabalhados

let pages = [...dv.pages().where(p => p.file.path.includes('/'))];
pages.sort((a, b) => b.file.name.localeCompare(a.file.name));

let grouped = {};

function addToHierarchy(pathArray, obj) {
  let part = pathArray[0];