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
// | |
// Confetti.swift | |
// WorkRestRepeat | |
// | |
// Created by Jim Rutherford on 2015-03-28. | |
// Copyright (c) 2015 Taptonics. All rights reserved. | |
// | |
import UIKit | |
import QuartzCore |
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
import UIKit | |
@IBDesignable | |
public class MyCustomView: UIView { | |
override public init(frame: CGRect) { | |
super.init(frame: frame) | |
applyStyle() | |
} | |
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
import UIKit | |
@IBDesignable | |
public class DarkHeadingLabel: UILabel { | |
override public init(frame: CGRect) { | |
super.init(frame: frame) | |
applyStyle() | |
} | |
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
// | |
// CrashlyticsDestination.swift | |
// | |
// Created by Jim Rutherford on 2015-12-10. | |
// | |
import UIKit | |
import Crashlytics | |
public class CrashlyticsDestination: BaseDestination { |
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
@protocol TLSwipeForOptionsCellDelegate <NSObject> | |
/** | |
Tells the delegate that the specified cell’s menu is now shown or hidden. | |
@param cell The cell whose menu was shown or hidden. | |
@param isShowingMenu `YES` if the menu was shown; otherwise, `NO`. | |
*/ | |
- (void)cell:(TLSwipeForOptionsCell *)cell didShowMenu:(BOOL)isShowingMenu; |
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
for (NSString *familyName in [UIFont familyNames]) { | |
for (NSString *fontName in [UIFont fontNamesForFamilyName:familyName]) { | |
NSLog(@"%@", fontName); | |
} | |
} |
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
// | |
// UIImage+ImageWithColor.h | |
// WordClock | |
// | |
// Created by James Rutherford on 2012-12-03. | |
// Copyright (c) 2012 Braxio Interactive. All rights reserved. | |
// | |
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
/** String: Identifier **/ | |
#define DEVICE_IDENTIFIER ( ( IS_IPAD ) ? DEVICE_IPAD : ( IS_IPHONE ) ? DEVICE_IPHONE , DEVICE_SIMULATOR ) | |
/** String: iPhone **/ | |
#define DEVICE_IPHONE @"iPhone" | |
/** String: iPad **/ | |
#define DEVICE_IPAD @"iPad" | |
/** String: Device Model **/ |
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
// Add this snippet below as a Run Script in Build Phases for your project | |
KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:" | |
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/" |
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/sh | |
# requires that BigQuery CLI tools are installed | |
# http://code.google.com/p/google-bigquery-tools/ | |
echo Running Query to grab most popular languages | |
bq --format=csv --quiet query 'SELECT TOP(repository_language, 10), count(*) FROM [githubarchive:github.timeline]' > tmpLanguages.csv | |
echo Removing top two lines |