unknown пре 1 дан
родитељ
комит
4c8747e66d
6 измењених фајлова са 122 додато и 12 уклоњено
  1. 54 12
      .obsidian/workspace.json
  2. BIN
      Database.kdbx
  3. 6 0
      Text 10.md
  4. 11 0
      c/gcc.md
  5. 44 0
      c/pointer.md
  6. 7 0
      lua/main.md

+ 54 - 12
.obsidian/workspace.json

@@ -52,6 +52,34 @@
           {
             "id": "08bfc9b99c85d9b0",
             "type": "leaf",
+            "state": {
+              "type": "markdown",
+              "state": {
+                "file": "linux/vim.md",
+                "mode": "source",
+                "source": false
+              },
+              "icon": "lucide-file",
+              "title": "vim"
+            }
+          },
+          {
+            "id": "6ae03aa62c3b1078",
+            "type": "leaf",
+            "state": {
+              "type": "markdown",
+              "state": {
+                "file": "c/gcc.md",
+                "mode": "source",
+                "source": false
+              },
+              "icon": "lucide-file",
+              "title": "gcc"
+            }
+          },
+          {
+            "id": "7cf999cd87add41d",
+            "type": "leaf",
             "state": {
               "type": "markdown",
               "state": {
@@ -62,9 +90,23 @@
               "icon": "lucide-file",
               "title": "pointer"
             }
+          },
+          {
+            "id": "35a870091f7d30bf",
+            "type": "leaf",
+            "state": {
+              "type": "markdown",
+              "state": {
+                "file": "Text 10.md",
+                "mode": "source",
+                "source": false
+              },
+              "icon": "lucide-file",
+              "title": "Text 10"
+            }
           }
         ],
-        "currentTab": 3
+        "currentTab": 6
       }
     ],
     "direction": "vertical"
@@ -194,12 +236,19 @@
       "markdown-importer:Open format converter": false
     }
   },
-  "active": "08bfc9b99c85d9b0",
+  "active": "35a870091f7d30bf",
   "lastOpenFiles": [
+    "c/pointer.md",
+    "Text 10.md",
+    "c/c common.md",
+    "hardcore web development/11. SQL/JOIN/INNER JOIN.md",
+    "c/gcc.md",
+    "lua/main.md",
+    "lua",
+    "linux/vim.md",
+    "Кодинг.md",
     "c/printf scanf.md",
     "c/misc.md",
-    "c/c common.md",
-    "c/pointer.md",
     "c/macros.md",
     "Greenstar/ethernet stm32.md",
     "ROTEK/allwinner 069 070.md",
@@ -227,12 +276,6 @@
     "English/img/34-1.jpg",
     "proGit.md",
     "hardcore web development/11. SQL/Создание таблиц.md",
-    "hardcore web development/11. SQL/Дата и время.md",
-    "hardcore web development/11. SQL/Типы данных.md",
-    "hardcore web development/11. SQL/SQL настройка.md",
-    "hardcore web development/11. SQL/Комментарии.md",
-    "c/syscalls.md",
-    "c/GDB.md",
     "docs/Galleon.pdf",
     "docs/~$alleon.doc",
     "docs/Galleon.doc",
@@ -241,7 +284,6 @@
     "hardcore web development/11. SQL/quiz_1.sql",
     "hardcore web development/11. SQL/room_1.sql",
     "hardcore web development/11. SQL/bird_1.sql",
-    "ASM",
-    "STM32/Makefile_template.txt"
+    "ASM"
   ]
 }


+ 6 - 0
Text 10.md

@@ -0,0 +1,6 @@
+	CHILDREN ADN GARDENING
+A lot of children these days have a dislike of vegatables and they often have little knowledge of where food comes from - either it's from a tin (metal box), a packet or a plastic bag. And this is why some schools have begun projects which help children understand more about nature and also get to like healthy, home-grown vegetables.
+One school in Derbyshire in northern England was really proud of its project. The course lasted a total of six weeks. In this time, the children learnt about growing vegetables and healthy living. They also learnt how to make supports in wood for climbing plants like beans and peas. They helped plant vegetables and take care of their vegetable gardens. It helped the children understand more about where food comes from and it also brougth differtn people together.
+In another project in Wales schoolchildren grew their own vegetables without the use of dangerous chemicals and they learnt about the problems caused by intensive farming. As a result, the children began eating a lot more fresh fruit and vegetables instead of crisps and chocolate. The lead teacher said that this had contributed to the children's health and it had also resulted in less rubbish in the school playground.
+IN Scotland teachers have found that children's mathematical skills have become better as a resut of learning to grow their own vegetables. The children measured the size of their vegetable garden and calculated the space  that they needed to grow the optimum number of vegetables. They also used Maths to find out how much food they could grow on their plot of land. Then they compared their results with the actual amount of food that they had grown. They also calculated the cost of producing each vegetable. The head teacher said that the children had enjoyed the project. They had learnt about how Maths can be used in the real world.
+The projects were such a great success that some of them were shown on TV.

+ 11 - 0
c/gcc.md

@@ -0,0 +1,11 @@
+~={yellow}Пути к библиотекам=~
+
+```bash
+#C
+$ echo | gcc -xc -E -v -
+
+#C++
+$ echo | gcc -xc++ -E -v -
+```
+
+https://labex.io/ru/tutorials/c-how-to-compile-c-program-with-external-library-419177

+ 44 - 0
c/pointer.md

@@ -21,4 +21,48 @@ void print_bytes(void* data, size_t length)
 {
 	unsigned char *ptr = data;
 }
+```
+
+~={yellow}Указатель на функцию=~
+
+```c
+#include <stdio.h>
+
+int sum(int a, int b) {
+	return a + b;
+}
+
+int subtract(int a, int b) {
+	return a - b;
+}
+
+int main() {
+	int (*func_ptr)(int, int);
+	func_ptr = NULL;
+	
+	func_ptr = &sum;
+	int result = func_ptr(5, 4);
+	
+	func_ptr = &subtract;
+	int result = func_ptr(5, 4);
+	
+	return 0;
+}
+```
+
+~={yellow}Псевдоним типа для указателей на функции=~
+
+```c
+typedef int bool_t;
+typedef bool_t (*less_than_func_t)(int, int);
+
+bool_t less_than(int a, int b) {
+	return a < b ? 1 : 0;
+}
+
+int main(int argc, char ** argv) {
+	less_than_func_t func_ptr = NULL;
+	func_ptr = &less_than;
+	bool_t result = func_ptr(3, 7);
+}
 ```

+ 7 - 0
lua/main.md

@@ -0,0 +1,7 @@
+~={yellow}Установка=~
+
+```bash
+$ sudo apt install lua5.4
+$ sudo apt install liblua5.4-dev 
+```
+