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
| func run(completion:@escaping()->Void) { | |
| DispatchQueue.main.async { | |
| completion() | |
| } | |
| } | |
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
| func loadImage(urlString1:String,urlString2:String) { | |
| DispatchQueue.global().async { | |
| let url1 = URL(string: urlString1) | |
| let url2 = URL(string: urlString2) | |
| guard let data1 = try? Data(contentsOf: url1!) else {return} | |
| guard let data2 = try? Data(contentsOf: url2!) else {return} | |
| self.dispatchGroup.enter() | |
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
| func displayUser() { | |
| print("reloading data") | |
| } |
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
| @IBAction func updateButton(_ sender: Any) { | |
| loadImage(urlString1: urlString1, urlString2: urlString2) | |
| dispatchGroup.notify(queue: .main) { | |
| self.displayUser() | |
| } |
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
| @IBAction func updateButton(_ sender: Any) { | |
| loadImage(urlString1: urlString1, urlString2: urlString2) | |
| dispatchGroup.notify(queue: .main) { | |
| self.displayUser() | |
| } | |
| } |
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 java.util.Scanner; | |
| public class ChainTest { | |
| int count = 0; | |
| public static final char SPACE = ' '; | |
| public static final char TAB = '\t'; | |
| public static final char BREAK_LINE = '\n'; |
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 java.util.Scanner; | |
| public class ChainTest { | |
| int count = 0; | |
| public static final char SPACE = ' '; | |
| public static final char TAB = '\t'; | |
| public static final char BREAK_LINE = '\n'; |
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
| class Location{ | |
| var name:String = "" | |
| var address:String = "" | |
| init(name:String,address:String) { | |
| self.name = name | |
| self.address = address | |
| } |
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
| { | |
| "name": "Back-endAppTracking", | |
| "version": "1.0.0", | |
| "description": "", | |
| "main": "index.js", | |
| "scripts": { | |
| "start": "node src/index.js", | |
| "dev": "nodemon src/index.js" | |
| }, | |
| "keywords": [], |
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
| // | |
| // HomeVC.swift | |
| // Animation-Research | |
| // | |
| // Created by Ominext on 3/18/20. | |
| // Copyright © 2020 Ominext. All rights reserved. | |
| // | |
| import UIKit | |
| import SnapKit |
OlderNewer