Skip to content

Instantly share code, notes, and snippets.

@nguyenhuy
nguyenhuy / UISearchBar+AFNetworking.h
Last active August 29, 2015 14:04
Showing UIActivityIndicatorView on UISearchBar, depending on state of a request operation or session task
//
// UISearchBar+AFNetworking.h
//
// Created by Huy Nguyen on 7/15/14.
// Copyright (c) 2014 Huy Nguyen. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <Availability.h>
@ArtFeel
ArtFeel / MGNavigationTransitioningDelegate.h
Last active August 1, 2019 21:23
Simple sliding transitioning for navigation controller mimics pre iOS7 push/pop animations.All you need, is simply set delegate for you navigation controller: self.navigationController.delegate = self.navigationTransitioningDelegate;NavigationController does not retain delegate, so you should hold it. Note: this code is free (http://unlicense.org)
//
// MGNavigationTransitioningDelegate
//
// Created by Philip Vasilchenko on 27.11.13.
//
#import <UIKit/UIKit.h>
@interface MGNavigationTransitioningDelegate : NSObject <UINavigationControllerDelegate>
@naaman
naaman / delete-heroku-apps.sh
Last active March 5, 2021 20:57
[WARNING THIS WILL HARD DELETE YOUR APPS. YOU COULD LOSE DATA. MAKE SURE YOU KNOW WHAT YOURE DOING!!!!!!!!!!] Delete all heroku apps from bash terminal -- no script file required
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done