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
{ | |
results = ( | |
{ | |
createdAt = "2012-07-09T07:13:24.593Z"; | |
details = "First Store"; | |
image = { | |
"__type" = File; | |
name = "9d2d8a0d-36fb-4abe-9908-bebd7fb39056-christmas.gif"; | |
url = "http://files.serverapp.com/bcee5dd3-46dc-40a8-abe6-37da2732e809/1store.png"; |
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)checkIfFirstRun{ | |
NSString *bundleVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:(NSString *)kCFBundleVersionKey]; | |
NSString *appFirstStartOfVersionKey = [NSString stringWithFormat:@"first_start_%@", bundleVersion]; | |
NSNumber *alreadyStartedOnVersion = [[NSUserDefaults standardUserDefaults] objectForKey:appFirstStartOfVersionKey]; | |
if(!alreadyStartedOnVersion || [alreadyStartedOnVersion boolValue] == NO) { | |
// Preload plist data | |
[self parsePlistIntoCD]; | |
[[NSUserDefaults standardUserDefaults] setObject:[NSNumber numberWithBool:YES] forKey:appFirstStartOfVersionKey]; | |
} |
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
// | |
// AppDelegate.m | |
// Honduras | |
// | |
// Created by Marcio Valenzuela on 7/8/11. | |
// Copyright Personal 2011. All rights reserved. | |
// | |
#import "cocos2d.h" |
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
// | |
// SecondViewController.m | |
// FarsimanTab | |
// | |
// Created by Marcio Valenzuela on 11/26/12. | |
// Copyright (c) 2012 Marcio Valenzuela. All rights reserved. | |
// | |
#import "SecondViewController.h" | |
#import "SDCoreDataController.h" |
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
// | |
// Puzzle2Layer.m | |
// iSanti | |
// | |
// Created by Marcio Valenzuela on 1/19/12. | |
// Copyright 2012 M2Studio. All rights reserved. | |
// | |
#import "Puzzle2Layer.h" | |
#import "SimpleQueryCallback.h" |
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
<?php | |
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */ | |
/** | |
* Converts to and from JSON format. | |
* | |
* JSON (JavaScript Object Notation) is a lightweight data-interchange | |
* format. It is easy for humans to read and write. It is easy for machines | |
* to parse and generate. It is based on a subset of the JavaScript | |
* Programming Language, Standard ECMA-262 3rd Edition - December 1999. |
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
static cpBool preSolveHG(cpArbiter *arb, cpSpace *space, CPHopper *hopper){/////////////pass it hopper reference | |
if(cpvdot(cpArbiterGetNormal(arb, 0), ccp(0,-1)) < 0){/////////////////////////////ignore bottom collision | |
cpArbiterIgnore(arb); | |
return cpFalse; | |
} | |
////////////////////////////////////////////////////////////////////////If collision from top, set to TRUE | |
hopper.isOnGround = TRUE; | |
return cpTrue; | |
} |
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
@implementation CPHopper | |
@synthesize groundShapes, jetpack, hasShield; | |
@synthesize myDebugLabel; | |
//methods for collision detec chipmunk | |
static cpBool beginHG(cpArbiter *arb, cpSpace *space, void *ignore) { | |
CP_ARBITER_GET_SHAPES(arb, hopperShape, groundShape); | |
CPHopper *hopper = (CPHopper *)hopperShape->data; | |
cpVect n = cpArbiterGetNormal(arb, 0); | |
if (n.y < 0.0f) { |
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
<? | |
include"master_inc.php"; | |
//--------------------------------------------------------------------------RECEIVE LOCAL VARIABLES FROM FORM | |
$lastname = strip_tags(substr($_POST['lastname'],0,32)); | |
$firstname = strip_tags(substr($_POST['firstname'],0,32)); | |
$phone = strip_tags(substr($_POST['phone'],0,32)); | |
$password_hint=$_REQUEST['password_hint']; | |
$noERROR=1; | |
$udidposted = $_REQUEST['udid']; |
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
// | |
// CPHopper.h | |
// PlanetHopper | |
// | |
// Created by Marcio Valenzuela on 12/29/11. | |
// Copyright (c) 2011 M2Studio. All rights reserved. | |
// | |
#import "CPSprite.h" |
NewerOlder