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
| // | |
| // NetworkConnetionProvider.swift | |
| // | |
| // | |
| // Created by Tornike on 12.12.22. | |
| // | |
| import Foundation | |
| import Reachability |
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
| // | |
| // MulticastDelegate.swift | |
| // | |
| // | |
| // Created by Tornike on 12.12.22. | |
| // | |
| import Foundation | |
| final class MulticastDelegate<T> { |
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
| enum CubeColorType { | |
| case white | |
| case black | |
| case none | |
| } | |
| class Cube { | |
| var color: CubeColorType | |
| var perviousCube: Cube? | |
| var numeration: Int |
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
| แจแแฅแแแแแ แแ แแ แแแกแแแ, แ แแแแกแแช แจแแแแกแแแ แ แแแแแ แ แแชแฎแแแแแ. | |
| แจแแแแแ แจแแฅแแแแแ แแแแ แ แแแกแแแ. | |
| แจแแแแแ แจแแแแกแแ แแแแ แ แแแกแแแ, แแแ แแแแ แแแกแแแแก แ แแชแฎแแแแแ แแฆแแแ แ แแแแ แกแฃแแแ. | |
| แแแแแแแแแ; | |
| แแแ แแแแ แแแกแแแจแ แแแฅแแ : 5,10,24,2 | |
| แแแแ แ แแแกแแแ แฏแแ แแแฅแแ แชแแ แแแแ: [] |
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
| แแแแแแแแ 1 | |
| แแแฌแแ แแ แแ แแแ แแแ, แ แแแแแแช แแแแแญแแแแก 50 แชแแ แ แแแแแ แ แแชแฎแแก. | |
| แ แแแแแ แ แแชแฎแแ แฃแแแ แแฌแงแแแแแแก 10 แแแแ 200 แแแแ. | |
| แจแแแแจแแแ - แแ แแแแแแงแแแแ Google แ แแ bitcamp แแก แแแแฃแแแแขแแชแแ, แแแฌแแ แแ แแแแแฃแแแแแแแแ. | |
| แแแแแแแแ 2 | |
| แแแฌแแ แแ แแ แแแ แแแ, แ แแแแแแช แคแแขแ-แกแฃแ แแแก แแขแ แแแแแแก user แแก แแ แซแแแแแแก แแแฎแแแแแ. |
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
| แแแฌแแ แแ แแ แแแ แแแ, แ แแแแแแช แแแฎแแขแแแก แแแ แแแแแแก. | |
| แแแแแแแแแ แแกแแแก : | |
| # | |
| ## | |
| #### | |
| ###### |
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
| แแแฌแแ แแ แแ แแแ แแแ, แ แแแแแแช | |
| แแแฎแแแ แแแแแก แแแแแ แฉแแแแแแแก แแ แจแแแฅแแแแแแแแแก แแกแแ แคแแแฃแ แแก, แ แแแแแแช แแแแแแ แฃแแแ | |
| แแ แแแ แแแ แฃแแแ แแฃแจแแแแแแก แจแแแแแแแแแ แแ : | |
| แแแ แแแแ แแแแแฏแ : | |
| แแ แแแ แแแ แแแแแฎแแแ แแแแฎแแแ แแแแแก แแฃ แ แแแแแ แคแฃแแ แ แฃแแแ, แ แแ แจแแแฅแแแแก |
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
| using System; | |
| using System.Collections.Concurrent; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Threading; | |
| using System.Threading.Tasks; | |
| namespace ParallelFactorial | |
| { | |
| class Program |
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
| public static void ChangeValueInList<T>(this IList<T> collection, int index, T value) | |
| { | |
| var valueToChange = collection.FirstOrDefault(o => collection.IndexOf(o) == index); | |
| if(valueToChange != null) | |
| { | |
| valueToChange = value; | |
| } | |
| } |
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
| public static Expression<Func<T, bool>> StrToFunc<T>(string propName, string opr, string value, Expression<Func<T, bool>> expr = null) | |
| { | |
| Expression<Func<T, bool>> func = null; | |
| try | |
| { | |
| var type = typeof(T); | |
| var prop = type.GetProperty(propName); | |
| ParameterExpression tpe = Expression.Parameter(typeof(T)); | |
| Expression left = Expression.Property(tpe, prop); | |
| Expression right = Expression.Convert(ToExprConstant(prop, value), prop.PropertyType); |