Skip to content

Instantly share code, notes, and snippets.

View rodericj's full-sized avatar
🐔
chicken

Roderic Campbell rodericj

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