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 in "root" folder | |
chown -R orazz:www-data storage .env | |
find storage -type f -exec chmod 664 {} \; | |
find storage -type d -exec chmod 775 {} \; | |
chgrp -R www-data storage .env | |
chmod -R ug+rwx storage .env |
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
// | |
// ScaledVisibleCellsCollectionView.swift | |
// | |
// Created by Atakishiyev Orazdurdy on 9/27/16. | |
// Copyright © 2016 Veriloft. All rights reserved. | |
// | |
import UIKit | |
public enum SC_ScaledPattern { |
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
func calculateDirections(currentLocation:CLLocationCoordinate2D, distination: CLLocationCoordinate2D) { | |
self.calculatedTourPoints = [] | |
self.calculatedTour = [] | |
let request = MBDirectionsRequest(sourceCoordinate: currentLocation, destinationCoordinate: distination) | |
request.version = .Four | |
request.requestsAlternateRoutes = true | |
request.transportType = .Automobile | |
directions = MBDirections(request: request, accessToken: "pk.***") |