This file contains 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
// | |
// main.swift | |
// Closures-4Jul2023 | |
// | |
// Created by Tornike on 04/07/2023. | |
// | |
import Foundation | |
typealias OnAuthenticateCompletion = ((Bool) -> Void) |
This file contains 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
// | |
// main.swift | |
// Closures-4Jul2023 | |
// | |
// Created by Tornike on 04/07/2023. | |
// | |
import Foundation | |
typealias OnAuthenticateCompletion = ((Bool) -> Void) |
This file contains 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
Exercise Title: Restaurant Management System | |
Objective: Create an object-oriented program using Swift to simulate the operations of a restaurant. | |
Your main entities will be Chef, Waiter, Customer, Order, Menu, and FoodItem. Your program should demonstrate a | |
comprehensive understanding of protocols, multiple protocols, inheritance, and polymorphism. | |
Instructions: | |
Protocols: | |
Create a protocol Employable that defines common attributes like name, id, salary, and functions such as work(). |
This file contains 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
// | |
// TNETDebtView.swift | |
// | |
// | |
// Created by Tornike on 15/06/2023. | |
// | |
import Foundation | |
import UIKit | |
import Domain |
This file contains 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
// | |
// main.swift | |
// MemoryLeaks25May2023 | |
// | |
// Created by Tornike on 25/05/2023. | |
// | |
import Foundation | |
// Retain cycle |
This file contains 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
// | |
// main.swift | |
// Structures12Apr2023 | |
// | |
// Created by Tornike on 12/04/2023. | |
// | |
import Foundation | |
//Music Player |
This file contains 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
// | |
// NetworkConnetionProvider.swift | |
// | |
// | |
// Created by Tornike on 12.12.22. | |
// | |
import Foundation | |
import Reachability |
This file contains 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
// | |
// MulticastDelegate.swift | |
// | |
// | |
// Created by Tornike on 12.12.22. | |
// | |
import Foundation | |
final class MulticastDelegate<T> { |
This file contains 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
enum CubeColorType { | |
case white | |
case black | |
case none | |
} | |
class Cube { | |
var color: CubeColorType | |
var perviousCube: Cube? | |
var numeration: Int |
This file contains 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
შექმენით ერთი მასივი, რომესაც შეავსებთ რენდომ რიცხვებით. | |
შემდეგ შექმენით მეორე მასივი. | |
შემდეგ შეავსეთ მეორე მასივი, პირველი მასივის რიცხვებით ოღონდ რევერსულად. | |
მაგალითად; | |
პირველი მასივში გაქვთ : 5,10,24,2 | |
მეორე მასივი ჯერ გაქვთ ცარიელი: [] |
NewerOlder