Skip to content

Instantly share code, notes, and snippets.

View tornikegomareli's full-sized avatar

Tornike Gomareli tornikegomareli

View GitHub Profile
//
// main.swift
// Closures-4Jul2023
//
// Created by Tornike on 04/07/2023.
//
import Foundation
typealias OnAuthenticateCompletion = ((Bool) -> Void)
@tornikegomareli
tornikegomareli / weakSelf.swift
Created July 9, 2023 18:56
Weak Self Example
//
// main.swift
// Closures-4Jul2023
//
// Created by Tornike on 04/07/2023.
//
import Foundation
typealias OnAuthenticateCompletion = ((Bool) -> Void)
@tornikegomareli
tornikegomareli / 20June2023 - Swift Task
Last active June 20, 2023 08:23
Swift OOP Task for Students
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().
@tornikegomareli
tornikegomareli / TNETAmountTextFieldView.swift
Last active June 19, 2023 08:28
TNETAmountTextFieldView
//
// TNETDebtView.swift
//
//
// Created by Tornike on 15/06/2023.
//
import Foundation
import UIKit
import Domain
//
// main.swift
// MemoryLeaks25May2023
//
// Created by Tornike on 25/05/2023.
//
import Foundation
// Retain cycle
@tornikegomareli
tornikegomareli / playlists.swift
Created April 25, 2023 19:16
Playlist structure, enums. Add & filter & remove
//
// main.swift
// Structures12Apr2023
//
// Created by Tornike on 12/04/2023.
//
import Foundation
//Music Player
//
// NetworkConnetionProvider.swift
//
//
// Created by Tornike on 12.12.22.
//
import Foundation
import Reachability
//
// MulticastDelegate.swift
//
//
// Created by Tornike on 12.12.22.
//
import Foundation
final class MulticastDelegate<T> {
@tornikegomareli
tornikegomareli / lessonFriday.swift
Last active March 18, 2022 19:24
Swift structured based chess
enum CubeColorType {
case white
case black
case none
}
class Cube {
var color: CubeColorType
var perviousCube: Cube?
var numeration: Int
@tornikegomareli
tornikegomareli / gist:671fc4c89dd8d9e06064af26e581bbd8
Created February 13, 2021 17:29
დავალება - 13 February
შექმენით ერთი მასივი, რომესაც შეავსებთ რენდომ რიცხვებით.
შემდეგ შექმენით მეორე მასივი.
შემდეგ შეავსეთ მეორე მასივი, პირველი მასივის რიცხვებით ოღონდ რევერსულად.
მაგალითად;
პირველი მასივში გაქვთ : 5,10,24,2
მეორე მასივი ჯერ გაქვთ ცარიელი: []