One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| package main | |
| import ( | |
| "fmt" | |
| "gopkg.in/mgo.v2" | |
| "gopkg.in/mgo.v2/bson" | |
| ) | |
| func main() { | |
| session, err := mgo.Dial("localhost") | |
| if err != nil { |
type below:
brew update
brew install redis
To have launchd start redis now and restart at login:
brew services start redis
| import UIKit | |
| public extension UITableView { | |
| public func beginRefreshing() { | |
| // Make sure that a refresh control to be shown was actually set on the view | |
| // controller and the it is not already animating. Otherwise there's nothing | |
| // to refresh. | |
| guard let refreshControl = refreshControl, !refreshControl.isRefreshing else { | |
| return |
Author: Chris Lattner
| import UIKit | |
| import AuthenticationServices | |
| class ViewController: UIViewController { | |
| private var authSession: ASWebAuthenticationSession? | |
| private let clientId: String = "11111" | |
| private let urlScheme: String = "youUrlScheme" | |
| private let fallbackUrl: String = "yourFallbackUrl.com" |