Skip to content

Instantly share code, notes, and snippets.

Kamil Kocemba kkodev

Block or report user

Report or block kkodev

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gengpx.rb
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
View test
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
View gist:79feb7a91e2dfd4ae8e1
xcodebuild -exportArchive -archivePath $projectname.xcarchive -exportPath $projectname -exportFormat ipa -exportProvisioningProfile "Provisioning Profile Name"
View gist:7de77ea3a20087391824
//
// One helluva bad ass extension!
//
var BadAssX = function() {};
BadAssX.prototype.run = function(arguments) {
arguments.completionFunction({"url": document.baseURI});
};
View gist:eb6639373eb0ea2f2747
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.
View gist:9512005
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
You can’t perform that action at this time.