running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8
| using UnityEngine; | |
| public class GunSprint : MonoBehaviour { | |
| [SerializeField] private Bullet _bulletPrefab; | |
| [SerializeField] private Transform _spawnPoint; | |
| [SerializeField] private ParticleSystem _smokeSystem; | |
| [SerializeField] private LayerMask _targetLayer; | |
| [SerializeField] private float _bulletSpeed = 12; | |
| [SerializeField] private float _torque = 120; |
| import UIKit | |
| import SwiftUI | |
| final class LoginViewController: UIHostingController<LoginView> { | |
| private let viewModel: LoginViewModel | |
| init(viewModel: LoginViewModel) { | |
| self.viewModel = viewModel | |
| super.init(rootView: LoginView(viewModel: viewModel)) | |
| } |
| import SwiftUI | |
| import PlaygroundSupport | |
| struct Sunset: View { | |
| @State var backgroundColor = Color.blue | |
| @State var sunSetted = false | |
| let sunGradient = [Color.yellow, Color.orange] | |
| let moonGradient = [Color.gray, Color.black] | |
| @State var alignment = Alignment.top | |
| # A Best in Class Checklist | |
| A boiled down checklist adapted from this [post](https://www.swiftjectivec.com/a-best-in-class-app/), created by @jordanmorgan10. | |
| > To use this, create a Github Issue in your own repo, and simply copy and paste this text. | |
| ## iOS Core Technology | |
| _Things any iOS app can benefit from_ | |
| - [ ] iCloud Sync | |
| - [ ] Focus Filter Support |
| import SwiftUI | |
| extension CGRect { | |
| fileprivate func point(anchor: UnitPoint) -> CGPoint { | |
| var point = self.origin | |
| point.x += self.size.width * anchor.x | |
| #if os(macOS) | |
| point.y += self.size.height * (1 - anchor.y) | |
| #else | |
| point.y += self.size.height * anchor.y |
| import SwiftUI | |
| import PlaygroundSupport | |
| struct Desktop: View { | |
| var body: some View { | |
| ZStack { | |
| // Image(uiImage: #imageLiteral(resourceName: "IMG_6281.JPG")) | |
| Color(UIColor.systemBlue) | |
| macOS() | |
| } |
| // | |
| // BottomSheetView.swift | |
| // | |
| // Created by Majid Jabrayilov | |
| // Copyright © 2019 Majid Jabrayilov. All rights reserved. | |
| // | |
| import SwiftUI | |
| fileprivate enum Constants { | |
| static let radius: CGFloat = 16 |
| import SwiftUI | |
| struct ContentView : View { | |
| var body: some View { | |
| ZStack(alignment: Alignment.top) { | |
| MapView() | |
| SlideOverCard { | |
| VStack { | |
| CoverImage(imageName: "maitlandbay") | |
| Text("Maitland Bay") |
| /// Quick-n-dirty translation of MWFeedParser's algorithm from Objective-C to Swift | |
| /// seealso: https://github.com/mwaterfall/MWFeedParser/blob/master/Classes/NSString%2BHTML.m | |
| public extension NSString { | |
| public func byConvertingHTMLToPlainText() -> String { | |
| let stopCharacters = CharacterSet(charactersIn: "< \t\n\r\(0x0085)\(0x000C)\(0x2028)\(0x2029)") | |
| let newLineAndWhitespaceCharacters = CharacterSet(charactersIn: " \t\n\r\(0x0085)\(0x000C)\(0x2028)\(0x2029)") | |
| let tagNameCharacters = CharacterSet(charactersIn: "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ") | |
running:
bash create-vod-hls.sh beach.mkv
will produce:
beach/
|- playlist.m3u8
|- 360p.m3u8