Skip to content

Instantly share code, notes, and snippets.

View wess's full-sized avatar
💭
When am I not writing code?

Wess Cope wess

💭
When am I not writing code?
View GitHub Profile
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
enum Navigation {
case Onboarding
case Conversations
var controller:UIViewController {
switch self {
case Onboarding:
return OnboardingController()
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)
- (NSString *)stringFromHexString:(NSString *)hexString {
if (([hexString length] % 2) != 0)
return nil;
NSMutableString *string = [NSMutableString string];
for (NSInteger i = 0; i < [hexString length]; i += 2) {
class Progress < ActiveRecord::Base
belongs_to :race
end
class Race < ActiveRecord::Base
has_many :progresses
end
//
// ForceTouchGestureRecognizer.swift
// Payment
//
// Created by Wesley Cope on 5/5/16.
// Copyright © 2016 Nudge, llc. All rights reserved.
//
import Foundation
import UIKit
(function($, exports){
var form = exports.storeFrontForm || {};
form.submitLead = function() { ...
}
form.setVendorLeadFormMessage = function() { ...
}
exports.storeFrontForm = form
func decorate(func) {
func wrapper(name:String) {
return "<p>\(func(name))</p>"
}
return wrapper
}
@decorate
@wess
wess / Toolbar.swift
Last active February 15, 2016 19:49
//
// Toolbar.swift
// Inquire
//
// Created by Wesley Cope on 2/15/16.
// Copyright © 2016 Wess Cope. All rights reserved.
//
import Foundation
import UIKit
*.pbxproj binary merge=union