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",
"command": true,
"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": [
@@ -156,6 +163,20 @@
}
],
"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",

View File

@@ -1,5 +1,49 @@
{
"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",
"path": "Databases/Recipes/Instant Pot Fried Rice.md"
@@ -40,10 +84,6 @@
"basename": "Daily",
"path": "Templates/Daily.md"
},
{
"basename": "CRM",
"path": "Computed/CRM.md"
},
{
"basename": "202212122239",
"path": "202212122239.md"
@@ -76,18 +116,6 @@
"basename": "Test Project",
"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",
"path": "_PARA/Projects/Test Project 2/Test Project 2.md"
@@ -171,30 +199,6 @@
{
"basename": "2022-12-11--11-59-30",
"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": [],

View File

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

View File

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

View File

@@ -5,7 +5,7 @@ projects: [Test Project]
title: The Dress
linter-yaml-title-alias: The Dress
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

View File

@@ -5,19 +5,15 @@ projects: []
title: Harlem Shake
linter-yaml-title-alias: Harlem Shake
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
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)
[^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)

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
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 %%
- [[CRM]]
- [[Tasks]]
- [[To Process]]
- [[Trackers]]
- [[Workouts]]
%% 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]]
- [[Recipes]]
- [[Weekly]]
- [[Workout]]
- [[Zettelkasten Note]]
%% 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"}
\`\`\`
%%`);
};