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
// | |
// UIView+Activity.h | |
// | |
// Created by Andrew on 7/7/11. | |
// Copyright 2011 Al Digit. All rights reserved. | |
// | |
// Based on GIST: https://gist.github.com/andrew-tokarev/4116199 | |
// | |
// Updated at 9/05/2013 - Version 1.4 |
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
/* [UIColor colorWithHex:0xFF0000]; */ | |
#import <UIKit/UIKit.h> | |
@interface UIColor (Hex) | |
+(UIColor*) colorWithHex:(int)hex; | |
@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
// We may use it in viewWillAppear/viewWillDisappear | |
- (void) addKeyboardObserver | |
{ | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; | |
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; | |
} | |
- (void) removeKeyboardObserver | |
{ |
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
[user] | |
name = "<YOUR NAME>" | |
email = "<E-MAIL>" | |
[alias] | |
co = checkout | |
ci = commit | |
st = status | |
br = branch | |
lol = log --graph --decorate --pretty=oneline --abbrev-commit | |
l = log --pretty=oneline --graph --abbrev-commit --stat |
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
// | |
// AlertBuilder | |
// | |
#import <Foundation/Foundation.h> | |
typedef void (^AlertButtonBlock) (); | |
@interface Alert : NSObject <UIAlertViewDelegate> |
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/bash | |
for D in *; do | |
if [ -d "${D}" ]; then | |
cd ${D} | |
echo ${D} | |
echo ================================ | |
git fetch upstream | |
git checkout master |
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/bash | |
for dir in $(find . -name ".git"); do | |
echo "Pulling " ${dir%/*} | |
cd ${dir%/*} | |
git pull --ff | |
cd - > /dev/null |
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
# Xcode | |
.DS_Store | |
/build/* | |
*/build/* | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 |
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
{ | |
"log": ["CRUD", "CRUD+", "HTTP", "HTTP+", "Access", "Cache", "Shadow", "Shadow+", "Changes", "Changes+"], | |
"interface":":4984", | |
"adminInterface":":14985", | |
"facebook":{ | |
"register":true | |
}, | |
"databases":{ | |
"gw":{ | |
"server":"walrus:data", |
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
{ | |
"log": ["CRUD", "CRUD+", "HTTP", "HTTP+", "Access", "Cache", "Shadow", "Shadow+", "Changes", "Changes+"], | |
"interface":":4984", | |
"adminInterface":":14985", | |
"facebook":{ | |
"register":true | |
}, | |
"databases":{ | |
"gw":{ | |
"server":"http://localhost:8091", |
OlderNewer