vault backup: 2023-04-19 10:10:28

This commit is contained in:
Daniel Bulant 2023-04-19 10:10:28 +02:00
parent 4d99638c56
commit 40c3471379
15 changed files with 430 additions and 27 deletions

View file

@ -48,5 +48,6 @@
"obsidian-quiet-outline",
"lapel",
"omnisearch",
"obsidian-math-plus"
"obsidian-math-plus",
"aw-watcher-obsidian"
]

View file

@ -0,0 +1,167 @@
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// main.ts
var main_exports = {};
__export(main_exports, {
default: () => ActivityWatchPlugin
});
module.exports = __toCommonJS(main_exports);
var import_obsidian = require("obsidian");
var os = __toESM(require("os"));
var AWrequest = class {
constructor(url, body) {
this.contentType = "application/json";
this.headers = { "Content-type": "application/json", "charset": "utf-8" };
this.method = "post";
this.throw = true;
this.url = url;
this.body = body;
}
};
var DEFAULT_SETTINGS = {
devServer: false
};
var ActivityWatchPlugin = class extends import_obsidian.Plugin {
constructor() {
super(...arguments);
this.hostname = os.hostname();
this.watcher_name = "aw-watcher-obsidian";
this.sleeptime = 5;
}
async init() {
this.statusBarItemEl.setText("ActivityWatch initializing...");
const port = this.settings.devServer ? 5666 : 5600;
this.bucket_id = `${this.watcher_name}_${this.hostname}`;
this.endpoint_url = `http://127.0.0.1:${port}/api/0/`;
if (this.settings.devServer) {
console.log(`sleeptime is ${this.sleeptime}` + (this.sleeptime <= 0 ? ", skipping any timed heartbeats" : ""));
console.log(`watcher_name is ${this.watcher_name}`);
console.log(`port is ${port}`);
console.log(`bucket_id is ${this.bucket_id}`);
console.log(`endpoint_url is ${this.endpoint_url}`);
}
await this.createBucket(this.bucket_id, "app.editor.activity");
this.statusBarItemEl.setText("ActivityWatch active");
}
async post(endpoint, data) {
const r = new AWrequest(this.endpoint_url + endpoint, JSON.stringify(data));
try {
await (0, import_obsidian.request)(r);
} catch (e) {
console.log(`Request to URL [${r.url}] using [${r.method}], Header [${r.headers}], Body [${r.body}] failed!`);
throw e;
}
}
async createBucket(id, event_type) {
const data = {
"client": this.watcher_name,
"hostname": this.hostname,
"type": event_type
};
await this.post(`buckets/${id}`, data);
}
async sendData(id, heartbeat_data, pulsetime) {
const endpoint = `buckets/${id}/heartbeat?pulsetime=${pulsetime}`;
await this.post(endpoint, { "timestamp": new Date().toISOString(), "duration": 0, "data": heartbeat_data });
}
async sendAbstractFileEvent(file, extraData, pulseTime) {
if (file) {
await this.sendData(this.bucket_id, {
"file": "/" + file.path,
"project": file.vault.getName(),
"language": "Markdown",
"projectPath": file.vault.adapter instanceof import_obsidian.FileSystemAdapter ? file.vault.adapter.getBasePath() : "unknown vault path",
"editor": "Obsidian",
"editorVersion": import_obsidian.apiVersion,
...extraData ? extraData : {}
}, pulseTime);
}
}
async sendFileHeartbeatEvent(file) {
await this.sendAbstractFileEvent(file, {
"eventType": "obsidian.activeFileHeartbeatEvent"
}, this.sleeptime + 1);
}
async sendFileRenameEvent(file, oldPath) {
await this.sendAbstractFileEvent(file, {
"eventType": "obsidian.renameFileEvent",
"oldPath": oldPath
}, 0);
}
async sendFileDeleteEvent(oldPath) {
await this.sendAbstractFileEvent(oldPath, {
"eventType": "obsidian.deleteFileEvent"
}, 0);
}
async sendFileCreateEvent(path) {
await this.sendAbstractFileEvent(path, {
"eventType": "obsidian.createFileEvent"
}, 0);
}
async onload() {
this.statusBarItemEl = this.addStatusBarItem();
await this.loadSettings();
await this.init();
this.registerEvent(this.app.vault.on("rename", (file, oldPath) => this.sendFileRenameEvent(file, oldPath)));
this.registerEvent(this.app.vault.on("delete", this.sendFileDeleteEvent));
this.app.workspace.onLayoutReady(() => {
this.registerEvent(this.app.vault.on("create", (f) => this.sendFileCreateEvent(f)));
});
this.addSettingTab(new ObsidianWatcherSettingTab(this.app, this));
if (this.sleeptime > 0) {
this.registerInterval(window.setInterval(() => {
this.sendFileHeartbeatEvent(this.app.workspace.getActiveFile());
}, this.sleeptime * 1e3));
}
}
onunload() {
this.statusBarItemEl.remove();
}
async loadSettings() {
this.settings = Object.assign({}, DEFAULT_SETTINGS, await this.loadData());
}
async saveSettings() {
await this.saveData(this.settings);
}
};
var ObsidianWatcherSettingTab = class extends import_obsidian.PluginSettingTab {
constructor(app, plugin) {
super(app, plugin);
this.plugin = plugin;
}
display() {
const { containerEl } = this;
containerEl.empty();
containerEl.createEl("h2", { text: "Settings for ActivityWatch plugin" });
new import_obsidian.Setting(containerEl).setName("ActivityWatch development server").setDesc("If enabled, uses development server for ActivityWatch instead of production. Default off.").addToggle((t) => t.setValue(this.plugin.settings.devServer).onChange(async (value) => {
console.log(`switching plugin to use ${value ? "development" : "production"} backend`);
this.plugin.settings.devServer = value;
await this.plugin.saveSettings();
await this.plugin.init();
}));
}
};

View file

@ -0,0 +1,10 @@
{
"id": "aw-watcher-obsidian",
"name": "ActivityWatch",
"version": "1.3.0",
"minAppVersion": "0.15.0",
"description": "This is a plugin bridging compatibility between ActivityWatch and Obsidian.",
"author": "Grimmauld",
"authorUrl": "https://github.com/LordGrimmauld",
"isDesktopOnly": true
}

View file

@ -0,0 +1,25 @@
{
"name": "aw-watcher-obsidian",
"version": "1.3.0",
"description": "This is a plugin bridging compatibility between ActivityWatch and Obsidian.",
"main": "main.js",
"scripts": {
"dev": "node esbuild.config.mjs",
"build": "tsc -noEmit -skipLibCheck && node esbuild.config.mjs production",
"version": "node version-bump.mjs && git add manifest.json versions.json"
},
"keywords": [],
"author": "",
"license": "MIT",
"devDependencies": {
"@types/node": "^16.11.6",
"@typescript-eslint/eslint-plugin": "5.29.0",
"@typescript-eslint/parser": "5.29.0",
"builtin-modules": "3.3.0",
"esbuild": "0.14.47",
"obsidian": "latest",
"tslib": "2.4.0",
"typescript": "4.7.4"
},
"dependencies": {}
}

View file

@ -12,8 +12,8 @@
"checkpointList": [
{
"path": "/",
"date": "2023-04-12",
"size": 1015677
"date": "2023-04-19",
"size": 1018248
}
],
"activityHistory": [
@ -1174,7 +1174,15 @@
},
{
"date": "2023-04-12",
"value": 759
"value": 800
},
{
"date": "2023-04-17",
"value": 457
},
{
"date": "2023-04-19",
"value": 2351
}
]
}

View file

@ -222,6 +222,54 @@
"lastUpdated": 1681292148733
}
}
},
"Přerušení": {
"Přerušení": {
"internalLink": {
"count": 1,
"lastUpdated": 1681885511788
}
}
},
"b^2+c^2-2bc\\cos\\alpha": {
"b^2+c^2-2bc\\cos\\alpha": {
"currentFile": {
"count": 2,
"lastUpdated": 1681891082349
}
}
},
"a^2+b^2-2ab\\cos\\gamma": {
"a^2+b^2-2ab\\cos\\gamma": {
"currentFile": {
"count": 3,
"lastUpdated": 1681891573711
}
}
},
"\\cos\\alpha": {
"\\cos\\alpha": {
"currentFile": {
"count": 1,
"lastUpdated": 1681891086747
}
}
},
"\\frac{b^2+c^2-a^2}{2bc}": {
"\\frac{b^2+c^2-a^2}{2bc}": {
"currentFile": {
"count": 1,
"lastUpdated": 1681891095567
}
}
},
"\\frac{a^2+b^2-c^2}{2ab}": {
"\\frac{a^2+b^2-c^2}{2ab}": {
"currentFile": {
"count": 1,
"lastUpdated": 1681891398296
}
}
}
}
}

View file

@ -8,19 +8,31 @@
"type": "tabs",
"children": [
{
"id": "5ff518a7ba282ce5",
"id": "7da30d7b50ee03bc",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "cjl/literatura/slohy/Realismus/Realismus.md",
"file": "mat/Trigonometrie/Trigonometrie.md",
"mode": "source",
"source": false
}
}
},
{
"id": "7c6e9c29679e7ec4",
"id": "f9de6481f4e4039a",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "mat/Trigonometrie/Kosinová věta.md",
"mode": "source",
"source": false
}
}
},
{
"id": "3570bb768b136343",
"type": "leaf",
"state": {
"type": "markdown",
@ -32,19 +44,43 @@
}
},
{
"id": "7da30d7b50ee03bc",
"id": "43af55e72c60957c",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "mat/Trigonometrie.md",
"file": "cjl/literatura/slohy/Realismus/Realismus.md",
"mode": "source",
"source": false
}
}
},
{
"id": "a734a5655dee3ea4",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "mat/Trigonometrie/Trigonometrie.md",
"mode": "source",
"source": false
}
}
},
{
"id": "0bb0521fe1f40480",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "mat/Trigonometrie/Kosinová věta.md",
"mode": "source",
"source": false
}
}
}
],
"currentTab": 2
"currentTab": 5
}
],
"direction": "vertical"
@ -102,7 +138,7 @@
"state": {
"type": "backlink",
"state": {
"file": "mat/Trigonometrie.md",
"file": "mat/Trigonometrie/Kosinová věta.md",
"collapseAll": false,
"extraContext": false,
"sortOrder": "alphabetical",
@ -119,7 +155,7 @@
"state": {
"type": "outgoing-link",
"state": {
"file": "mat/Trigonometrie.md",
"file": "mat/Trigonometrie/Kosinová věta.md",
"linksCollapsed": false,
"unlinkedCollapsed": true
}
@ -166,7 +202,7 @@
"state": {
"type": "outline",
"state": {
"file": "mat/Trigonometrie.md"
"file": "mat/Trigonometrie/Kosinová věta.md"
}
}
},
@ -242,23 +278,29 @@
"breadcrumbs:Breadcrumbs Visualisation": false
}
},
"active": "7da30d7b50ee03bc",
"active": "0bb0521fe1f40480",
"lastOpenFiles": [
"mat/Trigonometrie/Trigonometrie.md",
"data/Pasted image 20230419091807.png",
"cjl/literatura/slohy/Realismus/Božena Němcová.md",
"cjl/literatura/slohy/Realismus/Karel Havlíček Borovský.md",
"cjl/literatura/slohy/Realismus/Realismus.md",
"cjl/literatura/slohy/Realismus/Fidlovačka aneb žádný řev a žádná rvačka.md",
"cjl/literatura/slohy/Renesance/Renesance.md",
"mat/Trigonometrie/Kosinová věta.md",
"data/Pasted image 20230417192048.png",
"mat/Trigonometrie",
"data/Pasted image 20230412113817.png",
"data/Pasted image 20230412113342.png",
"data/Pasted image 20230412112525.png",
"data/Pasted image 20230412112119.png",
"data/Pasted image 20230412111323.png",
"data/Pasted image 20230412111312.png",
"cjl/literatura/slohy/Realismus/Fidlovačka aneb žádný řev a žádná rvačka.md",
"cjl/literatura/slohy/Realismus/Realismus.md",
"cjl/literatura/slohy/Romantismus/Romantismus.md",
"cjl/cjl.md",
"mat/mat.md",
"mat/Trigonometrie.md",
"data/Pasted image 20230411141819.png",
"data/Pasted image 20230411141429.png",
"mat/Untitled",
"fyz/fyz.md",
"data/Změny skupenství 2023-04-11 11.58.21.excalidraw.md",
"fyz/Jevy mezi pevnýma tělesama a kapalinama.md",
@ -274,15 +316,8 @@
"dej/moderní/komunismus/Milada Horáková.md",
"dej/dej.md",
"data/data.md",
"mat/Funkce/Untitled.md",
"mat/Funkce/Logaritmus - Substituce.md",
"mat/Funkce/Exponenciální funkce.md",
"mat/Funkce/Příklady.md",
"cjl/literatura/slohy/Realismus",
"cjl/literatura/slohy/Poetismus",
"data/Pasted image 20230402153918.png",
"data/Pasted image 20230402153743.png",
"data/Pasted image 20230402153409.png",
"fyz/Pevne blbosti",
"Untitled.canvas"
]

View file

@ -0,0 +1,3 @@
# Božena Němcová
- 1820-1862
- Babička

View file

@ -0,0 +1,23 @@
# Karel Havlíček Borovský
- žurnalista
- pražské noviny - žurnalista
- národní noviny - zakladatel
- slovan - zakladatel
- epigramy
- krátké
- básnické
- kritické
- vůči vládě
- církve
- aktuální
- satirické
- nadsázka
- satirické skladby
- král lávra
- král s oslýma ušima
- jednou za čas ho někdo ostříhá, ale jeho kadeřník je potom popraven
- holič kukulín
- tyrolské elegie
- 1851 brixen
- křest sv. Vladimíra
- Perun

View file

@ -4,5 +4,7 @@
- člověk ve společnosti, přizpůsobí se společnosti
- kritika společnosti
%% Zoottelkeeper: Beginning of the autogenerated index file list %%
- [[cjl/literatura/slohy/Realismus/Božena Němcová|Božena Němcová]]
- [[cjl/literatura/slohy/Realismus/Fidlovačka aneb žádný řev a žádná rvačka|Fidlovačka aneb žádný řev a žádná rvačka]]
- [[cjl/literatura/slohy/Realismus/Karel Havlíček Borovský|Karel Havlíček Borovský]]
%% Zoottelkeeper: End of the autogenerated index file list %%

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

View file

@ -0,0 +1,75 @@
# Kosinová věta
$a^2=b^2+c^2-2bc\cos\alpha$
$b^2=c^2+a^2-2ca\cos\beta$
$c^2=a^2+b^2-2ab\cos\gamma$
$b_c=c\cos\alpha$
$b_c$ … část $a$ rozdělená výškou $v_a$ a bližší straně $b$.
$a_c=c\cos\beta$
![](Pasted%20image%2020230417192048.png)
![](Pasted%20image%2020230419091807.png)
a)
$a^2=b^2+c^2-2bc\cos\alpha$
$2bc\cos\alpha=b^2+c^2-a^2$
$\cos\alpha=\frac{b^2+c^2-a^2}{2bc}$
$\cos\alpha=\frac{3^2+4^2-2^2}{2*3*4}$
$\cos\alpha=\frac{9+16-4}{24}$
$\cos\alpha=\frac{21}{24}$
$\alpha\dot=28.95\degree$
$b^2=c^2+a^2-2ac\cos\beta$
$\cos\beta=\frac{c^2+a^2-b^2}{2ac}$
$\cos\beta=\frac{4^2+2^2-3^2}{2*4*2}$
$\cos\beta=\frac{16+4-9}{16}$
$\cos\beta=\frac{11}{16}$
$\beta\dot=46.5\degree$
$c^2=a^2+b^2-2ab\cos\gamma$
$\cos\gamma=\frac{a^2+b^2-c^2}{2ab}$
$\cos\gamma=\frac{2^2+3^2-4^2}{2*2*3}$
$\cos\gamma=\frac{4+9-16}{12}$
$\cos\gamma=-\frac{3}{12}$
$\gamma\dot=104.47\degree$
b)
nieje trojhuhelnik
c)
$a=5cm$
$b=7cm$
$\gamma=92\degree14'$
$c^2=a^2+b^2-2ab\cos\gamma$
$\cos\gamma\dot=-0.03$
$c^2=5^2+7^2-2*5*7*(-0.03)$
$c^2=25+49+2.1$
$c^2\dot=76$
$c=\sqrt{76}\dot=8.7$
$a^2=b^2+c^2-2bc\cos\alpha$
$\cos\alpha=\frac{b^2+c^2-a^2}{2bc}$
$\cos\alpha=\frac{7^2+8.7^2-5^2}{2*7*8.7}$
$\cos\alpha=\frac{49+75.69-25}{121.8}$
$\cos\alpha=\frac{99.69}{121.8}$
$\alpha\dot=35\degree$
$b^2=a^2+c^2-2ac\cos\beta$
$\cos\beta=\frac{a^2+c^2-b^2}{2ac}$
$\cos\beta=\frac{5^2+8.7^2-7^2}{2*5*8.7}$
$\cos\beta=\frac{25+75.6949}{87}$
$\cos\beta=\frac{51.69}{87}$
$\beta\dot=53.5\degree$
d)
$a=7cm$
$c=12cm$
$\beta=124\degree$
$b^2=a^2+c^2-2ac\cos\beta$
$b^2=7^2+12^2-2*7*12\cos124\degree$
$b^2=49+144-168*(-0.5)$
$b^2=277$
$b=16.6cm$

View file

@ -70,7 +70,13 @@ Dále viz obrázek.
---
## Hosínová věta
## Kosínová věta
Dopočítejte zbývající prvky v trojúhelníku.
![](Pasted%20image%2020230412113817.png)
%% Zoottelkeeper: Beginning of the autogenerated index file list %%
- [[mat/Trigonometrie/Kosinová věta|Kosinová věta]]
%% Zoottelkeeper: End of the autogenerated index file list %%

View file

@ -27,7 +27,7 @@ imagePrefix: 'data/'
- [[mat/Rovnice/Rovnice|Rovnice]]
- [[mat/Rozklad složených čísel na součin prvočísel|Rozklad složených čísel na součin prvočísel]]
- [[mat/Tahák|Tahák]]
- [[mat/Trigonometrie|Trigonometrie]]
- [[mat/Trigonometrie/Trigonometrie|Trigonometrie]]
- [[mat/Výroky/Výroky|Výroky]]
- [[mat/Zakrouhlení|Zakrouhlení]]
- [[mat/Zlomky|Zlomky]]