NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name
// | |
// EGOTitledTableViewCell.h | |
// EGOClasses | |
// | |
// Created by Shaun Harrison on 6/2/09. | |
// Copyright 2009 enormego. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> |
// | |
// PeopleListViewController.m | |
// Paparazzi | |
// | |
// Created by Marcio Valenzuela on 2/20/10. | |
// Copyright 2010 Personal. All rights reserved. | |
// | |
#import "PeopleListViewController.h" | |
#import "Photo.h" |
// Method: What is Nearer helper function | |
// Pre-requisite: dataset loaded in the app delegate | |
-(NSDictionary *) whatIsNearer:(CLLocation *)currentLocation { | |
whichway_ipadAppDelegate *appdelegate = (whichway_ipadAppDelegate *)[[UIApplication sharedApplication] delegate]; | |
float closest_distance; | |
int linecnt = 1; | |
NSDictionary *tmpDict = [[[NSDictionary alloc] init] autorelease]; | |
for (NSDictionary *store in appdelegate.dataset) { | |
NSString *latlong = [store objectForKey:@"LatLong"]; | |
NSArray *latlongarray = [latlong componentsSeparatedByString:@","]; |
<!DOCTYPE html> | |
<!-- Helpful things to keep in your <head/> | |
// Brian Blakely, 360i | |
// http://twitter.com/brianblakely/ | |
--> | |
<head> | |
<!-- Disable automatic DNS prefetching. | |
// LocationServices.h | |
#import <Foundation/Foundation.h> | |
#import <CoreLocation/CoreLocation.h> | |
@interface LocationServices : NSObject <CLLocationManagerDelegate> { | |
CLLocationManager *locationManager; | |
CLLocation *currentLocation; | |
// Redirect | |
header("HTTP/1.1 301 Moved Permanently"); | |
header('Location: ' . $results['url']); | |
die(); |
// | |
// PMThreadsViewController.m | |
// | |
#import "neoseekerAppDelegate.h" | |
#import "PMThreadsViewController.h" | |
#import "RootViewController.h" | |
#import "GTMOAuthAuthentication.h" | |
#import "JSON.h" |
-(NSString*)locationString:(CLLocation *)newLocation { | |
NSDateFormatter * formatter = [[[NSDateFormatter alloc] init] autorelease]; | |
[formatter setTimeStyle:NSDateFormatterMediumStyle]; | |
return [NSString stringWithFormat:@"(%@) Location %.06f %.06f %@", ([UIApplication sharedApplication].applicationState == UIApplicationStateBackground) ? @"bg" : @"fg", newLocation.coordinate.latitude, newLocation.coordinate.longitude, [formatter stringFromDate:newLocation.timestamp]]; | |
} | |
- (void)locationManager:(CLLocationManager *)manager | |
didUpdateToLocation:(CLLocation *)newLocation | |
fromLocation:(CLLocation *)oldLocation | |
{ |
(function(){ | |
var event_names = { | |
"click" : "" , | |
"tweet" : "", | |
"retweet" : "source_tweet_id", | |
"follow" : "screen_name", | |
"favorite" : "tweet_id" | |
}; | |
for(var event_name in event_names) |
NOTE I now use the conventions detailed in the SUIT framework
Used to provide structural templates.
Pattern
t-template-name