Skip to content

Instantly share code, notes, and snippets.

View rishifter's full-sized avatar

Rishi rishifter

  • Mumbai, India
View GitHub Profile
@rishifter
rishifter / MindmapInput.md
Created May 14, 2021 11:42 — forked from zsviczian/MindmapInput.md
This is an Obsidian Templater script that genrates a mindmap drawing from a tabulated outline, similar to the sample outline attached.
  • Test 1
    • Test 1.1
  • Test 2
    • Test 2.1
    • Test 2.2
      • Test 2.2.1
      • Test 2.2.2
      • Test 2.2.3
        • Test 2.2.3.1
  • Test 3
@rishifter
rishifter / obsidian.templater.quick-capture.js
Created May 14, 2021 11:40 — forked from GitMurf/obsidian.templater.quick-capture.js
Obsidian Quick Capture using templater. Activate from anywhere in your vault to record quick ideas, notes, time logging, etc. The Quick Capture file does NOT need to be open.
<%*
//v1.4: Adding option for including a header for each DNP day to fold
//'first' will add to top of file. 'last' will add to bottom of file
let firstOrLastLine = 'first';
//Name of the Quick Capture file. Do NOT include extension '.md'
let qcFileName = 'Quick Capture';
//Leave this blank if you want to use the default file path location (set to '/' to use root of vault)
@rishifter
rishifter / days_until_birthday.md
Created May 4, 2021 17:22 — forked from 8bitspixel/days_until_birthday.md
Calculate the days until your next birthday with MomentJS

Next birthday with momentJs:

DaysUntil accepts a momentJS object with a birthday date which returns amount of days left

##Using a momentJS object with the day of your next birthday

function daysUntil(date) {
  var birthday = moment(date);
  var today = moment().format("YYYY-MM-DD");

if (birthday.isSame(today)) {