This commit is contained in:
2026-04-20 16:27:09 +02:00
commit cf556004cb
15 changed files with 9048 additions and 0 deletions

64
knowledge/cv.json Normal file
View File

@@ -0,0 +1,64 @@
{
"first_name": "Nikola",
"last_name": "Petrov",
"phone_number": "+38670749506",
"occupation": "Student",
"birth": "14, November, 2000",
"living_location": "Ljubljana, Slovenia",
"web_link": "https://petrovv.com",
"git_link": "https://git.petrovv.com/explore",
"email": "nikola@petrovv.com",
"instagram_handle":"@nikolainsta7",
"instagram_link":"https://www.instagram.com/nikolainsta7",
"about_me": "I am Nikola, I have studied at the Faculty of Electrical Engineering and Computer Science (FERI) in Maribor. My focus is on application and web development, where I enjoy creating functional, user-friendly digital solutions. This field allows me to combine technical skills with creativity, which I find both challenging and fulfilling. Beyond my studies, I have developed a passion for the game of Go. Its strategic depth and complexity provide a stimulating mental challenge that I find incredibly engaging.",
"Student Work Experience": [
{
"title": "HW Developer",
"company": "Spica International",
"time": "17/03/2025 - 01/08/2025",
"des": "Worked on access menegment systems. Programed integrated devices, based on Buildroot using c++ and python web server."
},
{
"title": "Backend/Frontend",
"company": "RRC d.o.o",
"time": "01/09/2024 - 31/12/2024",
"des": "Worked on goverment websites for collage enrolment and student dorm requests."
},
{
"title": "Developer",
"company": "RRC d.o.o",
"time": "18/03/2024 - 31/05/2024",
"des": "Student practicum. Backend in java with frontend in ext JS and jQuery."
},
{
"title": "Developer/IT",
"company": "LightAct",
"time": "01/07/2022 - 01/09/2022",
"des": "I helped maintaining data base, worked on the application (integrated a capture card and IP camera), assembled new server rack, installed new UTP/power connectors in the office."
},
{
"title": "Mentor",
"company": "Institute 404",
"time": "08/06/2020 - 19/06/2020",
"des": "I helped primary school children with their projects with soldering, laser cutting, and building."
},
{
"title": "Maintenance technician",
"company": "Hella Saturnos d.o.o.",
"time": "04/09/2018 - 18/01/2019",
"des": "I maintained and repaired machines from plastic presses to personal stations."
}
],
"education": [
{
"title": "(FERI) Faculty of Electrical Engineering and Computer Science, University of Maribor",
"time": "01/10/2021 - CURRENT",
"des": "Graduate engineer of computer science and information technology."
},
{
"title": "(SSTS Siska) Secondary school of technical professions siska",
"time": "01/09/2016 - 07/07/2021",
"des": "Electrotechnician."
}
]
}

115
knowledge/knowledge_base.md Normal file
View File

@@ -0,0 +1,115 @@
# Knowledge Base
## Personal Information
- **Name**: Nikola Petrov
- **Occupation**: Student at Faculty of Electrical Engineering and Computer Science (FERI), University of Maribor
- **Location**: Ljubljana, Slovenia
- **Contact**: nikola@petrovv.com | +38670749506
- **Web**: [petrovv.com](https://petrovv.com)
- **Git**: [git.petrovv.com](https://git.petrovv.com/explore)
- **Instagram**: [@nikolainsta7](https://www.instagram.com/nikolainsta7)
## About
I am Nikola, I have studied at the Faculty of Electrical Engineering and Computer Science (FERI) in Maribor. My focus is on application and web development, where I enjoy creating functional, user-friendly digital solutions. This field allows me to combine technical skills with creativity, which I find both challenging and fulfilling. Beyond my studies, I have developed a passion for the game of Go. Its strategic depth and complexity provide a stimulating mental challenge that I find incredibly engaging.
## Work Experience
### HW Developer at Spica International (17/03/2025 - 01/08/2025)
- Worked on access management systems
- Programmed integrated devices based on Buildroot using C++ and Python web server
### Backend/Frontend at RRC d.o.o (01/09/2024 - 31/12/2024)
- Worked on government websites for college enrollment and student dorm requests
### Developer at RRC d.o.o (18/03/2024 - 31/05/2024)
- Student practicum with backend in Java and frontend in Ext JS and jQuery
### Developer/IT at LightAct (01/07/2022 - 01/09/2022)
- Maintained database
- Worked on application (integrated capture card and IP camera)
- Assembled new server rack
- Installed new UTP/power connectors in the office
### Mentor at Institute 404 (08/06/2020 - 19/06/2020)
- Helped primary school children with projects involving soldering, laser cutting, and building
### Maintenance Technician at Hella Saturnos d.o.o. (04/09/2018 - 18/01/2019)
- Maintained and repaired machines from plastic presses to personal stations
## Education
### Faculty of Electrical Engineering and Computer Science, University of Maribor (01/10/2021 - CURRENT)
- Graduate engineer of computer science and information technology
### Secondary School of Technical Professions Siska (01/09/2016 - 07/07/2021)
- Electrotechnician
## Projects
### Password Manager
A command-line interface password manager that enables creating and saving passwords and usernames with labels.
**Features:**
- Master password encryption
- Generate/input passwords
- Delete and update entries
- List all labels
- Change master password
- Select save folder
**Technologies:** C++
### List App
A web application for managing and organizing lists of movies, series, and games.
**Features:**
- Media management (add, view, delete)
- Sorting options (title, year, date added)
- Image caching
- Authentication
- Responsive design
**Technologies:**
- Backend: TypeScript, Express, Bun runtime
- Frontend: TypeScript, Bootstrap 5
- Database: SQLite
- APIs: OMDB API, Twitch IGDB API
### Treender
A genetic algorithm visualization tool with interactive evolution simulation.
**Features:**
- Interactive evolution (like/dislike organisms)
- Genetic algorithm with DNA-based reproduction
- Visual representation as colorful patterns
- Client-server architecture
- Cross-platform support (Web, Android, Desktop)
**Technologies:** C++, Raylib, Dear ImGui, SQLite
### School Projects
Various academic projects including:
- AR map application
- Camera data processing
- Compression algorithms
- Web development exercises
- Programming assignments in C++, Java, and other languages
- Operating systems exercises
- Network programming tasks
## Skills
- **Programming Languages**: C++, Python, Java, TypeScript, JavaScript, C#, C
- **Web Technologies**: HTML, CSS, Bootstrap, React
- **Databases**: SQLite, MySQL
- **Frameworks**: Express, Bun, Raylib, Dear ImGui
- **Tools**: Git, Docker, Unity, Visual Studio
- **Operating Systems**: Linux, Windows
- **Other**: Genetic algorithms, AR development, network programming
## Interests
- Application development
- Web development
- Genetic algorithms
- Augmented reality
- System administration
- Hardware integration

View File

@@ -0,0 +1,85 @@
# List App
A web application for managing and organizing lists of movies, series, and games. The app allows users to add, view, and delete media items, with support for sorting and filtering.
## Features
- **Media Management**: Add, view, and delete movies, series, and games
- **Sorting Options**: Sort by title, year, or date added
- **Image Caching**: Automatically downloads and caches poster images
- **Authentication**: Password-protected actions for adding/deleting media
- **Responsive Design**: Works on mobile and desktop devices
## Technologies
- **Backend**: TypeScript, Express, Bun runtime
- **Frontend**: TypeScript, Bootstrap 5
- **Database**: SQLite
- **APIs**: OMDB API (movies/series), Twitch IGDB API (games)
## Project Structure
```
list_app/
├── backend/ # Backend server code
│ ├── controllers/ # Business logic
│ ├── models/ # Database models
│ ├── routes/ # API routes
│ ├── miscellaneous/ # Utilities and middleware
│ └── app.ts # Main server entry
├── frontend/ # Frontend code
│ ├── list/ # Main list components
│ ├── utils/ # Type definitions
│ └── elementcreate.tsx # Custom element creation
├── public/ # Static files
│ ├── index.html # Main HTML file
│ ├── logo.ico # Favicon
│ └── no_poster.jpg # Fallback poster image
├── package.json # Project dependencies
└── README.md # This file
```
## Setup
1. Install Bun runtime: https://bun.sh/
2. Install dependencies:
```bash
bun install
```
3. Set up your API keys in the database:
- OMDB API key for movies/series
- Twitch client ID and secret for games
## API Endpoints
- `GET /api/media/:mediaType` - List all media of a type (movies, series, games)
- `POST /api/media/:mediaType` - Add new media (requires password)
- `DELETE /api/media/:mediaType` - Delete media (requires password)
## Configuration
The application uses SQLite for data storage. The database file `mydb.sqlite` will be created automatically on first run with the following tables:
- `movies` - Stores movie information
- `series` - Stores series information
- `games` - Stores game information
- `userData` - Stores configuration including API keys and password
## Usage
1. Navigate to `http://localhost:4080` in your browser
2. Use the navigation buttons to switch between movies, series, and games
3. Use the "Sort" dropdown to change sorting method
4. Enter your password and media ID in the form to add new items
5. Click "Edit" then use delete buttons to remove items
## Building
To build the frontend:
```bash
./build.sh
```

1612
knowledge/list_app/tree.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,55 @@
# Description
This is a straightforward command-line interface password manager that enables you to create and save passwords and usernames with labels.
# Usage:
The main password that you in input at first password generation is the main password for the program. It is used to encrypt all other passwords. If you forget it, you will not be able to decrypt your passwords. So be careful with it. You can change it later.
# How to use:
```
Usage:
password_manager.exe [flags]
Flags:
-h print this message
<label> get password for this label can use GLOB
-g <label> generate password for this label (or update if exists)
-i <label> input new password for this label (or update if exists)
-d <label> delete password for this label
-s <label> show password for this label
-u <label> update username for this label
-n <label> update label name
-e <label> open editor, password as note
-l list all labels
-p print all passwords
-c change master password
-z print size of file
-f <folder path> select save folder
```
# Versions:
- V6 - Add flag -e open any password in text editor
- V5 - Add support for linux
- V4 - Add select save folder
- V3 - Add username to LoginInfo
- V2 - Remove string size limit
- V1 - Working with string size limit of 20 characters
# How to build
```sh
// linux
g++ build.cpp -o build
./build
./build clear build opt
// windows
zig c++ build.cpp -o build
./build
./build clear build opt
```
# Requirements
### For linux
sudo apt install xclip
### For windows
winget install -e --id zig.zig

View File

@@ -0,0 +1,75 @@
password_manager/
├── build.cpp
├── build.hpp
├── environment
│   ├── lin.cpp
│   ├── lin_editor.cpp
│   ├── win.cpp
│   └── win_editor.cpp
├── .git
│   ├── branches
│   ├── config
│   ├── description
│   ├── HEAD
│   ├── hooks
│   │   ├── applypatch-msg.sample
│   │   ├── commit-msg.sample
│   │   ├── fsmonitor-watchman.sample
│   │   ├── post-update.sample
│   │   ├── pre-applypatch.sample
│   │   ├── pre-commit.sample
│   │   ├── pre-merge-commit.sample
│   │   ├── prepare-commit-msg.sample
│   │   ├── pre-push.sample
│   │   ├── pre-rebase.sample
│   │   ├── pre-receive.sample
│   │   ├── push-to-checkout.sample
│   │   ├── sendemail-validate.sample
│   │   └── update.sample
│   ├── index
│   ├── info
│   │   └── exclude
│   ├── logs
│   │   ├── HEAD
│   │   └── refs
│   │   ├── heads
│   │   │   └── master
│   │   └── remotes
│   │   └── origin
│   │   └── HEAD
│   ├── objects
│   │   ├── info
│   │   └── pack
│   │   ├── pack-9c00c8cfd75b478ffc80a5f86541db26cafd3159.idx
│   │   ├── pack-9c00c8cfd75b478ffc80a5f86541db26cafd3159.pack
│   │   └── pack-9c00c8cfd75b478ffc80a5f86541db26cafd3159.rev
│   ├── packed-refs
│   └── refs
│   ├── heads
│   │   └── master
│   ├── remotes
│   │   └── origin
│   │   └── HEAD
│   └── tags
├── .gitignore
├── include
│   ├── aes256.hpp
│   ├── arg_func.hpp
│   ├── buffer.hpp
│   ├── cryptorand.hpp
│   ├── editor.hpp
│   ├── environment.hpp
│   ├── func.hpp
│   └── glob.hpp
├── LICENSE
├── README.md
└── source
├── aes256.cpp
├── arg_func.cpp
├── buffer.cpp
├── editor.cpp
├── environment.cpp
├── func.cpp
└── main.cpp
21 directories, 52 files

6210
knowledge/school/tree.md Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,90 @@
# Treender
A genetic algorithm visualization tool with interactive evolution simulation.
## Overview
Treender is a C++ application that simulates genetic algorithms through an interactive visual interface. Users can observe and influence the evolution of digital organisms represented as visual patterns.
## Features
- **Interactive Evolution**: Like/dislike organisms to guide evolution
- **Genetic Algorithm**: DNA-based reproduction with mutation
- **Visual Representation**: Organisms displayed as colorful patterns
- **Client-Server Architecture**: Separate app and server components
- **Cross-Platform**: Supports Web, Android, and Desktop platforms
## Architecture
```
Treender
├── app/ # Main application (Raylib + Dear ImGui)
├── server/ # TCP server for data management
├── shared/ # Shared code (DNA logic, networking)
├── external/ # Third-party libraries
└── data.db # SQLite database
```
## Components
### Application
- **Main Entry**: `app/src/main.cpp`
- **Core Class**: `App` class handles rendering, input, and evolution logic
- **Visualization**: Uses Raylib for graphics and Dear ImGui for UI
### Server
- **TCP Server**: Handles client connections and data persistence
- **Database**: SQLite for storing organism data and user preferences
- **Block Management**: Tracks warnings and blocked organisms
### Shared Library
- **DNA System**: Genetic algorithm implementation (`Dna.cpp`)
- **Networking**: TCP socket communication
- **Data Structures**: Shared between app and server
## Building
### Prerequisites
- CMake 3.10+
- C++17 compiler
- Raylib
- Dear ImGui
- SQLite3
### Build Instructions
```bash
mkdir build
cd build
cmake ..
make
```
## Running
1. Start the server:
```bash
./build/server
```
2. Run the application:
```bash
./build/app
```
## Usage
- **Like/Disike**: Click on organisms to influence evolution
- **Rotation**: Drag to rotate the view
- **Statistics**: View similarity scores and generation information
## Database
The application uses SQLite database (`data.db`) to store:
- Organism DNA data
- User preferences
- Blocked/warned organisms
## Screenshots
![Treender Screenshot](pictures/treender.png)
![Treender Screenshot](pictures/capture_show_noraml.jpg)

578
knowledge/treender/tree.md Normal file
View File

@@ -0,0 +1,578 @@
treender
├── app
│   ├── inc
│   │   ├── App.hpp
│   │   ├── DnaStore.hpp
│   │   └── sys.hpp
│   └── src
│   ├── App.cpp
│   ├── DnaStore.cpp
│   ├── main.cpp
│   └── sys.cpp
├── build
│   ├── app
│   ├── CMakeCache.txt
│   ├── CMakeFiles
│   │   ├── 3.28.3
│   │   │   ├── CMakeCCompiler.cmake
│   │   │   ├── CMakeCXXCompiler.cmake
│   │   │   ├── CMakeDetermineCompilerABI_C.bin
│   │   │   ├── CMakeDetermineCompilerABI_CXX.bin
│   │   │   ├── CMakeSystem.cmake
│   │   │   ├── CompilerIdC
│   │   │   │   ├── a.out
│   │   │   │   ├── CMakeCCompilerId.c
│   │   │   │   └── tmp
│   │   │   └── CompilerIdCXX
│   │   │   ├── a.out
│   │   │   ├── CMakeCXXCompilerId.cpp
│   │   │   └── tmp
│   │   ├── app.dir
│   │   │   ├── app
│   │   │   │   └── src
│   │   │   │   ├── App.cpp.o
│   │   │   │   ├── App.cpp.o.d
│   │   │   │   ├── DnaStore.cpp.o
│   │   │   │   ├── DnaStore.cpp.o.d
│   │   │   │   ├── main.cpp.o
│   │   │   │   ├── main.cpp.o.d
│   │   │   │   ├── sys.cpp.o
│   │   │   │   └── sys.cpp.o.d
│   │   │   ├── build.make
│   │   │   ├── cmake_clean.cmake
│   │   │   ├── compiler_depend.internal
│   │   │   ├── compiler_depend.make
│   │   │   ├── compiler_depend.ts
│   │   │   ├── DependInfo.cmake
│   │   │   ├── depend.make
│   │   │   ├── flags.make
│   │   │   ├── link.txt
│   │   │   └── progress.make
│   │   ├── cmake.check_cache
│   │   ├── CMakeConfigureLog.yaml
│   │   ├── CMakeDirectoryInformation.cmake
│   │   ├── Makefile2
│   │   ├── Makefile.cmake
│   │   ├── pkgRedirects
│   │   ├── progress.marks
│   │   ├── server.dir
│   │   │   ├── build.make
│   │   │   ├── cmake_clean.cmake
│   │   │   ├── compiler_depend.internal
│   │   │   ├── compiler_depend.make
│   │   │   ├── compiler_depend.ts
│   │   │   ├── DependInfo.cmake
│   │   │   ├── depend.make
│   │   │   ├── flags.make
│   │   │   ├── link.txt
│   │   │   ├── progress.make
│   │   │   └── server
│   │   │   └── src
│   │   │   ├── checker.cpp.o
│   │   │   ├── checker.cpp.o.d
│   │   │   ├── server.cpp.o
│   │   │   └── server.cpp.o.d
│   │   ├── shared.dir
│   │   │   ├── build.make
│   │   │   ├── cmake_clean.cmake
│   │   │   ├── cmake_clean_target.cmake
│   │   │   ├── compiler_depend.internal
│   │   │   ├── compiler_depend.make
│   │   │   ├── compiler_depend.ts
│   │   │   ├── DependInfo.cmake
│   │   │   ├── depend.make
│   │   │   ├── flags.make
│   │   │   ├── link.txt
│   │   │   ├── progress.make
│   │   │   └── shared
│   │   │   └── src
│   │   │   ├── canvas
│   │   │   │   ├── BackGroundColors.cpp.o
│   │   │   │   ├── BackGroundColors.cpp.o.d
│   │   │   │   ├── BackGround.cpp.o
│   │   │   │   ├── BackGround.cpp.o.d
│   │   │   │   ├── Canvas.cpp.o
│   │   │   │   ├── Canvas.cpp.o.d
│   │   │   │   ├── Tree.cpp.o
│   │   │   │   └── Tree.cpp.o.d
│   │   │   ├── sql.cpp.o
│   │   │   ├── sql.cpp.o.d
│   │   │   ├── TcpSocket.cpp.o
│   │   │   ├── TcpSocket.cpp.o.d
│   │   │   └── values
│   │   │   ├── Dna.cpp.o
│   │   │   ├── Dna.cpp.o.d
│   │   │   ├── DnaDB.cpp.o
│   │   │   ├── DnaDB.cpp.o.d
│   │   │   ├── DnaManager.cpp.o
│   │   │   ├── DnaManager.cpp.o.d
│   │   │   ├── mrand.cpp.o
│   │   │   ├── mrand.cpp.o.d
│   │   │   ├── Similarity.cpp.o
│   │   │   └── Similarity.cpp.o.d
│   │   ├── slike.dir
│   │   │   ├── build.make
│   │   │   ├── cmake_clean.cmake
│   │   │   ├── compiler_depend.internal
│   │   │   ├── compiler_depend.make
│   │   │   ├── compiler_depend.ts
│   │   │   ├── DependInfo.cmake
│   │   │   ├── depend.make
│   │   │   ├── flags.make
│   │   │   ├── link.txt
│   │   │   ├── progress.make
│   │   │   └── random
│   │   │   ├── slike.cpp.o
│   │   │   └── slike.cpp.o.d
│   │   ├── TargetDirectories.txt
│   │   └── view.dir
│   │   ├── build.make
│   │   ├── cmake_clean.cmake
│   │   ├── compiler_depend.internal
│   │   ├── compiler_depend.make
│   │   ├── compiler_depend.ts
│   │   ├── DependInfo.cmake
│   │   ├── depend.make
│   │   ├── flags.make
│   │   ├── link.txt
│   │   ├── progress.make
│   │   └── view
│   │   └── src
│   │   ├── main.cpp.o
│   │   ├── main.cpp.o.d
│   │   ├── Vapp.cpp.o
│   │   └── Vapp.cpp.o.d
│   ├── cmake_install.cmake
│   ├── DATA.bin
│   ├── data.db
│   ├── gen
│   ├── libshared.a
│   ├── Makefile
│   ├── server
│   ├── slike
│   ├── VECTOR.bin
│   └── view
├── build_android.md
├── CMakeLists.txt
├── data.db
├── external
│   ├── include
│   │   ├── IconsFontAwesome6.h
│   │   ├── imconfig.h
│   │   ├── imgui.h
│   │   ├── raylib.h
│   │   ├── raymath.h
│   │   ├── rlgl.h
│   │   ├── rlImGuiColors.h
│   │   ├── rlImGui.h
│   │   └── sqlite3.h
│   ├── libimgui.a
│   ├── libraylib.a
│   └── libsqlite3.a
├── .git
│   ├── branches
│   ├── COMMIT_EDITMSG
│   ├── config
│   ├── description
│   ├── FETCH_HEAD
│   ├── HEAD
│   ├── hooks
│   │   ├── applypatch-msg.sample
│   │   ├── commit-msg.sample
│   │   ├── fsmonitor-watchman.sample
│   │   ├── post-update.sample
│   │   ├── pre-applypatch.sample
│   │   ├── pre-commit.sample
│   │   ├── pre-merge-commit.sample
│   │   ├── prepare-commit-msg.sample
│   │   ├── pre-push.sample
│   │   ├── pre-rebase.sample
│   │   ├── pre-receive.sample
│   │   ├── push-to-checkout.sample
│   │   ├── sendemail-validate.sample
│   │   └── update.sample
│   ├── index
│   ├── info
│   │   └── exclude
│   ├── logs
│   │   ├── HEAD
│   │   └── refs
│   │   ├── heads
│   │   │   ├── FPS_Tests
│   │   │   ├── main
│   │   │   └── test_sqlite
│   │   └── remotes
│   │   └── origin
│   │   ├── FPS_Tests
│   │   ├── HEAD
│   │   ├── main
│   │   └── test_sqlite
│   ├── objects
│   │   ├── 01
│   │   │   └── 5db7251663999ef5eb87f9d9b1a416a98ae0e1
│   │   ├── 03
│   │   │   └── a11fa49531c2adbacc52f70d46dd845c43dbb7
│   │   ├── 04
│   │   │   ├── 0af1f2a831537638043b94ebd7a6124cd58782
│   │   │   └── 784cced5e739e167dd12b5094fcd5d73854063
│   │   ├── 06
│   │   │   └── cf349528494c57d720f51c0405f72c3be516c1
│   │   ├── 0d
│   │   │   └── 55ba4c02a66fc43b7b00d642763eaa9a830bad
│   │   ├── 0e
│   │   │   └── b554cf010117d435ecfaf1282a8094fab55878
│   │   ├── 10
│   │   │   └── 80f4aaeee1117f538995e16b75fe764268f281
│   │   ├── 11
│   │   │   ├── 0a18a24dc1ce7b1daba1bbb9a47733e84a4a51
│   │   │   ├── cc76336b95c48a4ae0196bc61f5f0ca2ad38d2
│   │   │   └── edfd2759f66ce451fad3c4cb8ab476363dbe74
│   │   ├── 12
│   │   │   └── 2f341a2f8510963b352f9e33fbfa8236af638b
│   │   ├── 13
│   │   │   └── e5a30b9affa77c65cb8a998ce9848684f0e3ef
│   │   ├── 14
│   │   │   ├── 68f2e7e989d0100bf88e7f407dc6db08461300
│   │   │   └── f5b6f4b93bea0bb8a669af062da1eb971b45db
│   │   ├── 15
│   │   │   └── 99dd71b2a25218396ef8e46d26bb6948286800
│   │   ├── 16
│   │   │   ├── 457ae5fa2fc8a196708fa1eeb79d8df302b3e7
│   │   │   └── b08a020123b7f4ed2f19c667fc60ea605cdfeb
│   │   ├── 1c
│   │   │   ├── 796d28b9a42ad9b63d5e7fb89ffb0a5438face
│   │   │   └── d4ae14389a5cd8392d0df84fec864a28d1c77d
│   │   ├── 20
│   │   │   └── 8f849b47f37b8ddbface4e3a1b9cb31633a565
│   │   ├── 21
│   │   │   ├── 5814527d688cb160f0f859e2a64cde340401b2
│   │   │   └── a69ea5485f7779fcccd769c8ebabd15ffacfd7
│   │   ├── 25
│   │   │   └── face705e939124dabc449cda8d168935a5b114
│   │   ├── 27
│   │   │   ├── 11268e65373ac661dde436e380c4a3511e692e
│   │   │   └── ddaaff64e40fcc20b62b9abf4c67bc5de38140
│   │   ├── 29
│   │   │   ├── 230f4d0736b5d53fe03de28f4db652d079e025
│   │   │   ├── 493018642b1913d2cb5f599797a30d71f492cd
│   │   │   └── c1283b74771837b61ba0a31bd67a3b13e01407
│   │   ├── 2d
│   │   │   └── 24a381ae6f9cb4d8f74f089bc5f70e8c96329c
│   │   ├── 2e
│   │   │   └── 2be950b8e3c43b20041f7ece59a03deeec6667
│   │   ├── 2f
│   │   │   └── 68a1bac33d555110a02bdbe2de26a578eb127d
│   │   ├── 31
│   │   │   └── c20aa899bcb43cb987f8dfa4fdc70a78360a34
│   │   ├── 35
│   │   │   └── b76bd01212784054b815ebb3bfd38749569879
│   │   ├── 37
│   │   │   └── 9c503b08046eb61f27f990745fc13cbc67bd25
│   │   ├── 38
│   │   │   ├── 2b987ed840f7e8cd8dd162e0fcd39513452e33
│   │   │   └── 72d0dbe5470cb5bf96a969634368b8db25789a
│   │   ├── 39
│   │   │   └── 5fb42e61aa9f108cf09a511ee34b8b665bc40a
│   │   ├── 3a
│   │   │   ├── 60481c2a676a75b1fd12b6835bb442a435136c
│   │   │   └── fe2d146dc7629d07698c071f8852098b48f4d1
│   │   ├── 3c
│   │   │   └── 1977f71492dfa021317920b79b8aae24566e60
│   │   ├── 40
│   │   │   ├── 4b94d6d9cb3120e6fb82d96ec8ec920488c481
│   │   │   └── b2f963a6c6308d87ca06e072415ed40386b2ad
│   │   ├── 42
│   │   │   └── 76a4aa8cae034af56c324c439d7fe42d74fbf3
│   │   ├── 43
│   │   │   └── 9935bc859f49ba421a8974bb760bb425fa10fa
│   │   ├── 44
│   │   │   ├── 55a10cc78ba0d303105b142cf37f1ca855b0fb
│   │   │   └── 8e66d754a2150e878c6a815580e291f3622475
│   │   ├── 45
│   │   │   └── f73c721e7cdd6d013ad0e58a9e6979c6467826
│   │   ├── 48
│   │   │   └── aad69dda8e6be8c93b41ced907fd4074d8dc3e
│   │   ├── 4a
│   │   │   ├── 81bb88fb25ccab62b1a08f209abffad79318d6
│   │   │   ├── ee38d07b9855f8ac1a545780855fd0cb513483
│   │   │   └── efa02ac541ea06f94cc1299ba51239f854942c
│   │   ├── 50
│   │   │   └── 9887725bfeefb2b48e81ddc92da8228485a6bf
│   │   ├── 53
│   │   │   └── b146e71793f062b6261c4f0709387bb80afa32
│   │   ├── 55
│   │   │   └── 9a50c908629818525c27b929d57991b8c96686
│   │   ├── 57
│   │   │   └── 138a548da00eeeb5adb1da51f8c4234d4133e3
│   │   ├── 58
│   │   │   ├── 7c14a85a2c0721279494d71f1402d43b51b7eb
│   │   │   └── bac2ce9ebafafaf395d882b49406e445fa9663
│   │   ├── 5a
│   │   │   ├── 4419265799324b0ba17b2ce39b54f999c67742
│   │   │   └── a18e54f8fd65a24eab6b5368c95b2e4400c268
│   │   ├── 5b
│   │   │   └── a01180f02d5d9ace0c47c2535612e5854fc63a
│   │   ├── 5e
│   │   │   ├── 250b566e51fb0bd18a8854721da517d4555219
│   │   │   ├── 91c577fc0e1cba4ed3d3c6b3b92815839acd9b
│   │   │   └── 984a4923e476cdd8d740429951f0a70ce85390
│   │   ├── 5f
│   │   │   ├── 2663592422ba364333034b4253f3bbcdf5fe0b
│   │   │   └── 92e87c6d2d730c1f6b02346287061cfc76acb4
│   │   ├── 62
│   │   │   └── 0648965ac8287b554bd66787cc0b9e255ba960
│   │   ├── 63
│   │   │   ├── 0cd389de86d62e3a25c6c0b47eff89b71933f4
│   │   │   └── 8434a81a1e359bed336ff2777586a90593ca1a
│   │   ├── 65
│   │   │   └── c7f563844cbeb5f904a6ed6f36c86ff229ffdc
│   │   ├── 66
│   │   │   └── 06ae305cddc3b25a6a8900f4985329548988aa
│   │   ├── 67
│   │   │   ├── 94dada92eaee8187563cf0658106f26a6d6408
│   │   │   └── f7fd946435deb12651fff35bd6fcc96bd8f78d
│   │   ├── 68
│   │   │   └── 468127ac2821374518f5dc4c09e84a9c8baaf2
│   │   ├── 6b
│   │   │   └── b80f5f7a6529e5427e04ec58a061250944dbe1
│   │   ├── 6c
│   │   │   └── 9620cc237675285f8c984f37ea4ca32c8457be
│   │   ├── 6d
│   │   │   ├── 607a5823a63753b2ba5b0d440eeae9320a7bed
│   │   │   └── b0bf5ee6055bf23940ef317cedf2f324f6d7f7
│   │   ├── 6e
│   │   │   ├── 26f0ceb92c3d119a8c6d1df7597e3615ab9e27
│   │   │   ├── 8a5c2c31ea4fedc0c246957ece7db8aa39ffaf
│   │   │   └── 9bbc6f498281d6251351eb02411c520eb0bdc0
│   │   ├── 6f
│   │   │   └── f4a665511ab64b62500578a9469d86dad64454
│   │   ├── 71
│   │   │   └── b4d421d45120ace29dafb0f167cd569a2acce6
│   │   ├── 73
│   │   │   ├── 0825572a54a65bc0e6584c1008585963f6ad85
│   │   │   ├── 53db09f8ccbd51f1b83d7d05d91e2e5f66b4d5
│   │   │   └── 70cb9a3d7c13c6636fca9c0e2c4364af4a7fef
│   │   ├── 76
│   │   │   ├── 75f3764520ee21aeb3a62dfaef64d67663e5ae
│   │   │   └── 8ac11c73f020ebb6e9f2579e957f2f66368180
│   │   ├── 7b
│   │   │   └── 002bab3876d03713ff8156dac6321a4c815eec
│   │   ├── 7f
│   │   │   └── f4a5e67ccbb761138aaae8c58859506bfcdc02
│   │   ├── 80
│   │   │   └── e173f4645117be0778a77aae1dadc80609f13d
│   │   ├── 82
│   │   │   ├── 0da900222c8c19366e7f460ff407d67ceef36a
│   │   │   └── 21a6d136a98a2ef5e9dbdf5f13777c050a9bdf
│   │   ├── 84
│   │   │   └── 9d0c115cbd16e66ab21162150f1467be004772
│   │   ├── 85
│   │   │   └── 4e7f3769b548d840bb239b74e1aec5b29cdbfd
│   │   ├── 89
│   │   │   └── d7be41c1d3239a62d27dc4bb5c596183b46b6c
│   │   ├── 8a
│   │   │   └── 01b7aed110020a24612de6ab32c5fcc333aa6f
│   │   ├── 8b
│   │   │   └── dc353e3811eadb46adb0454d6fea3a05f7b004
│   │   ├── 8e
│   │   │   └── a3506d680b55373d77aed9728053e6de8711be
│   │   ├── 97
│   │   │   ├── e77fc1383c407d600eff2e67200210f904407a
│   │   │   └── eb6774ac6a1c2512ac408ff7f9639200be1a51
│   │   ├── 98
│   │   │   └── bc42be7da6082c8023689b9aabd9196244a489
│   │   ├── 99
│   │   │   └── 58e14e8c70cba17b60d99edac0600a6d095b4d
│   │   ├── 9d
│   │   │   └── 05f26de8848c6249967094f7fe87105410726a
│   │   ├── 9e
│   │   │   └── d9f10b03dc54cdd40a1e8b5a138a5830a968cc
│   │   ├── a2
│   │   │   └── 449f919bd773ab2b6c97278edbf8444bf30419
│   │   ├── a3
│   │   │   └── 9eee9b524225d9998bb0880a018f7cf0e7be80
│   │   ├── a4
│   │   │   ├── 3d6592eff96782f44a158ffcd549181cae17f6
│   │   │   └── 6c248875a31c19588b69757a06d90edc8590d2
│   │   ├── a7
│   │   │   ├── 76d83e2255a8235bbe7287712e08bf36e249cf
│   │   │   └── 7e3f79218babc25083a92521156512c8b30036
│   │   ├── a9
│   │   │   ├── 5c9ab421515b68554f1e53a99e66dbcc2d19ae
│   │   │   └── d642eef523f64790d7523e60d7157a90c9d87b
│   │   ├── aa
│   │   │   ├── 6c4fb377f8f19d966322776fa4ca9b794c5d99
│   │   │   └── f36d5bced17cadb06617ce42975525dd49e842
│   │   ├── ab
│   │   │   └── beb650311e16c79a784c71d3e2a02a747203e9
│   │   ├── ac
│   │   │   └── 546e16bb1a27618d52b15569900784e895714f
│   │   ├── b1
│   │   │   └── fda8c30f2049ccc6f9120532cf0861f0b1d584
│   │   ├── b2
│   │   │   └── 6e0afb3249585fe6a3e71f14d353c9f8268cb7
│   │   ├── b5
│   │   │   └── 05b86b5d2fa2fe7ecac2d49405ce4113532fa8
│   │   ├── b7
│   │   │   ├── 54aa937554536b902972f8d6209aba3dec2fba
│   │   │   └── 5c1209862955d4fb59da1707243d5f8fe12856
│   │   ├── b9
│   │   │   └── 9ee0fa80bdc49942c2bb1055a0283ba76c4ced
│   │   ├── bb
│   │   │   ├── 689d4821cc1f9085efc5284dd7a0e9c23e2327
│   │   │   └── a59c9600a73d55cf472987964c52c73ff50381
│   │   ├── bc
│   │   │   └── e9a12bcb780bb3387b76989ce023806099ab90
│   │   ├── c1
│   │   │   └── 7fe7f2d8d1c249c50e0fba3b1b125a38a3291f
│   │   ├── c2
│   │   │   ├── 0f16f65dfed79942d08d3943b7239dabe11260
│   │   │   └── 4abf0413919567be6344618282a6ba7b45234c
│   │   ├── c8
│   │   │   └── 13f922236317e03604e2101a210a2b7481c15e
│   │   ├── cc
│   │   │   └── 00586bc97fd3e261dd314dddce5d37b8393309
│   │   ├── ce
│   │   │   └── 1ba5002f4055edfe5121de1d19c34990c9d365
│   │   ├── d5
│   │   │   └── 152cd1c1480dd43151cec8dce6c7080d642799
│   │   ├── d6
│   │   │   └── 7f3a580af25b67fb9601ebfe1ac702027e6416
│   │   ├── d7
│   │   │   ├── 7a8c4207d8f0e4818900f9b6f87f3f3eac8632
│   │   │   └── ea0b99acc8a96f8fc2a2a71d4a3c0392be276a
│   │   ├── da
│   │   │   ├── 4dab55d6f1a9a32ead30a47f840b62edcdfea1
│   │   │   └── 5e9f676694468424bdfb36b66ff73738d36937
│   │   ├── db
│   │   │   └── 7e472e6a24de908a2ce9c62daeafd6502b75fb
│   │   ├── dc
│   │   │   ├── 47ad71ee328faa8f1d4cfb0c29f868e9590e8d
│   │   │   └── cce30a206a9010333b54e3e49dc751420fe0e9
│   │   ├── dd
│   │   │   ├── 4c804e7ba400094451f722ad63fe8953215f69
│   │   │   └── 96b8b974b87d87e19305d91431edcf6cf4702c
│   │   ├── de
│   │   │   └── b897806bd1e5dade0262f3990a4a434c92b9a2
│   │   ├── df
│   │   │   ├── 8dbaa66634df27b9db23719fa611ee5c8f4773
│   │   │   └── eb4e7e1fd409e3f0831a2158ac25bd3d846acd
│   │   ├── e1
│   │   │   └── 31165bdc6a9b0b91d03ebc4569fd2b96abb613
│   │   ├── e4
│   │   │   └── d2b38c425ea5dfc62c19b20c65cdebbe93c95c
│   │   ├── e8
│   │   │   └── 6a1d626cdc59706ef1684c7a33c516e91296dc
│   │   ├── e9
│   │   │   ├── 8a812c443aee2de6cc43a5aaf8decb5b5f009e
│   │   │   └── 9bd339856c93fb4dce0da46cd688555bcabc15
│   │   ├── ea
│   │   │   └── 608b73bf6f34dc936b9067aa08eddfcaceca35
│   │   ├── ed
│   │   │   ├── 630b2246d39dbfdac47142c9a61dd38c0281e9
│   │   │   └── c59802efd208ac9d9af794efaebb572bc6fb9c
│   │   ├── ef
│   │   │   ├── 8b07135c44f51706e690197012d07f62f9a32f
│   │   │   └── ed439660621bdc5fa3e43bf085cd04c533c265
│   │   ├── f0
│   │   │   └── 5f6a3af3d03e0bd6223e129768be27199c8da4
│   │   ├── f2
│   │   │   ├── 181072a5fdaf4c2d737381f8ef14d14d183843
│   │   │   └── 1fa805a100f5cb5e501eaa93788a36effeaf14
│   │   ├── f3
│   │   │   └── 49e3d4b43c0fec3303d8f0021c8ffcf9d5419e
│   │   ├── f5
│   │   │   ├── 550989bfe1a7ce98ab894cc73b4b731a3bc1e8
│   │   │   └── e6658d0dc21e62a98f38e5619cd0189f8742b6
│   │   ├── f6
│   │   │   └── ee313e5617f6ac985ec9571a802156b8fd6119
│   │   ├── f9
│   │   │   └── ae9ed5b7d164961dca5b0a1bf5c8598b3cafcf
│   │   ├── fd
│   │   │   └── 6397165472c9b3e782defa4e48a031d6409070
│   │   ├── fe
│   │   │   ├── 17cbda22340801d5666fbf011429165a134dff
│   │   │   └── c167af18a6f49f66c849a8fb28ca94400bff95
│   │   ├── info
│   │   └── pack
│   │   ├── pack-6d6ea893af9b4c9e27890344c14d7734661ca19a.idx
│   │   ├── pack-6d6ea893af9b4c9e27890344c14d7734661ca19a.pack
│   │   └── pack-6d6ea893af9b4c9e27890344c14d7734661ca19a.rev
│   ├── ORIG_HEAD
│   ├── packed-refs
│   └── refs
│   ├── heads
│   │   ├── FPS_Tests
│   │   ├── main
│   │   └── test_sqlite
│   ├── remotes
│   │   └── origin
│   │   ├── FPS_Tests
│   │   ├── HEAD
│   │   ├── main
│   │   └── test_sqlite
│   └── tags
├── .gitignore
├── pictures
│   ├── capture_show_noraml.jpg
│   ├── treender.png
│   └── treender.svg
├── random
│   ├── build_sytem
│   │   ├── build.cpp
│   │   └── build.hpp
│   ├── netw.cpp
│   ├── rotating.cpp
│   ├── rotation_in_just_math.cpp
│   ├── server.cpp
│   ├── slike.cpp
│   └── test_even_distribution.cpp
├── Readme.md
├── server
│   ├── inc
│   │   └── checker.hpp
│   └── src
│   ├── checker.cpp
│   └── server.cpp
├── shared
│   ├── inc
│   │   ├── canvas
│   │   │   ├── BackGroundColors.hpp
│   │   │   ├── BackGround.hpp
│   │   │   ├── Canvas.hpp
│   │   │   ├── stb_perlin.h
│   │   │   └── Tree.hpp
│   │   ├── sql.hpp
│   │   ├── TcpSocket.hpp
│   │   └── values
│   │   ├── Dna.hpp
│   │   ├── DnaManager.hpp
│   │   ├── mrand.hpp
│   │   └── Similarity.hpp
│   └── src
│   ├── canvas
│   │   ├── BackGroundColors.cpp
│   │   ├── BackGround.cpp
│   │   ├── Canvas.cpp
│   │   └── Tree.cpp
│   ├── sql.cpp
│   ├── TcpSocket.cpp
│   └── values
│   ├── Dna.cpp
│   ├── DnaManager.cpp
│   ├── mrand.cpp
│   └── Similarity.cpp
├── tmp.txt
├── view
│   ├── inc
│   │   └── Vapp.hpp
│   └── src
│   ├── main.cpp
│   └── Vapp.cpp
└── .vscode
├── c_cpp_properties.json
├── launch.json
├── settings.json
└── tasks.json
183 directories, 393 files

34
scrap/.gitignore vendored Normal file
View File

@@ -0,0 +1,34 @@
# dependencies (bun install)
node_modules
# output
out
dist
*.tgz
# code coverage
coverage
*.lcov
# logs
logs
_.log
report.[0-9]_.[0-9]_.[0-9]_.[0-9]_.json
# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local
# caches
.eslintcache
.cache
*.tsbuildinfo
# IntelliJ based IDEs
.idea
# Finder (MacOS) folder config
.DS_Store

15
scrap/README.md Normal file
View File

@@ -0,0 +1,15 @@
# job
To install dependencies:
```bash
bun install
```
To run:
```bash
bun run index.ts
```
This project was created using `bun init` in bun v1.3.6. [Bun](https://bun.com) is a fast all-in-one JavaScript runtime.

35
scrap/bun.lock Normal file
View File

@@ -0,0 +1,35 @@
{
"lockfileVersion": 1,
"configVersion": 1,
"workspaces": {
"": {
"name": "job",
"dependencies": {
"playwright": "^1.59.1",
},
"devDependencies": {
"@types/bun": "latest",
},
"peerDependencies": {
"typescript": "^5",
},
},
},
"packages": {
"@types/bun": ["@types/bun@1.3.12", "", { "dependencies": { "bun-types": "1.3.12" } }, "sha512-DBv81elK+/VSwXHDlnH3Qduw+KxkTIWi7TXkAeh24zpi5l0B2kUg9Ga3tb4nJaPcOFswflgi/yAvMVBPrxMB+A=="],
"@types/node": ["@types/node@25.6.0", "", { "dependencies": { "undici-types": "~7.19.0" } }, "sha512-+qIYRKdNYJwY3vRCZMdJbPLJAtGjQBudzZzdzwQYkEPQd+PJGixUL5QfvCLDaULoLv+RhT3LDkwEfKaAkgSmNQ=="],
"bun-types": ["bun-types@1.3.12", "", { "dependencies": { "@types/node": "*" } }, "sha512-HqOLj5PoFajAQciOMRiIZGNoKxDJSr6qigAttOX40vJuSp6DN/CxWp9s3C1Xwm4oH7ybueITwiaOcWXoYVoRkA=="],
"fsevents": ["fsevents@2.3.2", "", { "os": "darwin" }, "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA=="],
"playwright": ["playwright@1.59.1", "", { "dependencies": { "playwright-core": "1.59.1" }, "optionalDependencies": { "fsevents": "2.3.2" }, "bin": { "playwright": "cli.js" } }, "sha512-C8oWjPR3F81yljW9o5OxcWzfh6avkVwDD2VYdwIGqTkl+OGFISgypqzfu7dOe4QNLL2aqcWBmI3PMtLIK233lw=="],
"playwright-core": ["playwright-core@1.59.1", "", { "bin": { "playwright-core": "cli.js" } }, "sha512-HBV/RJg81z5BiiZ9yPzIiClYV/QMsDCKUyogwH9p3MCP6IYjUFu/MActgYAvK0oWyV9NlwM3GLBjADyWgydVyg=="],
"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
"undici-types": ["undici-types@7.19.2", "", {}, "sha512-qYVnV5OEm2AW8cJMCpdV20CDyaN3g0AjDlOGf1OW4iaDEx8MwdtChUp4zu4H0VP3nDRF/8RKWH+IPp9uW0YGZg=="],
}
}

36
scrap/index.ts Normal file
View File

@@ -0,0 +1,36 @@
import playwright from 'playwright';
function sleep(ms: number | undefined) {
return new Promise((resolve) => {
setTimeout(resolve, ms);
});
}
(async () => {
const browser = await playwright.chromium.launch({headless : false});
const context = await browser.newContext();
const page = await context.newPage();
await context.route('**.jpg', route => route.abort());
await page.goto('https://www.google.com/maps/search/Software+company/@46.0463511,14.5023435,14z');
await page.click('span:has-text("Sprejmi")');
await page.waitForLoadState('networkidle');
console.log(await page.title());
// for div role="article"
// div class fontHeadlineSmall
// a contains spletno mesto get htef
// print name and url
// when you get to bottom scrool down with mouse to load more articles
for await (const line of console) {
console.log(line);
// wait for user enter to continue
break;
}
await context.close();
await browser.close();
})();

15
scrap/package.json Normal file
View File

@@ -0,0 +1,15 @@
{
"name": "job",
"module": "index.ts",
"devDependencies": {
"@types/bun": "latest"
},
"peerDependencies": {
"typescript": "^5"
},
"private": true,
"type": "module",
"dependencies": {
"playwright": "^1.59.1"
}
}

29
scrap/tsconfig.json Normal file
View File

@@ -0,0 +1,29 @@
{
"compilerOptions": {
// Environment setup & latest features
"lib": ["ESNext"],
"target": "ESNext",
"module": "Preserve",
"moduleDetection": "force",
"jsx": "react-jsx",
"allowJs": true,
// Bundler mode
"moduleResolution": "bundler",
"allowImportingTsExtensions": true,
"verbatimModuleSyntax": true,
"noEmit": true,
// Best practices
"strict": true,
"skipLibCheck": true,
"noFallthroughCasesInSwitch": true,
"noUncheckedIndexedAccess": true,
"noImplicitOverride": true,
// Some stricter flags (disabled by default)
"noUnusedLocals": false,
"noUnusedParameters": false,
"noPropertyAccessFromIndexSignature": false
}
}