Skip to content

Instantly share code, notes, and snippets.

View WebInspectInc's full-sized avatar
:shipit:
shippin' shippin' shippin'

Timothy Miller WebInspectInc

:shipit:
shippin' shippin' shippin'
View GitHub Profile
@WebInspectInc
WebInspectInc / book-summary.js
Created January 24, 2024 15:00
Summarizing books read with DataviewJS in Obsidian
```dataviewjs
const query = 'outgoing([[]]) AND #books';
const total =
dv
.pages(query)
.filter(item => item
.hasOwnProperty('pages'))
.values
.reduce((sum, item) => sum + item.pages, 0);
@WebInspectInc
WebInspectInc / cards.css
Last active November 11, 2024 19:43
@kepano's Cards Snippet from the Minimal Theme
/* MIT License | Copyright (c) Stephan Ango (@kepano)
Cards snippet for Obsidian
author: @kepano
version: 3.0.0
Support my work:
https://github.com/sponsors/kepano
@WebInspectInc
WebInspectInc / Word-Count-Tracker.md
Last active August 6, 2024 09:52
Word Count Tracker for Obsidian
daysback chartlength location
200
200
"Notes"
const start = moment();
const daysback = parseInt(dv.current().daysback) || 2;
const location = dv.current().location || '';
@WebInspectInc
WebInspectInc / Obsidian-Rainbow-Folders-in-Root.css
Created October 10, 2023 13:31
Rainbow-ifies folders in Obsidian, but only the root folders
/* Coloured Folders
A CSS snippet by WebInspectInc
with inspiration from Lithou
This snippet colors the folders in your sidebar based on your theme colors,
with fallbacks in case your theme doesn't specify default colors
This snippet has been modified to only affect only root folders
*/
:root{
/* folder colours */
@WebInspectInc
WebInspectInc / tasks-dashboard.js
Last active August 6, 2024 09:58
A small script for creating task completion graphs in Obsidian. See how to use this here: https://obsidian.rocks/plotting-task-completions-with-dataviewjs-and-obsidian-charts/
const dateformat = "YYYY-MM-DD";
const monthformat = "YYYY-MM";
const yearformat = "YYYY";
const days = parseInt(dv.current().days);
const months = parseInt(dv.current().months);
const years = parseInt(dv.current().years);
const projectFolder = dv.current().projectfolder || '';
const graphColor = dv.current().lineColor || '#de454e';
const charts = [];
Field Name Data Type Description
file.name Text The file name as seen in Obsidians sidebar.
file.folder Text The path of the folder this file belongs to.
file.path Text The full file path, including the files name.
file.ext Text The extension of the file type; generally md.
file.link Link A link to the file.
file.size Number The size (in bytes) of the file.
file.ctime Date with Time The date that the file was created.
file.cday Date The date that the file was created.
@WebInspectInc
WebInspectInc / on-this-day.js
Last active February 16, 2023 20:46
A Dataview script for displaying an "On this Day" feature in Obsidian. Read more here: https://obsidian.rocks/supercharge-your-daily-notes-in-obsidian/
```dataviewjs
// update path and minyear if needed
const journalPath = 'Journal/Daily';
const minYear = 2012;
const d = new Date();
const rangeOfYears = (start, end) => Array(end - start + 1) .fill(start).map((year, index) => year + index);
const availableYears = rangeOfYears(minYear, d.getYear() + 1900);
const month = ("0" + (d.getMonth() + 1)).slice(-2);
0.0.0.0 widget.intercom.io
0.0.0.0 connect.facebook.net/en_US/sdk/xfbml.customerchat.js
0.0.0.0 assets.producthunt.com/assets/upwigloader.js
0.0.0.0 js.driftt.com
0.0.0.0 crisp.chat
0.0.0.0 intergram.xyz/js
0.0.0.0 widget.mfy.im
0.0.0.0 connect.podium.com
0.0.0.0 js.usemessages.com
0.0.0.0 static.getchipbot.com
0.0.0.0 youtube.com
0.0.0.0 www.youtube.com
@WebInspectInc
WebInspectInc / README.md
Last active July 15, 2022 17:24
Sync .password-store.git repository