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
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 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 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 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 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 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 System; | |
using System.IO; | |
using System.Web; | |
using System.Web.Mvc; | |
namespace WebApp | |
{ | |
public class MailgunUploadController : Controller | |
{ | |
// |
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
ls *.* -rec | %{ $f=$_; (gc $f.PSPath) | %{ $_ -replace "SEARCH", "REPLACEMENT" } | sc $f.PSPath } | |
Get-ChildItem *.* -rec | Rename-Item -NewName { $_.Name -replace 'SEARCH','REPLACEMENT' } |
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
(CustomerFields.City.IsNotNull().And(CustomerFields.Country == "Denmark")) |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Xml.Linq; | |
namespace ConsoleApplication1 | |
{ | |
public class SearchSuggestionsAPI |
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
<toplevel> | |
<CompleteSuggestion> | |
<suggestion data="mountain bikes"/> | |
</CompleteSuggestion> | |
<CompleteSuggestion> | |
<suggestion data="mountain bike parts"/> | |
</CompleteSuggestion> | |
<CompleteSuggestion> | |
<suggestion data="mountain bike sizing"/> | |
</CompleteSuggestion> |