Skip to content

Instantly share code, notes, and snippets.

//
// ImageLoadingOp.h
// PersonList
//
// Created by Marcio Valenzuela on 10/20/09.
// Copyright 2009 Personal. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
//
// PlaceViewController.h
// TouristNov09
//
// Created by Marcio Valenzuela on 11/11/09.
// Copyright 2009 Personal. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "Place.h" // Import the places object header
//
// PublicTimelinesViewController.h
// P3Scratch
//
// Created by Marcio Valenzuela on 11/25/09.
// Copyright 2009 Personal. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "TwitterHelper.h"
-(void)synchronousLoadTwitterData{
// Beause this is ran inside a seprate thread we have to be real careful
// that the data we play with here doesn't clobber another thread that is
// running at the exact same time. We will build a temprary array that we
// will assign the instance variable to only on the main thread.
// setup the tweet array and log it ONCE
publicTweets = [[NSMutableArray alloc]init];
// this needs to be a new operation so as not to block the main thread...
NSArray *userTimeline = [[NSArray alloc] initWithArray:[TwitterHelper fetchPublicTimeline]];
//
// P3ScratchAppDelegate.m
// P3Scratch
//
// Created by Marcio Valenzuela on 10/30/09.
// Copyright Personal 2009. All rights reserved.
//
#import "P3ScratchAppDelegate.h"
<?php
if(isset($_POST['create_xml'])){
echo "Links Data Posted";
/* All Links data from the form is now being stored in variables in string format */
$urlDoc = $_POST['urlDoc'];
$urlAdd = $_POST['urlAdd'];
//
// Created by Marcio Valenzuela on 12/4/09.
// Copyright Personal 2009. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "AppViewController.h"
@interface AppDelegate : NSObject <UIApplicationDelegate,UIImagePickerControllerDelegate> {
UIWindow *window;
//
// CPTestAppBarChartController.m
// CPTestApp-iPhone
//
#import "CPTestAppBarChartController.h"
@implementation CPTestAppBarChartController
<?php
include_once("JSON.php");
$json = new Services_JSON();
$link = mysql_pconnect("localhost", "usr", "pwd") or die("Could not connect");
mysql_select_db("dbname") or die("Could not select database");
$query = "SELECT * FROM users";
$result = mysql_query($query);
-(void)synchronousLoadFlickrData{
NSLog(@"BEGINLOADINGflickr dictionary");
PaparazziAppDelegate *appDelegate= (PaparazziAppDelegate *)[[UIApplication sharedApplication] delegate];
// GET PLIST FILE INFO
filePath = [[NSBundle mainBundle] pathForResource:@"FakeData" ofType:@"plist"];
if (filePath)
{
// CREATE FLICKR ARRAY FROM PLIST FILE PATH