This file contains hidden or 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
| <osm-script output="json" timeout="25"> | |
| <!-- Bridges --> | |
| <query type="way"> | |
| <has-kv k="bridge" regv="^(yes|viaduct)$"/> | |
| <has-kv k="railway" modv="not" regv="." /> | |
| <bbox-query {{bbox}}/> | |
| </query> | |
| <!-- Find roads below the above bridges --> |
This file contains hidden or 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
| public class EmailUpload | |
| { | |
| [Required] | |
| public string FromEmail { get; set; } | |
| [Required] | |
| public string RecipientEmail { get; set; } | |
| [Required] | |
| public string Subject { get; set; } |
This file contains hidden or 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
| public class MixpanelUsageTracker | |
| { | |
| #if DEBUG | |
| /// <summary> | |
| /// Test site | |
| /// </summary> | |
| public const string Token = "TOKEN"; | |
| #else | |
| /// <summary> | |
| /// Production site |
This file contains hidden or 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
| override func viewDidLoad() { | |
| super.viewDidLoad() | |
| self.view.backgroundColor = UIColor.whiteColor() | |
| let screenSize: CGRect = UIScreen.mainScreen().bounds | |
| var bgImage = UIImageView(image: UIImage(named: "login-bg")) | |
| bgImage.center = CGPointMake(self.view.bounds.size.width / 2, self.view.bounds.size.height / 2) | |
| bgImage.transform = CGAffineTransformMakeScale(screenSize.width / 414, screenSize.height / 736) |
This file contains hidden or 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
| private var didUpdateConstraints: Bool = false | |
| override func updateConstraints() { | |
| if (!didUpdateConstraints) { | |
| self.buildStatusIndicatorView.autoPinEdgesToSuperviewEdgesWithInsets(UIEdgeInsetsZero, excludingEdge: ALEdge.Trailing) | |
| self.buildStatusIndicatorView.autoSetDimension(ALDimension.Width, toSize: 10) | |
| self.buildNumberLabel.autoPinEdgesToSuperviewEdgesWithInsets(UIEdgeInsets(top: 5, left: 15, bottom: 5, right: 5), excludingEdge: ALEdge.Bottom) | |
| self.buildNumberLabel.autoSetDimension(ALDimension.Height, toSize: 23) |
This file contains hidden or 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
| public static async Task<ZuMoLoginProviderCredentials> GetCurrentUser(this ApiController controller) | |
| { | |
| ServiceUser serviceUser = controller.User as ServiceUser; | |
| if (serviceUser != null) | |
| { | |
| var identity = await serviceUser.GetIdentitiesAsync(); | |
| var credentials = identity.OfType<ZuMoLoginProviderCredentials>().FirstOrDefault(); | |
| return credentials; |
This file contains hidden or 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
| #!/usr/bin/env ruby | |
| require 'houston' | |
| certificate = 'cert.pem' | |
| passphrase = '' | |
| client = Houston::Client.production | |
| client.certificate = File.read(@certificate) | |
| client.passphrase = @passphrase |
This file contains hidden or 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
| class BackgroundImageView : UIView { | |
| private let bgImage = UIImageView(forAutoLayout: ()) | |
| private var blurView:UIVisualEffectView! | |
| private var vibrancyView:UIVisualEffectView! | |
| private var didSetupConstraints = false | |
| var containerView: UIView? = nil { | |
| willSet(container) { | |
| removeContainerViewFromSuperview() | |
This file contains hidden or 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
| // Using SwiftyJSON | |
| var path = NSBundle.mainBundle().pathForResource("satellite-v7-debug", ofType: "json") | |
| var styles = NSData(contentsOfFile: path!) | |
| var jsonStyles = JSON(data: styles!) | |
| let polygonCoordinates = [ | |
| [ | |
| 8.702266216278076, | |
| 56.04999222180692 |
This file contains hidden or 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
| import UIKit | |
| enum LogoView : UIViewConvertible { | |
| case Default() | |
| case Large() | |
| case Symbol() | |
| // MARK: UIViewConvertible | |
| var View: UIView { | |
| switch self { |