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
| // | |
| // Warnings.xcconfig | |
| // | |
| // The list of warnings we (don’t) use, and the reasons why. | |
| // | |
| // :MARK: Warnings in use: | |
| // :MARK: -everything | |
| // We want the best possible diagnostics, so we simply enable everything that exists, and then opt–out of what doesn’t make sense for us. | |
| // | |
| // :MARK: - Warnings not to be promoted: |
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
| ## | |
| # "I did [mean that]" | |
| # Re-run the suggested git command | |
| # Intended to be run as 'idid !!' | |
| ## | |
| function idid() { | |
| declare last='' | |
| while [[ $# > 0 ]]; do | |
| last="$last $1" |
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
| #!/usr/bin/env ruby -w | |
| class String | |
| def starts_with?(prefix) | |
| prefix.respond_to?(:to_str) && self[0, prefix.length] == prefix | |
| end | |
| end | |
| HEADER_REGEX = /^#import\s+["<](.*)[">]/ |
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
| // | |
| // NSObject+setValuesForKeysWithJSONDictionary.h | |
| // | |
| // Created by Tom Harrington on 12/29/11. | |
| // Tweaked by Mark Dalrymple | |
| // | |
| // Copyright (c) 2011 Atomic Bird, LLC. All rights reserved. | |
| // | |
| #import <Foundation/Foundation.h> |
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
| // Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
| // Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
| // Licensed under MIT (http://opensource.org/licenses/MIT) | |
| // | |
| // You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
| // PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
| #import <objc/runtime.h> | |
| #import <objc/message.h> |
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
| var request = require('request'), | |
| zlib = require('zlib'); | |
| var headers = { | |
| "accept-charset" : "ISO-8859-1,utf-8;q=0.7,*;q=0.3", | |
| "accept-language" : "en-US,en;q=0.8", | |
| "accept" : "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", | |
| "user-agent" : "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_6_8) AppleWebKit/537.13+ (KHTML, like Gecko) Version/5.1.7 Safari/534.57.2", | |
| "accept-encoding" : "gzip,deflate", | |
| }; |
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
| source ~/.bash_profile | |
| hash oclint &> /dev/null | |
| if [ $? -eq 1 ]; then | |
| echo >&2 "oclint not found, analyzing stopped" | |
| exit 1 | |
| fi | |
| cd ${TARGET_TEMP_DIR} |
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
| source ~/.bash_profile | |
| hash oclint &> /dev/null | |
| if [ $? -eq 1 ]; then | |
| echo >&2 "oclint not found, analyzing stopped" | |
| exit 1 | |
| fi |
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
| - (NSURL *)URLWithString:(NSString *)string andQueryValuesForKeys:(NSString *)value, ... { | |
| if (!value) { | |
| return [NSURL URLWithString:string]; | |
| } | |
| NSMutableString *queryString = [NSMutableString string]; | |
| NSString *argument = nil; | |
| NSUInteger argumentCount = 0; | |
| va_list argumentList; |
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
| # | |
| # Uncrustify Configuration File | |
| # File Created With UncrustifyX 0.2 (140) | |
| # | |
| # Alignment | |
| # --------- | |
| ## Alignment |