Skip to content

Instantly share code, notes, and snippets.

View rodericj's full-sized avatar
🐔
chicken

Roderic Campbell rodericj

🐔
chicken
View GitHub Profile
- (void)viewWillAppear:(BOOL)animated {
NSLog(@"viewWillAppear in home table view controller");
[self updateMiniProfile:[NSDictionary dictionaryWithContentsOfFile:@"Profile.plist"]];
[super viewWillAppear:animated];
}
class Item(models.Model):
TYPE_CHOICES = (
#('PR', 'Permanent'),
#('SP', 'Special'),
#('TM', 'Temporary'),
('RR', 'Rare'),
('TP', 'Trap'),
('DF', 'Defense'),
)
function getEmail(){
date
if [ ! -f /tmp/"$1" ]
then
echo "fetching"
python ~/dev/fetch.py $1 >/tmp/$1
fi
echo "picking map"
PYTHONPATH=lib /opt/itinerator/pyre/bin/python $HOME/trunk/src/bin/pickmap.py etc/datamap /tmp/$1 >/tmp/pickmap.output.$1
echo "bin/disp /tmp/$1"
function getEmail(){
date
if [ ! -f /tmp/"$1" ]
then
echo "fetching"
python ~/dev/fetch.py $1 >/tmp/$1
fi
echo "picking map"
PYTHONPATH=lib /opt/itinerator/pyre/bin/python $HOME/trunk/src/bin/pickmap.py etc/datamap /tmp/$1 >/tmp/pickmap.output.$1
echo "bin/disp /tmp/$1"
#import "CSImageAnnotationView.h"
#import "CSMapAnnotation.h"
#define kHeight 100
#define kWidth 100
#define kBorder 2
@implementation CSImageAnnotationView
#import
// types of annotations for which we will provide annotation views.
typedef enum {
CSMapAnnotationTypeStart = 0,
CSMapAnnotationTypeEnd = 1,
CSMapAnnotationTypeImage = 2
} CSMapAnnotationType;
def increment(self, i):
if i == ~1/2:
return 0
if i % 2 == 0:
return i | 1
else:
return self.increment(i>>1)<<1
FAIL
test_CARL_v7_ah_91_unknown (TestDataMapTests.test_CARL_v7_ah_91_unknown) ...
'key' 'Unit Test Value' 'Current Value'
u'AirSegment' "[{'_sequence': '0', 'arri" "[{u'arrival_date': u'2008"
u'departure_date' '2008-04-05' '05APR'
#import "BTHomeInternalViewController.h"
#import "TrapsAppDelegate.h"
#import "BTNetwork.h"
#import "FBConnect/FBConnect.h"
#import "BTUserProfile.h"
#import "BTConstants.h"
//From: from http://iphonedevelopertips.com/cocoa/json-framework-for-iphone-part-2.html
from django.shortcuts import HttpResponse, HttpResponseRedirect, render_to_response, get_object_or_404
from django.contrib.auth import authenticate, login, logout
from django.contrib.auth.decorators import login_required
import urllib
import operator
from datetime import datetime
from django.utils import simplejson