Skip to content

Instantly share code, notes, and snippets.

@orazz
orazz / (MapBox) Calculate Directions
Last active May 17, 2016 11:59
MapboxDirections
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.***")
// CAPSPageMenu.swift
//
// Niklas Fahl
//
// Copyright (c) 2014 The Board of Trustees of The University of Alabama All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
//
// Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
//
//
// ScaledVisibleCellsCollectionView.swift
//
// Created by Atakishiyev Orazdurdy on 9/27/16.
// Copyright © 2016 Veriloft. All rights reserved.
//
import UIKit
public enum SC_ScaledPattern {
# 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