- Mongoid for mongodb communication
- Devise for authentication and oAuth
- Active Model Serializer for JSON formatting. Alot cleaner and faster than hash views solutions like RABL
- Api versions for versioning API
- Sidekiq for background jobs. Awesome dashboard and alot easier (with less bugs) than resque
- HTTParty for sending push notifications to pushbots
- SendGrid for sending emails
- LetterOpener for viewing emails in the browser (Development)
- Roadie for compiling css to be inline for emails
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
// | |
// UserDefaults.swift | |
// | |
// Created by Shaps Benkau on 24/05/2018. | |
// Copyright © 2018 152percent Ltd. All rights reserved. | |
// | |
import Foundation | |
#if os(iOS) |
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
/** | |
* Simple way to perform an asynchronous closure synchronously | |
* | |
* Simply use the **run** method to execute the given closure that executes something with an | |
* asynchronous closure and signal when its complete. | |
* | |
* Sync.run { sync in somethingWithAsyncCallback { sync.signal() } } | |
*/ | |
public struct Sync { | |
private var semaphore: dispatch_semaphore_t |
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
@interface UIView (JSParallaxEffect) | |
- (void)js_addParallaxEffectWithMaxOffset:(CGFloat)maxOffset; | |
@end |
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
# Color Terminal | |
export CLICOLOR=1 | |
export LSCOLORS=GxFxCxDxBxegedabagaced | |
# Local Settings | |
alias ebash='vim ~/.bash_profile' # Edit bash | |
alias sbash='source ~/.bash_profile' # Source Bash | |
alias evars='vim ~/.rbenv/vars' # Edit rbenv Variables | |
alias pvars='rbenv vars' # Print rbenv Variables |
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
TLDR | |
If you want the simplest option just start /** [content] */ slashes in your header files. Do it before the @implementation for class comments and above methods for method documentation. | |
Doing this is the minimal for support in LLVM and Appledoc, which means you get CocoaDocs & XCode support. | |
Not TLDR | |
Good examples: | |
https://github.com/marcransome/MRBrew/blob/master/MRBrew/MRBrew.h | |
https://github.com/AFNetworking/AFNetworking/blob/master/AFNetworking/AFHTTPClient.h |
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
#!/bin/sh | |
All classes in iOS | |
Execute this in e.g. "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/System/Library/Frameworks" | |
(find . -name "*.h" -type f -exec grep "@interface" {} \;) | sed -E 's/^.*\@interface[ \t]+([a-zA-Z0-9]+).*/\1/' | sort | uniq |
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
// Taken from the commercial iOS PDF framework http://pspdfkit.com. | |
// Copyright (c) 2014 Peter Steinberger, PSPDFKit GmbH. All rights reserved. | |
// Licensed under MIT (http://opensource.org/licenses/MIT) | |
// | |
// You should only use this in debug builds. It doesn't use private API, but I wouldn't ship it. | |
// PLEASE DUPE rdar://27192338 (https://openradar.appspot.com/27192338) if you would like to see this in UIKit. | |
#import <objc/runtime.h> | |
#import <objc/message.h> |
Generate the list yourself:
$ cd /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS*.sdk/System/Library/Frameworks/UIKit.framework/Headers
$ grep UI_APPEARANCE_SELECTOR ./* | \
sed 's/NS_AVAILABLE_IOS(.*)//g' | \
sed 's/NS_DEPRECATED_IOS(.*)//g' | \
sed 's/API_AVAILABLE(.*)//g' | \
sed 's/API_UNAVAILABLE(.*)//g' | \
sed 's/UI_APPEARANCE_SELECTOR//g' | \
NewerOlder