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
| tempStepper.rac_signalForControlEvents(.ValueChanged).toSignalProducer() | |
| |> map { aStepper in | |
| let stepper = aStepper as! UIStepper | |
| return Int(stepper.value) | |
| } | |
| |> catch { _ in SignalProducer<Int, NoError>.empty } |
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
| self.startTimeTextField.rac_signalForControlEvents(.EditingDidBegin).toSignalProducer() | |
| |> start(next: { _ in | |
| self.dismissKeyboards() | |
| }) |
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
| self.startTimeTextField.rac_text <~ pickerDateSignalProducer | |
| |> map { self.formatDate($0) } | |
| |> catch { _ in SignalProducer<String, NoError>.empty } |
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
| self.pwm.put(pwm.floatValue) |
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
| self.pwm.value = pwm.floatValue |
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
| startTimeTextFieldSignalProducer | |
| |> start(next: { _ in | |
| self.dismissKeyboards() | |
| }) |
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
| startTimeTextFieldSignalProducer.startWithNext { _ in | |
| self.dismissKeyboards() | |
| } |
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
| var serializationError: NSError? | |
| request.HTTPBody = body.rawData(options: .PrettyPrinted, error: &serializationError) | |
| if let error = serializationError { | |
| return Result.failure(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
| do { | |
| request.HTTPBody = try body.rawData(options: .PrettyPrinted) | |
| } catch let error as NSError { | |
| return Result(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
| #!/bin/bash | |
| set -e | |
| NO_USE_BINARIES="" | |
| VERBOSE_MODE="" | |
| if [[ "${no_use_binaries}" == "true" ]] ; then | |
| NO_USE_BINARIES='--no-use-binaries' | |
| fi |