vault backup: 2024-12-26 14:32:57
This commit is contained in:
175
.obsidian/plugins/execute-code/data.json
vendored
Normal file
175
.obsidian/plugins/execute-code/data.json
vendored
Normal file
@@ -0,0 +1,175 @@
|
||||
{
|
||||
"releaseNote2_0_0wasShowed": true,
|
||||
"persistentOuput": false,
|
||||
"timeout": 10000,
|
||||
"allowInput": true,
|
||||
"wslMode": false,
|
||||
"shellWSLMode": false,
|
||||
"onlyCurrentBlock": false,
|
||||
"nodePath": "node",
|
||||
"nodeArgs": "",
|
||||
"jsFileExtension": "js",
|
||||
"jsInject": "",
|
||||
"tsPath": "ts-node",
|
||||
"tsArgs": "",
|
||||
"tsInject": "",
|
||||
"leanPath": "lean",
|
||||
"leanArgs": "",
|
||||
"leanInject": "",
|
||||
"luaPath": "lua",
|
||||
"luaArgs": "",
|
||||
"luaFileExtension": "lua",
|
||||
"luaInject": "",
|
||||
"dartPath": "dart",
|
||||
"dartArgs": "",
|
||||
"dartFileExtension": "dart",
|
||||
"dartInject": "",
|
||||
"csPath": "dotnet-script",
|
||||
"csArgs": "",
|
||||
"csFileExtension": "csx",
|
||||
"csInject": "",
|
||||
"pythonPath": "python",
|
||||
"pythonArgs": "",
|
||||
"pythonEmbedPlots": true,
|
||||
"pythonFileExtension": "py",
|
||||
"pythonInject": "",
|
||||
"shellPath": "bash",
|
||||
"shellArgs": "",
|
||||
"shellFileExtension": "sh",
|
||||
"shellInject": "",
|
||||
"batchPath": "call",
|
||||
"batchArgs": "",
|
||||
"batchFileExtension": "bat",
|
||||
"batchInject": "",
|
||||
"groovyPath": "groovy",
|
||||
"groovyArgs": "",
|
||||
"groovyFileExtension": "groovy",
|
||||
"groovyInject": "",
|
||||
"golangPath": "go",
|
||||
"golangArgs": "run",
|
||||
"golangFileExtension": "go",
|
||||
"goInject": "",
|
||||
"javaPath": "java",
|
||||
"javaArgs": "-ea",
|
||||
"javaFileExtension": "java",
|
||||
"javaInject": "",
|
||||
"maxPrologAnswers": 15,
|
||||
"prologInject": "",
|
||||
"powershellPath": "powershell",
|
||||
"powershellArgs": "-file",
|
||||
"powershellFileExtension": "ps1",
|
||||
"powershellInject": "$OutputEncoding = [console]::InputEncoding = [console]::OutputEncoding = New-Object System.Text.UTF8Encoding",
|
||||
"powershellEncoding": "latin1",
|
||||
"cargoPath": "cargo",
|
||||
"cargoEvalArgs": "",
|
||||
"rustInject": "",
|
||||
"cppRunner": "cling",
|
||||
"cppFileExtension": "cpp",
|
||||
"cppInject": "",
|
||||
"cppArgs": "",
|
||||
"cppUseMain": false,
|
||||
"clingPath": "cling",
|
||||
"clingArgs": "",
|
||||
"clingStd": "c++17",
|
||||
"rustFileExtension": "rs",
|
||||
"RPath": "Rscript",
|
||||
"RArgs": "",
|
||||
"REmbedPlots": true,
|
||||
"RFileExtension": "R",
|
||||
"rInject": "",
|
||||
"kotlinPath": "kotlinc",
|
||||
"kotlinArgs": "-script",
|
||||
"kotlinFileExtension": "kts",
|
||||
"kotlinInject": "",
|
||||
"swiftPath": "swift",
|
||||
"swiftArgs": "",
|
||||
"swiftFileExtension": "swift",
|
||||
"swiftInject": "",
|
||||
"runghcPath": "runghc",
|
||||
"ghcPath": "ghc",
|
||||
"ghciPath": "ghci",
|
||||
"useGhci": false,
|
||||
"haskellInject": "",
|
||||
"mathematicaPath": "wolframscript",
|
||||
"mathematicaArgs": "-file",
|
||||
"mathematicaFileExtension": "wls",
|
||||
"mathematicaInject": "",
|
||||
"scalaPath": "scala",
|
||||
"scalaArgs": "",
|
||||
"scalaFileExtension": "scala",
|
||||
"scalaInject": "",
|
||||
"racketPath": "racket",
|
||||
"racketArgs": "",
|
||||
"racketFileExtension": "rkt",
|
||||
"racketInject": "#lang racket",
|
||||
"fsharpPath": "dotnet",
|
||||
"fsharpArgs": "",
|
||||
"fsharpInject": "",
|
||||
"fsharpFileExtension": "fsx",
|
||||
"cArgs": "",
|
||||
"cUseMain": true,
|
||||
"cInject": "",
|
||||
"rubyPath": "ruby",
|
||||
"rubyArgs": "",
|
||||
"rubyFileExtension": "rb",
|
||||
"rubyInject": "",
|
||||
"sqlPath": "psql",
|
||||
"sqlArgs": "-d <database> -U <user> -f",
|
||||
"sqlInject": "",
|
||||
"octavePath": "octave",
|
||||
"octaveArgs": "-q",
|
||||
"octaveFileExtension": "m",
|
||||
"octaveInject": "figure('visible','off') # Necessary to embed plots",
|
||||
"maximaPath": "maxima",
|
||||
"maximaArgs": "-qb",
|
||||
"maximaFileExtension": "mx",
|
||||
"maximaInject": "",
|
||||
"applescriptPath": "osascript",
|
||||
"applescriptArgs": "",
|
||||
"applescriptFileExtension": "scpt",
|
||||
"applescriptInject": "",
|
||||
"zigPath": "zig",
|
||||
"zigArgs": "run",
|
||||
"zigInject": "",
|
||||
"ocamlPath": "ocaml",
|
||||
"ocamlArgs": "",
|
||||
"ocamlInject": "",
|
||||
"phpPath": "php",
|
||||
"phpArgs": "",
|
||||
"phpFileExtension": "php",
|
||||
"phpInject": "",
|
||||
"jsInteractive": true,
|
||||
"tsInteractive": false,
|
||||
"csInteractive": false,
|
||||
"leanInteractive": false,
|
||||
"luaInteractive": false,
|
||||
"dartInteractive": false,
|
||||
"pythonInteractive": true,
|
||||
"cppInteractive": false,
|
||||
"prologInteractive": false,
|
||||
"shellInteractive": false,
|
||||
"batchInteractive": false,
|
||||
"bashInteractive": false,
|
||||
"groovyInteractive": false,
|
||||
"rInteractive": false,
|
||||
"goInteractive": false,
|
||||
"rustInteractive": false,
|
||||
"javaInteractive": false,
|
||||
"powershellInteractive": false,
|
||||
"kotlinInteractive": false,
|
||||
"swiftInteractive": false,
|
||||
"mathematicaInteractive": false,
|
||||
"haskellInteractive": false,
|
||||
"scalaInteractive": false,
|
||||
"fsharpInteractive": false,
|
||||
"cInteractive": false,
|
||||
"racketInteractive": false,
|
||||
"rubyInteractive": false,
|
||||
"sqlInteractive": false,
|
||||
"octaveInteractive": false,
|
||||
"maximaInteractive": false,
|
||||
"applescriptInteractive": false,
|
||||
"zigInteractive": false,
|
||||
"ocamlInteractive": false,
|
||||
"phpInteractive": false
|
||||
}
|
13510
.obsidian/plugins/execute-code/main.js
vendored
Normal file
13510
.obsidian/plugins/execute-code/main.js
vendored
Normal file
File diff suppressed because one or more lines are too long
10
.obsidian/plugins/execute-code/manifest.json
vendored
Normal file
10
.obsidian/plugins/execute-code/manifest.json
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"id": "execute-code",
|
||||
"name": "Execute Code",
|
||||
"version": "2.0.0",
|
||||
"minAppVersion": "1.7.2",
|
||||
"description": "Allows to execute code snippets within a note. Supported programming languages: C, CPP, Dart, Golang, Groovy, Kotlin, Java, JavaScript, TypeScript, Lean, Lua, CSharp, Prolog, Rust, Python, R, Ruby, Wolfram Mathematica, Haskell, Scala, Racket, F#, Batch, Shell & Powershell.",
|
||||
"author": "twibiral",
|
||||
"authorUrl": "https://www.github.com/twibiral",
|
||||
"isDesktopOnly": true
|
||||
}
|
242
.obsidian/plugins/execute-code/styles.css
vendored
Normal file
242
.obsidian/plugins/execute-code/styles.css
vendored
Normal file
@@ -0,0 +1,242 @@
|
||||
/* @settings
|
||||
|
||||
name: Execute Code Settings
|
||||
id: obsidian-execute-code
|
||||
settings:
|
||||
-
|
||||
id: color-section-title
|
||||
title: Color Settings
|
||||
type: heading
|
||||
level: 3
|
||||
-
|
||||
id: use-custom-output-color
|
||||
title: Custom Code Output Color
|
||||
description: Use a custom color for the output of code blocks
|
||||
type: class-toggle
|
||||
default: false
|
||||
-
|
||||
id: code-output-text-color
|
||||
title: Output Text Color
|
||||
type: variable-color
|
||||
format: hex
|
||||
opacity: false
|
||||
default: '#FFFFFF'
|
||||
-
|
||||
id: use-custom-error-color
|
||||
title: Custom Code Error Color
|
||||
description: Use a custom color for the error output of code blocks
|
||||
type: class-toggle
|
||||
default: false
|
||||
-
|
||||
id: code-error-text-color
|
||||
title: Error Text Color
|
||||
type: variable-color
|
||||
format: hex
|
||||
opacity: false
|
||||
default: '#FF0000'
|
||||
*/
|
||||
|
||||
button.run-code-button {
|
||||
display: none;
|
||||
color: var(--text-muted);
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
right: 0;
|
||||
margin: 5px;
|
||||
padding: 5px 20px 5px 20px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
button.clear-button {
|
||||
display: none;
|
||||
color: var(--text-muted);
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
margin: 5px;
|
||||
padding: 5px 20px 5px 20px;
|
||||
z-index: 100;
|
||||
}
|
||||
|
||||
pre:hover .run-code-button, pre:hover .clear-button {
|
||||
display: block;
|
||||
}
|
||||
|
||||
pre:hover .run-button-disabled, pre:hover .clear-button-disabled {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.run-button-disabled, .clear-button-disabled {
|
||||
display: none;
|
||||
}
|
||||
|
||||
pre:hover code.language-output {
|
||||
margin-bottom: 28px;
|
||||
}
|
||||
|
||||
:not(.use-custom-output-color) code.language-output span.stdout {
|
||||
color: var(--text-muted) !important;
|
||||
}
|
||||
|
||||
.use-custom-output-color code.language-output span.stdout {
|
||||
color: var(--code-output-text-color) !important;
|
||||
}
|
||||
|
||||
:not(.use-custom-error-color) code.language-output span.stderr {
|
||||
color: red !important;
|
||||
}
|
||||
|
||||
.use-custom-error-color code.language-output span.stderr {
|
||||
color: var(--code-error-text-color) !important;
|
||||
}
|
||||
|
||||
code.language-output hr {
|
||||
margin: 0 0 1em;
|
||||
}
|
||||
|
||||
.settings-code-input-box textarea, .settings-code-input-box input {
|
||||
min-width: 400px;
|
||||
min-height: 100px;
|
||||
font-family: monospace;
|
||||
resize: vertical;
|
||||
}
|
||||
|
||||
input.interactive-stdin {
|
||||
font: inherit;
|
||||
}
|
||||
|
||||
.manage-executors-view h3 {
|
||||
margin: 1em;
|
||||
}
|
||||
|
||||
.manage-executors-view ul {
|
||||
margin: 1em;
|
||||
padding: 0;
|
||||
list-style-type: none;
|
||||
}
|
||||
|
||||
.manage-executors-view ul li {
|
||||
padding: 0.5em;
|
||||
background: var(--background-primary-alt);
|
||||
border-radius: 4px;
|
||||
display: grid;
|
||||
flex-direction: column;
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.manage-executors-view small {
|
||||
text-transform: uppercase;
|
||||
font-weight: bold;
|
||||
letter-spacing: 0.1ch;
|
||||
grid-row: 1;
|
||||
}
|
||||
|
||||
.manage-executors-view .filename {
|
||||
grid-row: 2;
|
||||
}
|
||||
|
||||
.manage-executors-view li button {
|
||||
grid-column: 2;
|
||||
grid-row: 1 / 3;
|
||||
margin: 0;
|
||||
padding: 0.25em;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
color: var(--text-muted);
|
||||
background: none;
|
||||
}
|
||||
|
||||
.manage-executors-view li button:hover {
|
||||
background: var(--background-tertiary);
|
||||
color: var(--icon-color-hover);
|
||||
}
|
||||
|
||||
.manage-executors-view > div {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.manage-executors-view .empty-state {
|
||||
color: var(--text-muted);
|
||||
padding: 0.5em;
|
||||
}
|
||||
|
||||
.has-run-code-button {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.has-run-code-button pre {
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.load-state-indicator {
|
||||
position: absolute;
|
||||
top: 0.1em;
|
||||
left: -2em;
|
||||
width: 2em;
|
||||
height: 2em;
|
||||
background: var(--background-primary-alt);
|
||||
border-top-left-radius: 4px;
|
||||
border-bottom-left-radius: 4px;
|
||||
color: var(--tx1);
|
||||
transform: translateX(2em);
|
||||
transition: transform 0.25s, opacity 0.25s;
|
||||
opacity: 0;
|
||||
pointer-events: none;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.load-state-indicator svg {
|
||||
width: 1.5em;
|
||||
height: 1.5em;
|
||||
margin: 0.25em;
|
||||
}
|
||||
|
||||
.load-state-indicator.visible {
|
||||
transform: translateX(0);
|
||||
transform: translateX(var(--folding-offset, 0));
|
||||
opacity: 1;
|
||||
pointer-events: all;
|
||||
}
|
||||
|
||||
.load-state-indicator::before {
|
||||
content: "";
|
||||
box-shadow: -1em 0 1em -0.75em inset var(--background-modifier-box-shadow);
|
||||
position: absolute;
|
||||
display: block;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
transform: translateX(-2em);
|
||||
opacity: 0;
|
||||
transition: transform 0.25s, opacity 0.25s;
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.load-state-indicator.visible::before {
|
||||
transform: translateX(0);
|
||||
opacity: 1;
|
||||
}
|
||||
|
||||
/* Hide code blocks with language-output only in markdown view using "markdown-preview-view"*/
|
||||
.markdown-preview-view pre.language-output {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.markdown-rendered pre.language-output {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* Do not hide code block when exporting to PDF */
|
||||
@media print {
|
||||
pre.language-output {
|
||||
display: block;
|
||||
}
|
||||
/* Hide code blocks with language-output only in markdown view using "markdown-preview-view"*/
|
||||
.markdown-preview-view pre.language-output {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.markdown-rendered pre.language-output {
|
||||
display: block;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user