WhereAmI icon indicating copy to clipboard operation
WhereAmI copied to clipboard

aligned output and updated deprecated code

Open rwmitchell opened this issue 7 years ago • 3 comments

diff -r 88c1144ae455 WhereAmI/LocationGetter.m --- a/WhereAmI/LocationGetter.m Sat Jul 21 22:39:24 2018 +0000 +++ b/WhereAmI/LocationGetter.m Sat Jul 21 14:05:23 2018 -0400 @@ -48,10 +48,10 @@ NSTimeInterval ageInSeconds = -[newLocation.timestamp timeIntervalSinceNow]; if (ageInSeconds > 60.0) return; // Ignore data more than a minute old

  • IFPrint(@"Latitude: %f", newLocation.coordinate.latitude);
  • IFPrint(@"Longitude: %f", newLocation.coordinate.longitude);
  • IFPrint(@"Accuracy (m): %f", newLocation.horizontalAccuracy);
  • IFPrint(@"Timestamp: %@", [NSDateFormatter localizedStringFromDate:newLocation.timestamp
  • IFPrint(@"Latitude : %10.6f", newLocation.coordinate.latitude);

  • IFPrint(@"Longitude : %10.6f", newLocation.coordinate.longitude);

  • IFPrint(@"Accuracy (m): %10.6f", newLocation.horizontalAccuracy);

  • IFPrint(@"Timestamp : %@", [NSDateFormatter localizedStringFromDate:newLocation.timest

    [self.manager stopUpdatingLocation]; self.exitCode = 0; @@ -59,7 +59,7 @@ }

-(BOOL)isWifiEnabled {

  • CWInterface *wifi = [CWInterface interface];
  • CWInterface *wifi = [CWWiFiClient init]; return wifi.powerOn; }

rwmitchell avatar Jul 21 '18 18:07 rwmitchell

If you want to submit this as a pull request, I'd be happy to take a look and accept it.

robmathers avatar Jul 23 '18 18:07 robmathers

Despite having an account on GitHub, I haven’t used it or know how to create pull request. For my own stuff, I just use local hg repos.

On Jul 23, 2018, at 14:59 , Rob Mathers [email protected] wrote:

If you want to submit this as a pull request, I'd be happy to take a look and accept it.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/robmathers/WhereAmI/issues/5#issuecomment-407165262, or mute the thread https://github.com/notifications/unsubscribe-auth/APNMibt6DwC6Hn4kEeInU9giZnRDBxHVks5uJh0BgaJpZM4VZtiU.

rwmitchell avatar Jul 24 '18 23:07 rwmitchell

@rwmitchell If it's "just" this one file, do it like this (which is the easiest way without any git knowledge):

  1. Open the file here in GitHubs webinterface.
  2. Click on the pencil icon

Github will then fork the repo in the background and opens an online editor in your form, containing this file. Make your changes, write an useful commit message and click "propose change". Next should be a site titled as "Comparing changes". Here you can see your patch again. Click on the big green button "Open pull request".

tuxpeople avatar Jul 06 '21 08:07 tuxpeople