Skip to content

Instantly share code, notes, and snippets.

View Azurewren's full-sized avatar

Azurewren Azurewren

  • Perth, Western Australia
View GitHub Profile
@Azurewren
Azurewren / DVChart.js
Created August 15, 2022 02:06
This is from @mulfok but with the renderMonthlyChart at the end of the file
/**
* Class for rendering charts in Obsidian.
* To be used with DataviewJS, Obsidian Charts and CustomJS plugins
* @author Olivier C <olo06@hotmail.fr>
*/
class DvCharts {
/**
* Render a chart on a daily basis with a custom attribute extracted from dailies pages
* @param {object} args - object to pass containing properties used
@Azurewren
Azurewren / Automated Periodic Note Creation.md
Last active February 5, 2024 20:26
Automated Periodic Note Creation

This is a Templater Startup Script for use in Obsidian.

Each time Obsidian is opened, Templater runs the script to see if a weekly, monthly, quarterly, and yearly file exists for the current date. If one exists, it moves on, if not, it creates the file using the appropriate template, in the appropriate place.

<%*
let wk = tp.date.now('GGGG-[W]WW');
let mnth = tp.date.now('MM MMMM');
let qrtr = tp.date.now('Qo [Quarter]');
let yr = tp.date.now('YYYY');