vault backup {{date}}

This commit is contained in:
2025-12-10 23:37:27 +01:00
4 changed files with 64 additions and 14 deletions

View File

@@ -4,20 +4,39 @@
"type": "split", "type": "split",
"children": [ "children": [
{ {
"id": "970bc93cb9e76d14", "id": "a4945c2f40dfd230",
"type": "tabs", "type": "tabs",
"children": [ "children": [
{ {
"id": "51283a1bd175637d", "id": "ec35ad1ba6900d85",
"type": "leaf", "type": "leaf",
"state": { "state": {
"type": "empty", "type": "split-diff-view",
"state": {}, "state": {
"aFile": ".obsidian/workspace.json",
"bFile": ".obsidian/workspace.json",
"aRef": ""
},
"icon": "diff",
"title": "Diff: workspace.json"
}
},
{
"id": "cfc8c132370ad11d",
"type": "leaf",
"state": {
"type": "markdown",
"state": {
"file": "conflict-files-obsidian-git.md",
"mode": "source",
"source": false
},
"icon": "lucide-file", "icon": "lucide-file",
"title": "Nueva pestaña" "title": "conflict-files-obsidian-git"
} }
} }
] ],
"currentTab": 1
} }
], ],
"direction": "vertical" "direction": "vertical"
@@ -216,8 +235,9 @@
"obsidian-git:Open Git source control": false "obsidian-git:Open Git source control": false
} }
}, },
"active": "51283a1bd175637d", "active": "cfc8c132370ad11d",
"lastOpenFiles": [ "lastOpenFiles": [
"conflict-files-obsidian-git.md",
"Servidores/M5/Actividades/RA2/RA2 \"Instal·la programari de propòsit general avaluant-ne lescaracterístiques i els entorns daplicació. Instal·lació de programaridutilitat i propòsit general per a un sistema informàtic\".md", "Servidores/M5/Actividades/RA2/RA2 \"Instal·la programari de propòsit general avaluant-ne lescaracterístiques i els entorns daplicació. Instal·lació de programaridutilitat i propòsit general per a un sistema informàtic\".md",
"Servidores/M5/Actividades", "Servidores/M5/Actividades",
"README.md", "README.md",

View File

@@ -6,6 +6,7 @@ Proveniente de [[Funciones puras]]
# 1. Calculadora modular # 1. Calculadora modular
Objetivo: Separación de lógica (pura) del I/O (impuro). Objetivo: Separación de lógica (pura) del I/O (impuro).
Bibliografia Web: Bibliografia Web:
- [Manejo de errores en Bash Scripting](https://adictosalinux.com/manejo-errores-scripts-bash/) - [Manejo de errores en Bash Scripting](https://adictosalinux.com/manejo-errores-scripts-bash/)
-

View File

@@ -1,22 +1,34 @@
#!/bin/bash #!/bin/bash
echo "Opciones posibles:"
echo "1. Sumar"
echo "2. Restar"
echo "3. Multiplicacion"
echo "4. Division"
read input
case $input in
1) $suma;;
2) $resta;;
3) $multiplicacion;;
4) $division;;
esac
suma() { suma() {
local num1=$1 local num1=$1
local num2=$2 local num2=$2
local resultado=$(( $num1 + $num2))
echo $(( $1 + $2)) echo $(( $1 + $2))
} }
resta() { resta() {
local num1=$1 local num1=$1
local num2=$2 local num2=$2
local resultado=$(( $num1 - $num2))
echo $(( $1 - $2)) echo $(( $1 - $2))
} }
multiplicacion() { multiplicacion() {
local num1=$1 local num1=$1
local num2=$2 local num2=$2
local resultado=$(( $num1 * $num2))
echo $(( $1 * $2)) echo $(( $1 * $2))
} }
@@ -27,6 +39,6 @@ division() {
echo "ERROR_DIV_0" echo "ERROR_DIV_0"
return 1 return 1
fi fi
echo $(( $1 / $2)) echo $(( $1 / $2))
} }

View File

@@ -0,0 +1,17 @@
# Conflicts
Please resolve them and commit them using the commands `Git: Commit all changes` followed by `Git: Push`
(This file will automatically be deleted before commit)
[[#Additional Instructions]] available below file list
- Not a file: .obsidian/workspace.json
# Additional Instructions
I strongly recommend to use "Source mode" for viewing the conflicted files. For simple conflicts, in each file listed above replace every occurrence of the following text blocks with the desired text.
```diff
<<<<<<< HEAD
File changes in local repository
=======
File changes in remote repository
>>>>>>> origin/main
```