I hereby claim:
- I am pmark on github.
- I am pmark (https://keybase.io/pmark) on keybase.
- I have a public key whose fingerprint is 7CC0 475C 36C8 1053 9F08 8117 1BE3 1439 87A7 B197
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| // manderson@flightstats.com 0600646f49c0a8a05f584b5bbdff435a3ebe8900 | |
| // client-alerts@flightstats.com 08cd3e9fff85b776622024387486160df467f2cf | |
| require('./pii-store').tokenizeString('manderson@flightstats.com', function(err, token){ console.log(err, token); }); |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| body { | |
| margin: 0; | |
| background: #222; | |
| min-width: 960px; | |
| cursor:crosshair; | |
| } |
| <!DOCTYPE html> | |
| <meta charset="utf-8"> | |
| <style> | |
| body { | |
| margin: 0; | |
| background: #222; | |
| min-width: 960px; | |
| cursor:crosshair; | |
| } |
| @interface MainViewController () | |
| @property (nonatomic, strong) SM3DARCalloutView *calloutView; | |
| @end | |
| // | |
| // This method should appear in your 3DAR delegate class. | |
| // | |
| - (SM3DARCalloutView*) sm3dar:(SM3DARController*)sm3dar calloutViewForPoint:(SM3DARPoint*)point |
| #define IS_WIDESCREEN ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON ) | |
| // | |
| // Call this after starting the camera, which must happen after at or after viewDidAppear. | |
| // | |
| - (void)make3darFullscreen | |
| { | |
| [self.mapView.sm3dar setFrame:[UIScreen mainScreen].bounds]; | |
| [self.mapView.sm3dar.glView setFrame:[UIScreen mainScreen].bounds]; |
| BOOL useMetricUnits = NO; | |
| - (NSString *)formattedDistanceFromCurrentLocationWithUnits:(SM3DARPointOfInterest *)poi | |
| { | |
| NSString *formatted; | |
| CGFloat distance; | |
| if (useMetricUnits) | |
| { | |
| // Metric. |
| - (void)postMessageOnFacebook:(NSString*)message { | |
| message = [NSString stringWithFormat:@"I just posted to %@ from %@.\n\n%@", | |
| [AsyncEventHandler getCurrentCultName], | |
| [AsyncEventHandler getCurrentMacro], | |
| message]; | |
| [APP_DELEGATE.facebook requestWithGraphPath:@"me/feed" | |
| andParams:[NSMutableDictionary dictionaryWithObjectsAndKeys: | |
| message, @"message", |