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
template<typename Policy, typename ...Args> | |
auto set_window_management_policy(Args& ... args) -> SetWindowManagementPolicy | |
{ | |
return SetWindowManagementPolicy{[&args...](WindowManagerTools const& tools) -> std::unique_ptr<WindowManagementPolicy> | |
{ return std::make_unique<Policy>(tools, args...); }}; | |
} | |
} |
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 processEventMessage( req: Request, e: EventMessage) throws -> Future<EventResponse> { | |
let logger = try req.make(Logger.self) | |
logger.debug("This is the event to process: (e)") | |
guard let sessionStatus = e.sessionStatus else { | |
logger.info("Unable to parse metadata for (e)") | |
throw EventReceiveError.CouldNotDecodeMetadata(event: e) | |
} | |
let eventUUID = e.uuid | |
let eventName = sessionStatus.name | |
let projectID = sessionStatus.projectID |
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
$ vapor xcode | |
Generating Xcode Project [Failed] | |
https://github.com/apple/swift-nio.git @ master: error: manifest parse error(s): | |
/var/folders/hj/q88gsvz5221bdtht4ct6xp8r0000gn/T/TemporaryFile.h7wjCe.swift:41:12: error: incorrect argument label in call (have 'name:dependencies:linkerSettings:', expected 'name:dependencies:path:') | |
.target(name: "CNIOZlib", | |
^ | |
'vapor' /Users/fnord/Documents/OpenSourceDev/vapor: error: product dependency 'ServiceKit' not found | |
'vapor' /Users/fnord/Documents/OpenSourceDev/vapor: error: product dependency 'Routing' not found | |
'vapor' /Users/fnord/Documents/OpenSourceDev/vapor: error: product dependency 'Command' not found | |
'vapor' /Users/fnord/Documents/OpenSourceDev/vapor: error: product dependency 'Console' not found |
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 UIKit | |
class ViewController: UIViewController { | |
let movableView: UIView = { | |
let view = UIView(frame: .zero) | |
view.translatesAutoresizingMaskIntoConstraints = false | |
view.accessibilityIdentifier = "MovableView" | |
view.backgroundColor = .red | |
return view | |
}() |
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 crud<ParentType>( | |
at path: PathComponentsRepresentable..., | |
parent relation: KeyPath<ChildType, Parent<ChildType, ParentType>>, | |
_ either: OnlyExceptEither<ParentRouterMethod>, | |
relationConfiguration: ((CrudParentController<ChildType, ParentType>) -> Void)? | |
) where | |
ParentType: Model & Content, | |
ChildType.Database == ParentType.Database, | |
ParentType.ID: Parameter |
This file has been truncated, but you can view the full file.
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
-> Core | |
Core (3.4.4) - Analyzing on iOS 10.0 platform. | |
Preparing | |
Analyzing dependencies | |
Inspecting targets to integrate | |
Using `ARCHS` setting to build architectures of target `Pods-App`: (``) |
This file has been truncated, but you can view the full file.
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
-> Core | |
Core (3.4.4) - Analyzing on iOS 10.0 platform. | |
Preparing | |
Analyzing dependencies | |
Inspecting targets to integrate | |
Using `ARCHS` setting to build architectures of target `Pods-App`: (``) |
This file has been truncated, but you can view the full file.
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
-> Core | |
Core (3.4.4) - Analyzing on iOS 10.0 platform. | |
Preparing | |
Analyzing dependencies | |
Inspecting targets to integrate | |
Using `ARCHS` setting to build architectures of target `Pods-App`: (``) |
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 UIKit | |
class PagedViewController: UIViewController { | |
// MARK: - Properties | |
private static let defaultPageControlConstraints: (PagedViewController) -> ([NSLayoutConstraint]) | |
= { (pagedViewController: PagedViewController) in | |
return [ | |
pagedViewController.pageControl.bottomAnchor.constraint( | |
equalTo: pagedViewController.scrollView.bottomAnchor, |
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
$ git clone https://github.com/twof/VaporMailgunService | |
Cloning into 'VaporMailgunService'... | |
remote: Enumerating objects: 19, done. | |
remote: Counting objects: 100% (19/19), done. | |
remote: Compressing objects: 100% (15/15), done. | |
remote: Total 244 (delta 4), reused 13 (delta 2), pack-reused 225 | |
Receiving objects: 100% (244/244), 47.44 KiB | 0 bytes/s, done. | |
Resolving deltas: 100% (85/85), done. | |
$ cd VaporMailgunService/ | |
$ vapor build |