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
post_install do |installer| | |
installer.pods_project.targets.each do |target| | |
target.build_configurations.each do |configuration| | |
configuration.build_settings['SWIFT_VERSION'] = "2.3" | |
end | |
end | |
end |
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
enum Navigation { | |
case Onboarding | |
case Conversations | |
var controller:UIViewController { | |
switch self { | |
case Onboarding: | |
return OnboardingController() | |
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 func stringFromHexString(string:String) -> String? { | |
guard (string.length % 2) != 0 else { return nil } | |
var hex = string | |
var result = "" | |
while(hex.length > 0) { | |
let advance = hex.startIndex.advancedBy(2) | |
let substring = hex.substringToIndex(advance) | |
hex = hex.substringFromIndex(advance) |
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
- (NSString *)stringFromHexString:(NSString *)hexString { | |
if (([hexString length] % 2) != 0) | |
return nil; | |
NSMutableString *string = [NSMutableString string]; | |
for (NSInteger i = 0; i < [hexString length]; i += 2) { | |
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 Progress < ActiveRecord::Base | |
belongs_to :race | |
end | |
class Race < ActiveRecord::Base | |
has_many :progresses | |
end |
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
// | |
// ForceTouchGestureRecognizer.swift | |
// Payment | |
// | |
// Created by Wesley Cope on 5/5/16. | |
// Copyright © 2016 Nudge, llc. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
(function($, exports){ | |
var form = exports.storeFrontForm || {}; | |
form.submitLead = function() { ... | |
} | |
form.setVendorLeadFormMessage = function() { ... | |
} | |
exports.storeFrontForm = form |
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
func decorate(func) { | |
func wrapper(name:String) { | |
return "<p>\(func(name))</p>" | |
} | |
return wrapper | |
} | |
@decorate |
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
// | |
// Toolbar.swift | |
// Inquire | |
// | |
// Created by Wesley Cope on 2/15/16. | |
// Copyright © 2016 Wess Cope. All rights reserved. | |
// | |
import Foundation | |
import UIKit |
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
*.pbxproj binary merge=union |