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
| # Swift Algorithms 教學指南 | |
| 本指南將帶您深入了解 Swift Algorithms 程式庫中的各種序列和集合演算法,並學習如何在實際專案中運用這些強大的工具。 | |
| ## 目錄 | |
| 1. [入門介紹](#入門介紹) | |
| 2. [安裝與設定](#安裝與設定) | |
| 3. [核心概念](#核心概念) | |
| 4. [分塊演算法 (Chunking)](#分塊演算法-chunking) |
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 說: | |
| def __init__(self, value): | |
| self.value = value | |
| def 次(self, content): | |
| for i in range(self.value): | |
| print(i + 1, content) | |
| 說(100).次("I am developer") |
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
| #!/bin/bash | |
| # https://www.pxqlvr.cc/h5/card/all?paramCode=RING_HINT | |
| API_KEY="c79fe37edemsh165b76202e16625p1c775ajsnd00bc8f4cc15" | |
| sendRequest() { | |
| curl --request POST \ | |
| --url 'https://bin-ip-checker.p.rapidapi.com/?bin=111111' \ | |
| --header 'Content-Type: application/json' \ |
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
| // | |
| // DTReachability.swift | |
| // | |
| // Created by Darktt on 16/11/24. | |
| // Copyright © 2016 Darktt. All rights reserved. | |
| // | |
| import Foundation | |
| import Network |
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
| // | |
| // NSAttributedStringExtension.swift | |
| // | |
| // Created by Darktt on 19/9/3. | |
| // Copyright © 2019 Darktt. All rights reserved. | |
| // | |
| import Foundation | |
| #if canImport(AppKit) && !targetEnvironment(macCatalyst) |
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
| // | |
| // DTAnimationLabel.swift | |
| // | |
| // Created by Darktt on 18/1/29. | |
| // Copyright © 2018 Darktt. All rights reserved. | |
| // | |
| import UIKit | |
| private let kMaximumTimes: Double = 100.0 |
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
| // | |
| // EventPublisher.swift | |
| // | |
| // Created by Darktt on 23/4/14. | |
| // Copyright © 2023 Darktt. All rights reserved. | |
| // | |
| import UIKit.UIControl | |
| import Combine |
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
| // | |
| // DTCircleProgressView.swift | |
| // | |
| // Created by Darktt on 19/1/21. | |
| // Copyright © 2019 Darktt. All rights reserved. | |
| // | |
| import UIKit | |
| public class DTCircleProgressView: UIView |
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
| // | |
| // JSContextExtension.swift | |
| // | |
| // Created by Darktt on 23/8/30. | |
| // Copyright © 2023 Darktt. All rights reserved. | |
| // | |
| import JavaScriptCore | |
| public |
NewerOlder