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
#!/bin/bash | |
# https://gist.github.com/949831 | |
# http://blog.carbonfive.com/2011/05/04/automated-ad-hoc-builds-using-xcode-4/ | |
# command line OTA distribution references and examples | |
# http://nachbaur.com/blog/how-to-automate-your-iphone-app-builds-with-hudson | |
# http://nachbaur.com/blog/building-ios-apps-for-over-the-air-adhoc-distribution | |
# http://blog.octo.com/en/automating-over-the-air-deployment-for-iphone/ | |
# http://www.neat.io/posts/2010/10/27/automated-ota-ios-app-distribution.html |
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
# xcode-build-bump.sh | |
# @desc Auto-increment the build number every time the project is run. | |
# @usage | |
# 1. Select: your Target in Xcode | |
# 2. Select: Build Phases Tab | |
# 3. Select: Add Build Phase -> Add Run Script | |
# 4. Paste code below in to new "Run Script" section | |
# 5. Drag the "Run Script" below "Link Binaries With Libraries" | |
# 6. Insure that your starting build number is set to a whole integer and not a float (e.g. 1, not 1.0) |
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 layoutSubviews() { | |
super.layoutSubviews(); | |
var offset = CGFloat(20); | |
var labelWidth = CGFloat(120); | |
var space = CGFloat(5); | |
var labelHeight = CGFloat(21); | |
var cellHeight = CGFloat(44); |
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
// | |
// OrderedDictionary.swift | |
// DMS | |
// | |
// Created by Freddy on 12/12/14. | |
// Copyright (c) 2014 DMSCompany. All rights reserved. | |
// | |
import Foundation |
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
// | |
// KeychainService.swift | |
// DMS | |
// | |
// Created by Freddy on 10/30/14. | |
// Copyright (c) 2014 DMSCompany. All rights reserved. | |
// | |
import UIKit | |
import Security |
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
// | |
// UDWrapper.swift | |
// DMS | |
// | |
// Created by Freddy on 12/18/14. | |
// Copyright (c) 2014 DMSCompany. All rights reserved. | |
// | |
import Foundation |
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
// | |
// DDLogWrapper.h | |
// DMS | |
// | |
// Created by Freddy on 12/18/14. | |
// Copyright (c) 2014 DMSCompany. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> |
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
{ | |
"name" : "package-name", | |
"preferGlobal": "true", | |
"version" : "0.0.1", | |
"author" : "name <email>", | |
"description" : "package-description", | |
"contributors": [ | |
{ | |
"name" : "contributer-name", |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
+(UIColor *)convertToUIColorFromHex:(NSString *) hex{ | |
NSScanner *scanner = [NSScanner scannerWithString:hex]; | |
unsigned int baseColor; | |
[scanner scanHexInt:&baseColor]; | |
CGFloat red = ((baseColor & 0xFF0000) >> 16) / 255.0f; | |
CGFloat green = (baseColor & 0x00FF00) >> 8) / 255.0f; | |
CGFloat blue = (baseColor & 0x0000FF)) / 255.0f; | |
UIColor *color = [UIColor colorWithRed:red green:green blue:blue alpha:1.0f]; |