I hereby claim:
- I am demon1105 on github.
- I am demonnico (https://keybase.io/demonnico) on keybase.
- I have a public key whose fingerprint is 4F29 DF51 438E F0DA 6D12 325E A80B 7A46 78AB FAFA
To claim this, I am signing this object:
# Created by http://www.gitignore.io | |
### Xcode ### | |
build/ | |
*.pbxuser | |
!default.pbxuser | |
*.mode1v3 | |
!default.mode1v3 | |
*.mode2v3 | |
!default.mode2v3 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
/usr/libexec/PlistBuddy -c Print:UDID udid.plist | |
ios devices:add "name"=udid | |
ios profiles:devices:add profilename "name"=udid | |
rm -f profilename.mobileprovision | |
ios profiles:download profilename |
//get default metadata infomation from CMSampleBufferRef instance. | |
NSDictionary * dic = | |
(__bridge NSDictionary*)CMCopyDictionaryOfAttachments(NULL, imageDataSampleBuffer, kCMAttachmentMode_ShouldPropagate); | |
NSLog(@"default metadata:%@",dic); | |
// |
lipo -info hello.a // print the static library's fat info. |
I hereby claim:
To claim this, I am signing this object:
// .h | |
@interface UIDevice (ProcessesAdditions) | |
- (NSArray *)runningProcesses; | |
@end | |
// .m | |
#import <sys/sysctl.h> | |
@implementation UIDevice (ProcessesAdditions) |
#imagemagick is needed http://www.imagemagick.org/ | |
#reference: http://stackoverflow.com/questions/18663013/icon-file-names-ios-7 | |
convert $1 -resize 29x29 Icon-Small.png | |
convert $1 -resize 58x58 Icon-Small@2x.png | |
convert $1 -resize 40x40 Icon-40.png | |
convert $1 -resize 80x80 Icon-40@2x.png | |
convert $1 -resize 57x57 Icon.png | |
convert $1 -resize 114x114 Icon@2x.png | |
convert $1 -resize 120x120 Icon-60@2x.png | |
convert $1 -resize 76x76 Icon-76.png |
commit=`git rev-parse --short HEAD` | |
branch=`git rev-parse --abbrev-ref HEAD` | |
version=`/usr/libexec/PlistBuddy -c "Print CFBundleVersion" "${INFOPLIST_FILE}"` | |
function processIcon() { | |
export PATH=$PATH:/usr/local/bin | |
base_file=$1 | |
base_path=`find ${SRCROOT} -name $base_file` | |
if [[ ! -f ${base_path} || -z ${base_path} ]]; then |
APP = Pages | |
WORKSPACE = Pages | |
CONFIG = InHouse | |
SCHEME = PagesInHouse | |
ICON_NAME = Icon@2x.png | |
BASE_URL = http://beta.nsnotfound.com/pages | |
EMAIL_LIST = newproject@lexrus.mailgun.org | |
EMAIL_DOMAIN = lexrus.mailgun.org | |
SFTP_SERVER = lex@nsnotfound.com |