Installing Supervisor on OS X is simple:
sudo pip install supervisor
This assumes you have pip. If you don't:
jscore: jscore.m | |
gcc -Wall -g -lobjc -o jscore jscore.m -framework JavaScriptCore -framework Foundation | |
clean: | |
rm -rf jscore *.o | |
#!/usr/bin/env ruby | |
# This script currently only works if you have your derived data in the default location. | |
# Get the workspace name to search for, or exit with code 1 if no value in envariable | |
xcodeWorkspacePath = ENV["XcodeWorkspacePath"] || exit(1) | |
projectName = xcodeWorkspacePath[%r{/(\w+)\.xcodeproj}, 1] | |
#Get the folders in derived data that could match the workspace | |
derived_data = File.expand_path("~/Library/Developer/Xcode/DerivedData") | |
# Glob out the files matching our project |
i386 : iPhone Simulator | |
x86_64 : iPhone Simulator | |
arm64 : iPhone Simulator | |
iPhone1,1 : iPhone | |
iPhone1,2 : iPhone 3G | |
iPhone2,1 : iPhone 3GS | |
iPhone3,1 : iPhone 4 | |
iPhone3,2 : iPhone 4 GSM Rev A | |
iPhone3,3 : iPhone 4 CDMA | |
iPhone4,1 : iPhone 4S |
#import <Foundation/Foundation.h> | |
int main(int argc, const char * argv[]) | |
{ | |
NSRunLoop * runLoop; | |
CLIMain * main; // replace with desired class | |
@autoreleasepool | |
{ | |
// create run loop |
#include <assert.h> | |
#include <roxlu/core/Utils.h> | |
#include <roxlu/core/Log.h> | |
#include "YUV420PGrabber.h" | |
YUV420PGrabber::YUV420PGrabber() | |
:y_prog(0) | |
,y_vert(0) | |
,y_frag(0) | |
,uv_prog(0) |
package main | |
import ( | |
"fmt" | |
"log" | |
"net" | |
"net/mail" | |
"net/smtp" | |
"crypto/tls" | |
) |
#import <Foundation/Foundation.h> | |
#include <objc/objc-api.h> | |
#include <objc/runtime.h> | |
#include <malloc/malloc.h> | |
#include <mach/mach.h> | |
@interface TEST : NSObject | |
@end | |
@implementation TEST |
// USAGE: | |
// Call RestorationDefender.printViewControllerClassesThatAreProbablyNotRestorable() to print a list of view controllers that will probably not return from state restoration. | |
// Call RestorationDefender.crashWhenViewControllersDoNotImplementStateRestoration() to crash your app when a view controller appears without setting restorationIdentifier and restorationClass. | |
// Call RestorationDefender.shoutWhenViewControllersDoNotImplementStateRestoration() to print a big message when a view controller appears without setting restorationIdentifier and restorationClass. | |
import Foundation | |
private func objc_getClassList() -> [AnyClass] { | |
let expectedClassCount = objc_getClassList(nil, 0) | |
var allClasses = UnsafeMutablePointer<AnyClass?>.alloc(Int(expectedClassCount)) |