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
/* | |
You can use this to call deprecated methods without warnings (supporting old sdk's for example) | |
or, you can use it in place of performSelector: where you need non-object params, or multiple | |
params. | |
ie: ... | |
int result = 0; | |
int index = 12; | |
NSArray *array = myArray; |
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 | |
BUILD_VER=$(/usr/bin/defaults read ${CODESIGNING_FOLDER_PATH}/Info CFBundleVersion) | |
BUILD_APPNAME=$(/usr/bin/defaults read ${CODESIGNING_FOLDER_PATH}/Info CFBundleDisplayName) | |
if [ "$CONFIGURATION" == "Debug" ]; then | |
echo leaving Settings.bundle in place. | |
/usr/bin/defaults write ${CODESIGNING_FOLDER_PATH}/Info CFBundleDisplayName "WM ß - $BUILD_VER" | |
else | |
rm -rf ${CODESIGNING_FOLDER_PATH}/Settings.bundle |
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
// | |
// NSObject+RFExtensions.h | |
// | |
// Created by brandon on 10/5/12. | |
// Copyright (c) 2012 redf.net. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
typedef void (^NSObjectPerformBlock)(id userObject); |
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
- (void)locationManager:(CLLocationManager *)manager monitoringDidFailForRegion:(CLRegion *)region withError:(NSError *)error | |
{ | |
[delegates callSelector:_cmd argumentAddresses:(__bridge void *)(self), region, error]; | |
//if (delegate && [delegate respondsToSelector:_cmd]) | |
// [delegate locationManager:self monitoringDidFailForRegion:region withError:error]; | |
} | |
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
# | |
# Uncrustify Configuration File | |
# File Created With UncrustifyX 0.2 (140) | |
# | |
# Alignment | |
# --------- | |
## Alignment |
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
- (void)makeObjectsPerformSelector:(SEL)aSelector argumentAddresses:(void *)arg1, ... | |
{ | |
#define kMaximumCallSelectorArguments 20 | |
// if there's nothing in here, GTFO. | |
if (self.count == 0) | |
return; | |
id sampleTarget = [self objectAtIndex:0]; | |
NSMethodSignature *methodSig = [[sampleTarget class] instanceMethodSignatureForSelector:aSelector]; |
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
// | |
// SDMacros.h | |
// | |
// Created by Brandon Sneed on 7/11/13. | |
// Copyright (c) 2013 SetDirection. All rights reserved. | |
// | |
// | |
// DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
// Version 2, December 2004 | |
// |
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
// | |
// THGDataMapTests.swift | |
// THGDataMapTests | |
// | |
// Created by Brandon Sneed on 3/28/15. | |
// Copyright (c) 2015 TheHolyGrail. All rights reserved. | |
// | |
import UIKit | |
import XCTest |
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
#!/usr/bin/xcrun -sdk macosx swift | |
import Foundation | |
public protocol SharedInstanceType | |
{ | |
init() | |
} | |
private struct TokenKey |
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
func testSomeStuff() { | |
// trying to come up with shit to test. | |
var d: Decimal = 1234 | |
print(d) | |
d += 2 | |
print(d) |
OlderNewer