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
#import <Availability.h> | |
#ifndef __IPHONE_5_0 | |
#warning "This project uses features only available in iOS SDK 5.0 and later." | |
#endif | |
#ifdef __OBJC__ | |
#import <UIKit/UIKit.h> | |
#import <Foundation/Foundation.h> | |
#define LOG(A, ...) NSLog(@"LOG: %s:%d:%@", __PRETTY_FUNCTION__,__LINE__,[NSString stringWithFormat:A, ## __VA_ARGS__]); |
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
- (GPUImageFilterGroup *)createFilterGroup:(NSArray *)filters{ | |
GPUImageFilterGroup *filterGroup = [[GPUImageFilterGroup alloc] init]; | |
GPUImageFilter *beforeFilter = nil; | |
for (GPUImageFilter *filter in filters) { | |
[filterGroup addTarget:filter]; | |
if (!beforeFilter){ // beforeフィルターが設定されてない時は一番最初 | |
beforeFilter = filter; | |
continue; | |
} | |
[beforeFilter addTarget:filter]; |
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
- (void)setEnableAllBtn:(BOOL)enable{ | |
for (UIButton *btn in [self.view subviews]) { | |
if ([btn isKindOfClass:[UIButton class]]) { | |
[btn setEnabled:enable]; | |
} | |
} | |
} |
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
double photoSize = 640; | |
GPUImageCropFilter *cropFilter = [[GPUImageCropFilter alloc] initWithCropRegion:CGRectMake(0, 0.125f, 1.0f, 0.75f)]; | |
[firstFilter forceProcessingAtSize:CGSizeMake(photoSize, photoSize)]; |
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
# Mac | |
.DS_Store | |
# Xcode | |
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
{"alert":"test","badge":"21","sound":"","action":"1"} |
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
CCDictionary *dictionary = CCDictionary::create(); | |
dictionary->setObject(CCString::create("testObject1"),"testKey1"); | |
dictionary->setObject(CCString::create("testObject2"),"testKey2"); | |
CCArray *keys = dictionary->allKeys(); | |
CCObject *key; | |
CCARRAY_FOREACH(keys, key){ | |
CCString *keyString = (CCString *)key; | |
CCLOG("key -> %s" , keyString -> getCString() ); | |
CCString *objectString = (CCString *)dictionary -> objectForKey(keyString->getCString()); |
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
double photoSize = 640; | |
// フィルターの設定 | |
//// まずフィルターグループを作る。フィルターを一つにまとめることで、あとで画像をつくるときに全部のフィルターがかかった画像が得られる | |
self.filterGroup = [[GPUImageFilterGroup alloc] init]; | |
//// 最初のフィルター便宜的に | |
GPUImageFilter *firstFilter = [[GPUImageCropFilter alloc] initWithCropRegion:CGRectMake(0, 0.125f, 1.0f, 0.75f)]; | |
[self.filterGroup addFilter:firstFilter]; | |
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
# encoding:utf-8 | |
require "csv" | |
require "kconv" | |
# please set defaults language folder | |
localizedFolderName = "ja.lproj" | |
File::open(localizedFolderName + "/Localizable.strings") do |f| | |
CSV.open("localizable.csv","w") do |csv| | |
csv << ["key","ja","en","for system →",'=""""&$A1&""""&"="&""""&B1&""";"'] | |
keyAry = [] |
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
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)" | |
brew install python --framework | |
brew install zmq | |
pip install pyzmq tornado jinja2 ipython |
OlderNewer