This file contains hidden or 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)viewWillAppear:(BOOL)animated { | |
| NSLog(@"viewWillAppear in home table view controller"); | |
| [self updateMiniProfile:[NSDictionary dictionaryWithContentsOfFile:@"Profile.plist"]]; | |
| [super viewWillAppear:animated]; | |
| } |
This file contains hidden or 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
| class Item(models.Model): | |
| TYPE_CHOICES = ( | |
| #('PR', 'Permanent'), | |
| #('SP', 'Special'), | |
| #('TM', 'Temporary'), | |
| ('RR', 'Rare'), | |
| ('TP', 'Trap'), | |
| ('DF', 'Defense'), | |
| ) |
This file contains hidden or 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
| 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" |
This file contains hidden or 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
| 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" |
This file contains hidden or 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
| #import "CSImageAnnotationView.h" | |
| #import "CSMapAnnotation.h" | |
| #define kHeight 100 | |
| #define kWidth 100 | |
| #define kBorder 2 | |
| @implementation CSImageAnnotationView |
This file contains hidden or 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
| #import | |
| // types of annotations for which we will provide annotation views. | |
| typedef enum { | |
| CSMapAnnotationTypeStart = 0, | |
| CSMapAnnotationTypeEnd = 1, | |
| CSMapAnnotationTypeImage = 2 | |
| } CSMapAnnotationType; |
This file contains hidden or 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
| def increment(self, i): | |
| if i == ~1/2: | |
| return 0 | |
| if i % 2 == 0: | |
| return i | 1 | |
| else: | |
| return self.increment(i>>1)<<1 |
This file contains hidden or 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
| 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' |
This file contains hidden or 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
| #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 |
This file contains hidden or 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
| 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 |
OlderNewer