Skip to content

Instantly share code, notes, and snippets.

View vixentael's full-sized avatar

vixentael

View GitHub Profile
Node.js
Parse.com
MongoDB
@vixentael
vixentael / Google.podspec.json
Last active March 28, 2016 14:06
Google.podspec for 1.3.2 but without "-force_load '$(PODS_ROOT)/GoogleUtilities/Libraries/libGTM_NSData+zlib.a'"
{
"name": "Google",
"version": "1.3.2",
"summary": "Google APIs for iOS",
"description": "Simplify your iOS development, grow your user base, and monetize more effectively with Google services.",
"homepage": "https://developers.google.com/ios",
"license": {
"text": "Copyright 2015 Google Inc.",
"type": "Copyright"
},
Pod::Spec.new do |s|
s.name = "Nimbus"
s.version = "1.3.0"
s.summary = "The iOS framework that grows only as fast as its documentation"
s.description = <<-DESC
Nimbus is an iOS framework whose feature set grows only as fast as its documentation. By focusing
on documentation first and features second, Nimbus hopes to be a framework that accelerates the
development process of any application by being easy to use and simple to understand.
DESC
s.homepage = "http://nimbuskit.info"
@vixentael
vixentael / .swiftlint.yml
Last active January 10, 2016 23:23
my swiftlint configuration
# what is this? https://github.com/realm/SwiftLint
# how to install? https://github.com/realm/SwiftLint
# where to put? <path_to_workspace>/<project_name>/.swiftlint.yml (at the same level as <project_name>.xcodeproj)
disabled_rules: # rule identifiers to exclude from running
- control_statement
- trailing_whitespace
- todo
- valid_docs
{
"words_with_punctuation": [
"@ss",
"a.s.s",
"blow job",
"bunny fucker",
"b!tch",
"bi+ch",
"carpet muncher",
"f u с k",
@vixentael
vixentael / uiview_sflayeranimation
Last active August 29, 2015 14:25
ios view small animations
@implementation UIView (SFLayerAnimation)
- (void)sf_animateFadeTransitionWithDuration:(CGFloat)duration delay:(CGFloat)delay name:(NSString *)name {
CATransition * animation = [CATransition animation];
animation.timeOffset = delay;
animation.duration = duration;
animation.type = kCATransitionFade;
animation.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut];
[self.layer addAnimation:animation forKey:name];
}
@vixentael
vixentael / show-mail-controller
Created May 22, 2015 13:40
show mail controller from any VC
#import <MessageUI/MessageUI.h>
- (void)showContactUsFromScreen:(UIViewController *)controller completion:(SFActionBlock)completion {
if ( [MFMailComposeViewController canSendMail] ) {
controller.view.userInteractionEnabled = NO;
__weak UIViewController * weakController = controller;
MFMailComposeViewController * mailComposeViewController = [[MFMailComposeViewController alloc] init];
mailComposeViewController.mailComposeDelegate = self;
Pod::Spec.new do |s|
s.name = "UIBarButtonItem-Badge"
s.version = "0.0.1"
s.summary = "Create a BarButtonItem with a badge on top. Easily customizable. Your BarButtonItem can be any custom view you wish for. The badge on top can display any number or string of any size or length."
s.homepage = "https://github.com/mikeMTOL/UIBarButtonItem-Badge"
s.license = 'MIT'
s.author = { "Mike" => "http://mikethinkingoutloud.com" }
Pod::Spec.new do |s|
s.name = "UIAlertView-Blocks"
s.version = "0.1"
s.summary = "A category for UIAlertView which allows you to use blocks to handle the pressed button events rather than implementing a delegate."
s.description = <<-DESC
You dont need a delegate. To have one button only, set the right button title to nil.
Actions are optional. To not have one, set it to nil.
LIMITATIONS.
You can only have one or two buttons in the alert view. If you want three or more buttons you will have to revert back to the old way.
Pod::Spec.new do |s|
s.name = 'Nimbus'
s.version = '1.0.2'
s.license = 'Apache License, Version 2.0'
s.summary = 'An iOS framework whose growth is bounded by O(documentation).'
s.homepage = 'http://docs.nimbuskit.info/index.html'
s.author = { 'Jeff Verkoeyen' => 'jverkoey@gmail.com',
'Bubnov Slavik' => 'bubnovslavik@gmail.com',
'Roger Chapman' => 'rogchap@gmail.com',
'Manu Cornet' => 'manu.cornet@gmail.com',