Skip to content

Instantly share code, notes, and snippets.

View kkodev's full-sized avatar

Kamil Kocemba kkodev

  • Trainline
  • London
View GitHub Profile
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
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
@kkodev
kkodev / gist:79feb7a91e2dfd4ae8e1
Last active August 29, 2015 14:15
Sign xcarchive
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile "Provisioning Profile Name"
//
// One helluva bad ass extension!
//
var BadAssX = function() {};
BadAssX.prototype.run = function(arguments) {
arguments.completionFunction({"url": document.baseURI});
};
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.
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