vault backup: 2022-12-15 13:56:27

This commit is contained in:
Bram Adams
2022-12-15 13:56:27 -06:00
parent fda1442f75
commit d5fdee1ecc
15 changed files with 260 additions and 96 deletions

View File

@@ -20,6 +20,13 @@
"type": "Macro", "type": "Macro",
"command": true, "command": true,
"macroId": "84ef441e-4dd5-4349-a811-be48fe49ab9f" "macroId": "84ef441e-4dd5-4349-a811-be48fe49ab9f"
},
{
"id": "0a8d7591-c4b6-43ad-8692-ea6f3d23aa1d",
"name": "Add Kanban to Weekly",
"type": "Macro",
"command": true,
"macroId": "8b7ed685-74c3-454b-ba8c-961c60a985af"
} }
], ],
"macros": [ "macros": [
@@ -156,6 +163,20 @@
} }
], ],
"runOnStartup": false "runOnStartup": false
},
{
"name": "Add Kanban to Weekly Note",
"id": "8b7ed685-74c3-454b-ba8c-961c60a985af",
"commands": [
{
"name": "make-weekly-kanban",
"type": "UserScript",
"id": "bc15efb1-5a5f-4df0-84b4-7758c9873b2d",
"path": "_scripts/make-weekly-kanban.js",
"settings": {}
}
],
"runOnStartup": false
} }
], ],
"inputPrompt": "single-line", "inputPrompt": "single-line",

View File

@@ -1,5 +1,49 @@
{ {
"recentFiles": [ "recentFiles": [
{
"basename": "2022-W51-Kanban",
"path": "Calendar/Weekly/2022-W51-Kanban.md"
},
{
"basename": "202212120002",
"path": "202212120002.md"
},
{
"basename": "202212090137",
"path": "202212090137.md"
},
{
"basename": "202212090136",
"path": "202212090136.md"
},
{
"basename": "Computed",
"path": "Computed/Computed.md"
},
{
"basename": "Squats",
"path": "Databases/Workouts/Squats.md"
},
{
"basename": "Workouts",
"path": "Computed/Workouts.md"
},
{
"basename": "Workouts",
"path": "Databases/Workouts/Workouts.md"
},
{
"basename": "Recipes",
"path": "Databases/Recipes/Recipes.md"
},
{
"basename": "CRM",
"path": "Computed/CRM.md"
},
{
"basename": "Workout",
"path": "Templates/Workout.md"
},
{ {
"basename": "Instant Pot Fried Rice", "basename": "Instant Pot Fried Rice",
"path": "Databases/Recipes/Instant Pot Fried Rice.md" "path": "Databases/Recipes/Instant Pot Fried Rice.md"
@@ -40,10 +84,6 @@
"basename": "Daily", "basename": "Daily",
"path": "Templates/Daily.md" "path": "Templates/Daily.md"
}, },
{
"basename": "CRM",
"path": "Computed/CRM.md"
},
{ {
"basename": "202212122239", "basename": "202212122239",
"path": "202212122239.md" "path": "202212122239.md"
@@ -76,18 +116,6 @@
"basename": "Test Project", "basename": "Test Project",
"path": "_PARA/Projects/Test Project/Test Project.md" "path": "_PARA/Projects/Test Project/Test Project.md"
}, },
{
"basename": "202212090136",
"path": "202212090136.md"
},
{
"basename": "202212090137",
"path": "202212090137.md"
},
{
"basename": "202212120002",
"path": "202212120002.md"
},
{ {
"basename": "Test Project 2", "basename": "Test Project 2",
"path": "_PARA/Projects/Test Project 2/Test Project 2.md" "path": "_PARA/Projects/Test Project 2/Test Project 2.md"
@@ -171,30 +199,6 @@
{ {
"basename": "2022-12-11--11-59-30", "basename": "2022-12-11--11-59-30",
"path": "Inbox/Smartphone Capture/2022-12-11--11-59-30.md" "path": "Inbox/Smartphone Capture/2022-12-11--11-59-30.md"
},
{
"basename": "2022-12-11--12-00-00",
"path": "Inbox/Computer Capture/2022-12-11--12-00-00.md"
},
{
"basename": "2022-Q4",
"path": "Calendar/Quarterly/2022-Q4.md"
},
{
"basename": "2022-12-11",
"path": "Calendar/Daily/2022-12-11.md"
},
{
"basename": "2022-12-12",
"path": "Calendar/Daily/2022-12-12.md"
},
{
"basename": "Paste URL into Selection",
"path": "_tests/Paste URL into Selection.md"
},
{
"basename": "Readwise",
"path": "_tests/External/Readwise.md"
} }
], ],
"omittedPaths": [], "omittedPaths": [],

View File

@@ -24,6 +24,11 @@
"type": "file", "type": "file",
"title": "Hotkeys", "title": "Hotkeys",
"path": "_tutorial/Hotkeys.md" "path": "_tutorial/Hotkeys.md"
},
{
"type": "file",
"title": "CRM",
"path": "Computed/CRM.md"
} }
] ]
} }

View File

@@ -35,35 +35,9 @@
"id": "e5e122d97fdadddf", "id": "e5e122d97fdadddf",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "markdown", "type": "kanban",
"state": { "state": {
"file": "Databases/Recipes/Instant Pot Fried Rice.md", "file": "Calendar/Weekly/2022-W51-Kanban.md"
"mode": "source",
"source": false
}
}
},
{
"id": "30767105d876abad",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Templates/Quarterly.md",
"mode": "source",
"source": false
}
}
},
{
"id": "de337eb10406382d",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "Templates/People.md",
"mode": "source",
"source": false
} }
} }
}, },
@@ -150,7 +124,8 @@
} }
], ],
"direction": "horizontal", "direction": "horizontal",
"width": 300 "width": 300,
"collapsed": true
}, },
"right": { "right": {
"id": "b2837026535a9eaa", "id": "b2837026535a9eaa",
@@ -167,7 +142,7 @@
"state": { "state": {
"type": "backlink", "type": "backlink",
"state": { "state": {
"file": "Databases/Recipes/Instant Pot Fried Rice.md", "file": "Calendar/Weekly/2022-W51-Kanban.md",
"collapseAll": false, "collapseAll": false,
"extraContext": false, "extraContext": false,
"sortOrder": "alphabetical", "sortOrder": "alphabetical",
@@ -184,7 +159,7 @@
"state": { "state": {
"type": "outgoing-link", "type": "outgoing-link",
"state": { "state": {
"file": "Databases/Recipes/Instant Pot Fried Rice.md", "file": "Calendar/Weekly/2022-W51-Kanban.md",
"linksCollapsed": false, "linksCollapsed": false,
"unlinkedCollapsed": true "unlinkedCollapsed": true
} }
@@ -207,7 +182,7 @@
"state": { "state": {
"type": "outline", "type": "outline",
"state": { "state": {
"file": "Databases/Recipes/Instant Pot Fried Rice.md" "file": "Calendar/Weekly/2022-W51-Kanban.md"
} }
} }
}, },
@@ -257,15 +232,15 @@
}, },
"active": "e5e122d97fdadddf", "active": "e5e122d97fdadddf",
"lastOpenFiles": [ "lastOpenFiles": [
"Templates/People.md", "202212120002.md",
"Databases/CRM/Jane Doe.md", "202212090137.md",
"Databases/CRM/John Doe.md", "202212090136.md",
"Untitled.md", "Computed/Computed.md",
"Databases/CRM/Untitled.md", "Databases/Workouts/Squats.md",
"Templates/Quarterly.md", "Computed/Workouts.md",
"Databases/CRM/CRM.md", "Databases/Workouts/Workouts.md",
"Databases/Recipes/Instant Pot Fried Rice.md", "Databases/Recipes/Recipes.md",
"Templates/Recipes.md", "Computed/CRM.md",
"Templates/Weekly.md" "Templates/Workout.md"
] ]
} }

View File

@@ -5,15 +5,15 @@ projects: [Test Project]
title: The Dress title: The Dress
linter-yaml-title-alias: The Dress linter-yaml-title-alias: The Dress
date created: Friday, December 9th 2022, 1:36:16 am date created: Friday, December 9th 2022, 1:36:16 am
date modified: Wednesday, December 14th 2022, 3:33:55 pm date modified: Thursday, December 15th 2022, 1:22:30 pm
--- ---
# The Dress # The Dress
The dress[^1] was a meme in 2015 that broke friendships apart and caused a full out war on the internet. The dress[^1] was a meme in 2015 that broke friendships apart and caused a full out war on the internet.
No one could decide whether the dress was blue or gold. Unlike the Harlem Shake, [[202212090137]] , which brought people together, the dress caused a impassable rift in an already divided nation. No one could decide whether the dress was blue or gold. Unlike the Harlem Shake, [[202212090137]] , which brought people together, the dress caused a impassable rift in an already divided nation.
![[The_dress_blueblackwhitegold.jpeg]] ![[The_dress_blueblackwhitegold.jpeg]]
[^1]: [The dress - Wikipedia](https://en.wikipedia.org/wiki/The_dress) [^1]: [The dress - Wikipedia](https://en.wikipedia.org/wiki/The_dress)

View File

@@ -5,19 +5,15 @@ projects: []
title: Harlem Shake title: Harlem Shake
linter-yaml-title-alias: Harlem Shake linter-yaml-title-alias: Harlem Shake
date created: Friday, December 9th 2022, 1:37:28 am date created: Friday, December 9th 2022, 1:37:28 am
date modified: Wednesday, December 14th 2022, 3:33:55 pm date modified: Thursday, December 15th 2022, 1:22:40 pm
--- ---
# Harlem Shake # Harlem Shake
The Harlem Shake[^1] was a regrettable societal decision everyone underwent in early 2013, flooding the Internet with videos of people of all ages gyrating aggresively to Harlem Shake by Bauer.[^2] If there was any silver lining from this horrific trend, it was that it brought people together, unlike The Dress, [[202212090136]], which tore entire families apart. The Harlem Shake[^1] was a regrettable societal decision everyone underwent in early 2013, flooding the Internet with videos of people of all ages gyrating aggresively to Harlem Shake by Bauer.[^2] If there was any silver lining from this horrific trend, it was that it brought people together, unlike The Dress, [[202212090136]], which tore entire families apart.
[BEST / FUNNIEST Harlem Shake Compilation!](https://www.youtube.com/watch?v=E5xE1O6A5tM&ab_channel=Niles) [BEST / FUNNIEST Harlem Shake Compilation!](https://www.youtube.com/watch?v=E5xE1O6A5tM&ab_channel=Niles)
[^1]: [Harlem Shake (meme) - Wikipedia](https://en.wikipedia.org/wiki/Harlem_Shake_(meme)) [^1]: [Harlem Shake (meme) - Wikipedia](https://en.wikipedia.org/wiki/Harlem_Shake_(meme))
[^2]: [Harlem Shake - song and lyrics by Baauer | Spotify](https://open.spotify.com/track/01XFgRZfZI7oBagNf1Loml?si=bee9cf7312594b24)
[^2]: [Harlem Shake - song and lyrics by Baauer | Spotify](https://open.spotify.com/track/01XFgRZfZI7oBagNf1Loml?si=bee9cf7312594b24)

View File

@@ -0,0 +1,30 @@
---
kanban-plugin: basic
---
## To Do
## In Progress
## Done
**Complete**
## Waiting On
%% kanban:settings
```
{"kanban-plugin":"basic"}
```
%%

View File

@@ -1,15 +1,18 @@
--- ---
tags: aliases: [Computed]
tags: []
title: Computed title: Computed
date created: Saturday, December 10th 2022, 6:04:39 pm date created: Saturday, December 10th 2022, 6:04:39 pm
date modified: Wednesday, December 14th 2022, 3:33:55 pm date modified: Thursday, December 15th 2022, 1:22:15 pm
linter-yaml-title-alias: Computed
--- ---
Dataview collections
%% Begin Waypoint %% %% Begin Waypoint %%
- [[CRM]] - [[CRM]]
- [[Tasks]] - [[Tasks]]
- [[To Process]] - [[To Process]]
- [[Trackers]] - [[Trackers]]
- [[Workouts]]
%% End Waypoint %% %% End Waypoint %%

6
Computed/Workouts.md Normal file
View File

@@ -0,0 +1,6 @@
```dataview
table reps, weight
from "Databases/Workouts"
where file.name != "Workouts"
```

View File

@@ -0,0 +1,5 @@
%% Begin Waypoint %%
- [[Instant Pot Fried Rice]]
%% End Waypoint %%

View File

@@ -0,0 +1,19 @@
---
aliases: [Squats]
tags: [workout]
title: Squats
reps: 5
weight: 135
linter-yaml-title-alias: Squats
date created: Thursday, December 15th 2022, 1:13:46 pm
date modified: Thursday, December 15th 2022, 1:15:18 pm
---
# Squats
## Form
<iframe src='https://gfycat.com/ifr/HonoredFondKawala' frameborder='0' scrolling='no' allowfullscreen width='640' height='684'></iframe><p> <a href="https://gfycat.com/honoredfondkawala">via Gfycat</a></p>
<iframe src='https://gfycat.com/ifr/FrayedDiligentDogwoodclubgall' frameborder='0' scrolling='no' allowfullscreen width='640' height='404'></iframe>

View File

@@ -0,0 +1,5 @@
%% Begin Waypoint %%
- [[Squats]]
%% End Waypoint %%

View File

@@ -11,6 +11,7 @@ date modified: Wednesday, December 14th 2022, 3:33:55 pm
- [[Quarterly]] - [[Quarterly]]
- [[Recipes]] - [[Recipes]]
- [[Weekly]] - [[Weekly]]
- [[Workout]]
- [[Zettelkasten Note]] - [[Zettelkasten Note]]
%% End Waypoint %% %% End Waypoint %%

12
Templates/Workout.md Normal file
View File

@@ -0,0 +1,12 @@
---
aliases: [Workout]
tags: [workout]
title: Workout
reps:
weight:
linter-yaml-title-alias: Workout
date created: Thursday, December 15th 2022, 1:13:46 pm
date modified: Thursday, December 15th 2022, 1:13:57 pm
---
# <% tp.system.prompt("What Is the Full Name of This Workout?") %>

View File

@@ -0,0 +1,82 @@
module.exports = async function makeWeeklyKanban(params) {
const WEEKLY_FOLDER = "Calendar/Weekly/";
// This script is released to the public domain and may be used, modified and
// distributed without restrictions. Attribution not necessary but appreciated.
// Source: https://weeknumber.com/how-to/javascript
// Returns the ISO week of the date.
Date.prototype.getWeek = function () {
var date = new Date(this.getTime());
date.setHours(0, 0, 0, 0);
// Thursday in current week decides the year.
date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
// January 4 is always in week 1.
var week1 = new Date(date.getFullYear(), 0, 4);
// Adjust to Thursday in week 1 and count number of weeks from date to week1.
return (
1 +
Math.round(
((date.getTime() - week1.getTime()) / 86400000 -
3 +
((week1.getDay() + 6) % 7)) /
7
)
);
};
// Returns the four-digit year corresponding to the ISO week of the date.
Date.prototype.getWeekYear = function () {
var date = new Date(this.getTime());
date.setDate(date.getDate() + 3 - ((date.getDay() + 6) % 7));
return date.getFullYear();
};
const year = new Date().getWeekYear();
const weekNum = new Date().getWeek() + 1; // obsidian calendar uses 1-indexed weeks
const filename = `${year}-W${weekNum}-Kanban.md`;
if (params.app.vault.getAbstractFileByPath(`${WEEKLY_FOLDER}${filename}`)) {
const Notice = params.obsidian.Notice;
new Notice(
`Weekly Kanban already exists for week ${weekNum} of ${year}`
);
return;
}
await params.app.vault.create(`${WEEKLY_FOLDER}${filename}`, `---
kanban-plugin: basic
---
## To Do
## In Progress
## Done
**Complete**
## Waiting On
%% kanban:settings
\`\`\`
{"kanban-plugin":"basic"}
\`\`\`
%%`);
};