Something to fetch
This file contains 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
// | |
// CwlRandom+NWA.swift | |
// Butterfly | |
// | |
// Created by Bruno Scheele on 10/07/16. | |
// Copyright © 2016 Noodlewerk Apps V.o.f. All rights reserved. | |
// | |
import Foundation |
This file contains 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
// The easiest pattern. Just use a `static let`, which gets lazy loaded as a bonus. | |
class Singleton { | |
static let sharedInstance = Singleton() | |
func helloWorld() { | |
print("Hello world") | |
} | |
} | |
Singleton.sharedInstance.helloWorld() // prints "Hello world" |
This file contains 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 UIKit | |
protocol Money: CustomStringConvertible { | |
var amount: Double { get } | |
var inGold: Double { get } | |
var symbol: String { get } | |
} |
This file contains 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
protocol Money { | |
var value: Double { get } | |
var inGold: Double { get } | |
var symbol: String { get } | |
} | |
// Sadly, gives a compiler error. | |
// "Extension of protocol 'Money' cannot have an inheritance clause" | |
extension Money: CustomStringConvertible { | |
var description: String { |
This file contains 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
fastlane_version "1.26.0" | |
lane :beta do |options| | |
check | |
end | |
private_lane :check do |options| | |
# ensure_git_status_clean | |
increment_build_number |
This file contains 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
Process: Darkest [2788] | |
Path: /Users/USER/Library/Application Support/Steam/*/Darkest.app/Contents/MacOS/Darkest | |
Identifier: com.redhookgames.Darkest | |
Version: 1.0 (1) | |
Code Type: X86-64 (Native) | |
Parent Process: ??? [1] | |
Responsible: Darkest [2788] | |
User ID: 501 | |
Date/Time: 2015-07-19 10:03:08.962 +0200 |
This file contains 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
Process: Mac_Runner [1509] | |
Path: /Users/USER/Library/Application Support/Steam/*/nuclearthrone.app/Contents/MacOS/Mac_Runner | |
Identifier: com.vlambeer.nuclearthrone | |
Version: 1.0.3 (1.0.3) | |
Code Type: X86 (Native) | |
Parent Process: ??? [1] | |
Responsible: Mac_Runner [1509] | |
User ID: 501 | |
Date/Time: 2015-06-16 20:26:33.831 +0200 |
This file contains 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 UIImage | |
{ | |
class func calendarTabImageWithCurrentDate() -> UIImage | |
{ | |
return calendarTabImageWithDate(NSDate()) | |
} | |
class func calendarTabImageWithDate(date: NSDate) -> UIImage | |
{ | |
let dateFormatter = NSDateFormatter() |
This file contains 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
app_name "Some App" | |
for_lane "beta" do | |
app_identifier "com.someapp.someapp-ios.adhoc" | |
team_name "Some Company Ltd." | |
end |