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
final class PreviewView: UIView, LayoutBuilding { | |
var capTop = true { | |
didSet { | |
UIView.animate(withDuration: 1.0) { | |
self.updateLayout() | |
} | |
} | |
} | |
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 extension NotificationCenter { | |
private class FirstReceiver: NSObject { | |
let notificationName: Notification.Name | |
init(_ name: Notification.Name) { | |
notificationName = name | |
super.init() | |
} |
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
extension Notification.Name { | |
static let testNotification: Notification.Name = .init("TestNotification") | |
} | |
final class NotificationConcurrencyTests: XCTestCase { | |
func testWaitNotification() async throws { | |
let expect = XCTestExpectation(description: "DisposableNotification") | |
let queue = DispatchQueue(label: "test", attributes: .concurrent) | |
for _ in 0...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
try: | |
import lldb | |
except: | |
pass | |
import textwrap | |
import hashlib | |
from collections import namedtuple | |
object_register = "" |
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 sys | |
import requests | |
import yt_dlp | |
import openai | |
def get_best_format(m3u8_url): | |
ydl_opts = { | |
'listformats': True, | |
} | |
OlderNewer