This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <string> | |
| #include <vector> | |
| struct Element { | |
| std::string info; | |
| int id, lid, rid; | |
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Users Table (if not using ASP.NET Core Identity) | |
| CREATE TABLE Users ( | |
| UserId INT PRIMARY KEY AUTO_INCREMENT, | |
| Username VARCHAR(255) NOT NULL, | |
| PasswordHash VARCHAR(255) NOT NULL, -- Adjust according to your security practices | |
| Email VARCHAR(255) NOT NULL, | |
| Role ENUM('Teacher', 'Student', 'Auditor') NOT NULL | |
| ); | |
| -- Languages Table |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <vector> | |
| using namespace std; | |
| void conversion(){ | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <vector> | |
| using namespace std; | |
| int sum(int a, int b){ | |
| return a + b; | |
| } | |
| void print_sum_of_two_numbers(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| void print_sum_of_two_numbers(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from logging.config import fileConfig | |
| from sqlalchemy import engine_from_config | |
| from sqlalchemy import pool | |
| from alembic import context | |
| # this is the Alembic Config object, which provides | |
| # access to the values within the .ini file in use. | |
| config = context.config |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sqlite3 | |
| from model import Client | |
| def connect_to_db(path: str): | |
| return sqlite3.connect(path) | |
| def commit_and_close_db(conn): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| using namespace std; | |
| #include <vector> | |
| #include <map> | |
| // Computer -> Motherboard [....], Peripherals [....] | |
| struct Komponentas{ | |
| string pavadinimas; | |
| map<string, string> specifikacija; | |
| double kaina; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // U4. Monetos LD1.cpp : This file contains the 'main' function. Program execution begins and ends there. | |
| #include "Monetos.h" | |
| #include "Kolekcininkas.h" | |
| #include <string> | |
| #include <iostream> | |
| #include <cmath> | |
| #include <sstream> | |
| #include <ostream> | |
| #include <iomanip> | |
| #include <fstream> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <map> | |
| #include <vector> | |
| using namespace std; | |
| const int ELEMENT_NOT_FOUND = -1; | |
| int paieska(const vector<int> &sarasas, int skaicius) { | |
| for (int i = 0; i < sarasas.size(); ++i) { |
NewerOlder