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
-(IBAction)tap:(id)sender | |
{ | |
UIBarButtonItem *refresh = self.navigationItem.rightBarButtonItem; | |
CALayer *layer = ((UIButton*)refresh.customView).imageView.layer; | |
CABasicAnimation *rotate = [CABasicAnimation animationWithKeyPath:@"transform.rotation.z"]; | |
rotate.timingFunction = [CAMediaTimingFunction functionWithName: kCAMediaTimingFunctionLinear]; | |
rotate.fromValue = @(0); | |
rotate.toValue = @(2 * M_PI); |
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
#!/usr/bin/env js | |
function isnet93_to_wgs84(xx, yy) { | |
this.x = xx; | |
this.y = yy; | |
this.a = 6378137.0; | |
this.f = 1/298.257222101; | |
this.lat1 = 64.25; |