I hereby claim:
- I am bryanjbryce on github.
- I am bryanbryce (https://keybase.io/bryanbryce) on keybase.
- I have a public key ASBAe_kEOjWTbAAAzJg_WlZOSqjv9tK8AsGfrE4un1rY2go
To claim this, I am signing this object:
| #!/bin/bash | |
| # Script to copy production database to staging environment | |
| set -e # Exit on any error | |
| if [ -z "$PROD_DATABASE_URL" ] || [ -z "$STAGING_DATABASE_URL" ]; then | |
| echo "Error: Database URLs not found in environment" | |
| echo "Make sure you have set up .envrc with PROD_DATABASE_URL and STAGING_DATABASE_URL" | |
| exit 1 | |
| fi |
| import Foundation | |
| import Actor | |
| import MessageRouter | |
| public final class Core<State, Event, Command> { | |
| public typealias CommandProcessor = (Core<State, Event, Command>, Command) -> Void | |
| public typealias EventHandler = (State, Event) -> CoreUpdate<State, Command> | |
| public let stateChanged = MessageRouter<State>() |
I hereby claim:
To claim this, I am signing this object:
| public extension CustomDebugStringConvertible { | |
| var debugDescription: String { | |
| return debugDescription() | |
| } | |
| func debugDescription(indentationLevel: Int = 0) -> String { | |
| let indentString = (0..<indentationLevel).reduce("") { tabs, _ in tabs + "\t" } | |
| var s = "\(self.dynamicType)" |
| // This code accompanies a blog post: http://chris.eidhof.nl/posts/json-parsing-in-swift.html | |
| // | |
| // As of Beta5, the >>= operator is already defined, so I changed it to >>>= | |
| import Foundation | |
| let parsedJSON : [String:AnyObject] = [ | |
| "stat": "ok", | |
| "blogs": [ |