# enable internal menu
defaults write com.apple.dt.Xcode ShowDVTDebugMenu -book YES
alias xcbuild=$(xcode-select -p)/../SharedFrameworks/XCBuild.framework/Versions/A/Support/xcbuild
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
//: Playground - noun: a place where people can play | |
import Foundation | |
public struct ContextKey<Value> { | |
public let name: String | |
public let defaultValue: () -> Value | |
public init(_ name: String, default defaultValue: @escaping @autoclosure () -> Value) { | |
self.name = name |
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
//: Playground - noun: a place where people can play | |
import Foundation | |
protocol ObserverType { | |
associatedtype Element | |
func onNext(_ element: Element) | |
func onComplete() | |
func onError(_ error: Error) |
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
fileprivate class AnyEquatableBase { | |
func isEqual(to other: AnyEquatableBase) -> Bool { | |
fatalError("isEqual(to:) must be overridden in subclass") | |
} | |
} | |
fileprivate final class AnyEquatableBox<T: Equatable> : AnyEquatableBase { | |
private let value: T | |
init(_ value: T) { |
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/sh | |
# dhclient change hostname script for Ubuntu | |
# /etc/dhcp/dhclient-exit-hooks.d/sethostname | |
# logs in /var/log/upstart/network-interface-eth0.log | |
set -x | |
export | |
if [ "$reason" = "BOUND" ] || [ "$reason" = "RENEW" ] || [ "$reason" = "REBIND" ] || [ "$reason" = "REBOOT" ]; then | |
echo new_ip_address=$new_ip_address |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
id | first_name | last_name | ||
---|---|---|---|---|
1 | Ara | Hackett | [email protected] | |
2 | Marco | Champlin | [email protected] | |
3 | Martin | Rogahn | [email protected] | |
4 | Marcos | Turcotte | [email protected] | |
5 | Jedediah | Yundt | [email protected] | |
6 | Vivien | Schroeder | [email protected] | |
7 | Leopold | Cartwright | [email protected] | |
8 | Euna | Ernser | [email protected] | |
9 | Rhianna | Feeney | [email protected] |
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
struct Manager { | |
final class Configuration { | |
var name: String = "default" | |
var timeout: Double = 500 | |
} | |
private let configuration: Configuration | |
var name: String { | |
return configuration.name |
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 RawRepresentable where RawValue == Int { | |
static func enumerate() -> Self { | |
return self.init(rawValue: 0)! | |
} | |
static func makeIterator() -> AnyIterator<Self> { | |
var index = 0 | |
return AnyIterator { | |
let value = Self.init(rawValue: index) |
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
*.mobileprovision diff=provisioningprofile | |
*.provisionprofile diff=provisioningprofile |
NewerOlder