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 subprocess | |
| def looksLikeBeginning(doc,seg,adr): | |
| if isinstance(seg.getNameAtAddress(adr), str): | |
| label = seg.getNameAtAddress(adr) | |
| pos = label.find("_T") | |
| if pos != -1: | |
| return label[pos:] | |
| return None |
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
| @propertyWrapper | |
| public struct InvalidateBody<T> { | |
| private var value: T | |
| weak var storage: UIViewController? | |
| let selector: Selector | |
| public var wrappedValue: T { | |
| get { value } | |
| set { |
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
| Example 1: | |
| override func viewDidAppear(_ animated: Bool) { | |
| super.viewDidAppear(animated) | |
| task = Task { | |
| print("did start first url data request") | |
| _ = try await URLSession.shared.data(from: .init(string: "https://httpbin.org/delay/10")!) | |
| print("did finish first url data request") | |
| print("did start second url data request") | |
| _ = try await URLSession.shared.data(from: .init(string: "https://httpbin.org/delay/10")!) |
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
| Website which finds first commit of a given github user: https://firstcommit.is |
OlderNewer