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
package main | |
import ( | |
"database/sql" | |
"gopkg.in/gorp.v1" | |
"log" | |
"net/url" | |
//"flag" | |
"strconv" | |
"time" |
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
// | |
// Reachability.swift | |
// | |
// Created by Vasiliy Savchuk on 06.02.17. | |
// Copyright © 2017 All rights reserved. | |
// | |
// Usage this snippet: | |
// guard Reachability.sharedInstance.isReachable else { | |
// show alert | |
// return |
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
// | |
// ExtensionView.swift | |
// | |
// Created by Vasiliy Savchuk on 2/6/17. | |
// Copyright © 2017 All rights reserved. | |
// | |
// Usage this snippet: | |
// yourImageView.image = view.screenshot | |
import UIKit |
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
// | |
// ViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 19.01.17. | |
// Copyright © 2017 All rights reserved. | |
// | |
import UIKit | |
import AVFoundation | |
import AVKit |
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
// | |
// BackendService.swift | |
// | |
// Created by Vasiliy Savchuk on 27.01.17. | |
// Copyright © 2017 All rights reserved. | |
// | |
enum API { | |
static var token: String? | |
static var tokenType: 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
// | |
// UserProfileViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 01.02.17. | |
// Copyright © 2017 All rights reserved. | |
// | |
class UserProfileViewController: UIViewController { | |
@IBOutlet weak var tableView: UITableView! |
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
// | |
// Alert.swift | |
// | |
// Created by Vasiliy Savchuk on 16.12.16. | |
// Copyright © All rights reserved. | |
// | |
// Usage this snippet: | |
// to call - displayAlert(title: "Oops!", message: "Error", viewController: self) | |
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
// | |
// PopUpViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 22.11.16. | |
// Copyright © 2016 All rights reserved. | |
// | |
// Usage this snippet: | |
// @IBAction func yourButtonDidPress(_ sender: Any) { | |
// let popOverVC = UIStoryboard(name: Constants.Storyboard.Map, bundle: nil).instantiateViewController(withIdentifier: Constants.StoryboardID.PopUpViewController) as! PopUpViewController | |
// popOverVC.pointModel = self.curentPoint |
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
// | |
// LoginViewModel.swift | |
// | |
// Created by Vasiliy Savchuk on 11/9/16. | |
// Copyright © 2016 All rights reserved. | |
// | |
// Usage this snippet: | |
// let viewModel: LoginViewModel = LoginViewModel() | |
// | |
// @IBAction func signInButtonDidPress(_ sender: Any) { |
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
// | |
// GoogleMapViewController.swift | |
// | |
// Created by Vasiliy Savchuk on 11/21/16. | |
// Copyright © 2016 All rights reserved. | |
// | |
import UIKit | |
import GoogleMaps |
OlderNewer