Skip to content

Instantly share code, notes, and snippets.

xcodebuild -sdk iphonesimulator -target Keystone -configuration ${CONFIGURATION} BUILD_DIR=${BUILD_DIR} CONFIGURATION_TEMP_DIR=${CONFIGURATION_TEMP_DIR}
xcodebuild -sdk iphoneos -target Keystone -configuration ${CONFIGURATION} BUILD_DIR=${BUILD_DIR} CONFIGURATION_TEMP_DIR=${CONFIGURATION_TEMP_DIR}
mkdir -p "${BUILD_DIR}/${CONFIGURATION}-universal"
lipo \
"${BUILD_DIR}/${CONFIGURATION}-iphoneos/libKeystone.a" \
"${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/libKeystone.a" \
-create -output "${BUILD_DIR}/${CONFIGURATION}-universal/libKeystone.a"
struct Node { struct Node *next; void *val; void (*freeFunc)(void*);}; struct Node *createNode(void* val, void (*func)(void*)) { struct Node *node = calloc(1, sizeof(struct Node)); node->val = val; node->freeFunc = func; return node; } void *fetchVal(struct Node *node) { return node ? 0 : node->val; } void setNext(struct Node *node, struct Node *next) { if (node) node->next = next; } void freeList(struct Node *node) { if (!node) return; if (node->freeFunc) node->freeFunc(node->val);free(node);}
jweinberg-air:testflight-plugin jweinberg$ mvn release:prepare release:perform -Dusername=jweinberg -Dpassword=<MYPASSWORD>
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building testflight 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-release-plugin:2.0-beta-9:prepare (default-cli) @ testflight ---
[INFO] Release preparation already completed. You can now continue with release:perform, or start again using the -Dresume=false flag
[INFO]
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] BUILD FAILURE
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [INFO] Total time: 37.236s
[INFO] [INFO] Finished at: Fri Aug 26 18:45:11 CDT 2011
[INFO] [INFO] Final Memory: 23M/81M
[INFO] [INFO] ------------------------------------------------------------------------
[INFO] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-deploy-plugin:2.5:deploy (default-deploy) on project testflight: Failed to deploy artifacts: Could not transfer artifact testflight:testflight:hpi:1.0 from/to maven.jenkins-ci.org (http://maven.jenkins-ci.org:8081/content/repositories/releases): Failed to transfer file: http://maven.jenkins-ci.org:8081/content/repositories/releases/testflight/testflight/1.0/testflight-1.0.hpi. Return code is: 401 -> [Help 1]
[INFO] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-deploy-plug
#import <objc/runtime.h>
@interface Foo : NSObject
int ivar;
- (void)doThings;
@end
@implementation Foo
- (id)initWithThings:(int)thing;
{
/*
* Matrix.cpp
* Deadbeef
*
* Created by Joshua Weinberg on 4/20/10.
* Copyright 2010 __MyCompanyName__. All rights reserved.
*
*/
#include "Matrix.h"
class ClassA
{
public:
template <typename T>
int test(int a, int b)
{
return a + b;
}
};
Process: Console [313]
Path: /Applications/Utilities/Console.app/Contents/MacOS/Console
Identifier: com.apple.Console
Version: 10.7 (377)
Build Info: ConsoleX-377000000000000~15
Code Type: X86-64 (Native)
Parent Process: launchd [219]
Date/Time: 2011-10-31 16:03:09.887 -0500
OS Version: Mac OS X 10.7.2 (11C74)
@implementation JWNavigationController
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated;
{
if (viewController.navigationItem.leftBarButtonItem == nil)
{
JKBackBarButtonItem *backItem = [[JWBackBarButtonItem alloc] initWithTitle:self.topViewController.navigationItem.title ?: @"Back"
target:self
action:@selector(doPop:)];
viewController.navigationItem.leftBarButtonItem = backItem;
- (void)createGraph
{
OSStatus err;
AUGraphStop(mGraph);
AUGraphClose(mGraph);
AUGraphUninitialize(mGraph);
//Create the graph
err = NewAUGraph(&mGraph);