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
# Update and build | |
carthage update --platform mac |
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
# Run using framework built with CocoaPods | |
swift -F Rome Example.swift | |
# Run using framework built with Carthage | |
swift -F Carthage/Build/Mac Example.swift |
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
MUTEXT = CREATE_MUTEX() | |
LOCK(MUTEX) // Main queue | |
Alamofire.request("http://httpbin.org/get") | |
.responseJSON { response in | |
print(response) // Result of response serialization | |
UNLOCK(MUTEX) // Main queue! | |
} | |
WAIT(MUTEX) // Main queue |
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
import Alamofire | |
var keepAlive = true | |
Alamofire.request("http://httpbin.org/get") | |
.responseJSON { response in | |
print(response) // Result of response serialization | |
keepAlive = false | |
} | |
let runLoop = NSRunLoop.currentRunLoop() |
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
# In Podfile | |
pod "SwiftScriptRunner", "~> 1.0.1" | |
# In Cartfile | |
github "mgrebenets/SwiftScriptRunner" ~> 1.0.1 |
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
import Alamofire | |
import SwiftScriptRunner | |
var runner = SwiftScriptRunner() | |
runner.lock() // Lock | |
Alamofire.request("http://httpbin.org/get") | |
.responseJSON { response in | |
print(response) // Result of response serialization | |
runner.unlock() // Unlock |
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
master|development|((bugfix/|hotfix/|feature/)\w{2,}-\d+(-[\da-z]*)*) |
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
wget http://www.atlassian.com/software/bamboo/downloads/binary/atlassian-bamboo-5.7.2.tar.gz |
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
su -u bamboo | |
mkdir -p /Users/bamboo/bamboo-home |
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
bamboo.home=/Users/bamboo/bamboo-home |