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
2012-11-10T15:26:15+00:00 heroku[router]: Error H10 (App crashed) -> POST iamleeg-vulcan.herokuapp.com/make dyno= queue= wait= service= status=503 bytes= |
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
#!/bin/bash | |
export DEVELOPER_DIR="`xcode-select -print-path`" | |
export DEVELOPER_TOOLS_DIR="${DEVELOPER_DIR}/Tools" | |
export DEVELOPER_LIBRARY_DIR="${DEVELOPER_DIR}/Platforms/iPhoneSimulator.platform/Developer/Library" | |
export ACTION="build" | |
export TEST_AFTER_BUILD="yes" | |
export PLATFORM_DEVELOPER_TOOLS_DIR="${DEVELOPER_DIR}/Platforms/iPhoneSimulator.platform/Developer/Tools" | |
export SDKROOT="${DEVELOPER_DIR}/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.0.sdk/" | |
export TEST_HOST="${PWD}/build/Debug-iphonesimulator/MyProduct.app/MyProduct" |
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
#!/bin/bash | |
git diff --cached -SNSLog --quiet | |
if [ $? -eq 1 ]; then | |
echo "NSLog call detected, indicating debug code is staged. Please unstage your debug code." | |
exit 1 | |
fi | |
exit 0 |
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
#import <Foundation/Foundation.h> | |
#include <stdlib.h> | |
#include <objc/runtime.h> | |
@interface A : NSObject | |
@property (assign) int meaning; | |
@end | |
@implementation A |
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
// | |
// main.m | |
// DynamicCategories | |
// | |
// Created by Graham Lee on 22/04/2013. | |
// Copyright (c) 2013 Graham Lee. | |
//Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
// | |
//The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. |
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
@interface GLObject : NSObject | |
{ | |
int _a; | |
} | |
- (void)logA; | |
@end | |
struct GLObject_cpp { |
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
#import <Foundation/Foundation.h> | |
#import <objc/runtime.h> | |
@interface A : NSObject | |
- (void)createPrivateSubclass; | |
@end | |
int main(int argc, char *argv[]) | |
{ | |
@autoreleasepool |
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
#import <Foundation/Foundation.h> | |
typedef NS_ENUM(int, GJLRangeDirection) { | |
GJLRangeDirectionPositive, | |
GJLRangeDirectionNegative, | |
}; | |
@interface GJLRange : NSEnumerator | |
+ (instancetype)rangeWithStart: (NSNumber *)start end: (NSNumber *)end step: (NSNumber *)step; |
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
#import <Foundation/Foundation.h> | |
#import <dispatch/dispatch.h> | |
#import <objc/runtime.h> | |
void printMethodList(Class cls, const char *prefix) | |
{ | |
const char *className = class_getName(cls); | |
unsigned int countOfMethods; | |
Method *methodList = class_copyMethodList(cls, &countOfMethods); | |
for(unsigned int i = 0; i < countOfMethods; i++) |
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
#import <UIKit/UIKit.h> | |
UIColor * operator"" _c(unsigned long long color) | |
{ | |
unsigned long long redComponent = (color & 0xff0000 >> 16); | |
unsigned long long greenComponent = (color & 0x00ff00) >> 8; | |
unsigned long long blueComponent = color & 0xff; | |
float red = redComponent / 255.0; | |
float green = greenComponent / 255.0; | |
float blue = blueComponent / 255.0; |