This file contains 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
lat = ARGV[0].to_f | |
lon = ARGV[1].to_f | |
lat = (lat * 1000).to_i / 1000.0 | |
lon = (lon * 1000).to_i / 1000.0 | |
puts <<STR | |
<?xml version="1.0"?> | |
<gpx version="1.1"> | |
STR | |
(0..200).each do |i| | |
latd = rand(-999..999).to_f |
This file contains 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
Updating spec repo `master` | |
$ /usr/bin/git pull --ff-only | |
error: Your local changes to the following files would be overwritten by merge: | |
CocoaPods-version.yml | |
Specs/AGIPC/0.0.2/AGIPC.podspec.json | |
Specs/AlamofireImage/2.3.1/AlamofireImage.podspec.json | |
Specs/AudioPlayer-Swift/1.0/AudioPlayer-Swift.podspec.json | |
Specs/Curio_iOS_SDK/1.2.5/Curio_iOS_SDK.podspec.json | |
Specs/DemoWatch1/8.0.18/DemoWatch1.podspec.json | |
Specs/GoogleMapDirections/1.0/GoogleMapDirections.podspec.json |
This file contains 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
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile "Provisioning Profile Name" |
This file contains 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
// | |
// One helluva bad ass extension! | |
// | |
var BadAssX = function() {}; | |
BadAssX.prototype.run = function(arguments) { | |
arguments.completionFunction({"url": document.baseURI}); | |
}; |
This file contains 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
The Infamous Hello World Program. | |
Romeo, a young man with a remarkable patience. | |
Juliet, a likewise young woman of remarkable grace. | |
Ophelia, a remarkable woman much in dispute with Hamlet. | |
Hamlet, the flatterer of Andersen Insulting A/S. | |
Act I: Hamlet's insults and flattery. |
This file contains 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
if (!self.lineLayer.superlayer) | |
[self.layer addSublayer:self.lineLayer]; | |
CGFloat height = 1.0f / [UIScreen mainScreen].scale; | |
self.lineLayer.frame = CGRectMake(0.0, CGRectGetHeight(self.bounds) - height, CGRectGetWidth(self.bounds), height); | |
#pragma mark - Lazy loading |