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 <Foundation/Foundation.h> | |
@interface FLMHTTPStub : NSObject | |
+ (void)stubURLContains:(nonnull NSString *)aStr withJSON:(nonnull NSDictionary *)json; | |
+ (void)stubURLContains:(nonnull NSString *)aStr withHttpStatusCode:(int)code withJSON:(nullable NSDictionary *)json; | |
@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
#import <Foundation/Foundation.h> | |
@interface CIDCloudKeyManager : NSObject | |
+ (instancetype)sharedManager; | |
- (void)startFetchingWithContainerIdentifier:(NSString *)identifier | |
storingCloudKeyBlock:(void(^)(NSString *cloudKeyID, NSString *cloudKeySecret))storingCloudKeyBlock | |
paringCloudKeyBlock:(void(^)(NSString *cloudKeyID, NSString *cloudKeySecret))paringCloudKeyBlock; | |
@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
http://qiita.com/caesar_cat/items/08018ab22bea27b55443 | |
https://developer.apple.com/library/ios/documentation/iPhone/Reference/UILocalNotification_Class/#//apple_ref/occ/instp/UILocalNotification/alertBody | |
http://ios-practice.readthedocs.org/en/latest/docs/notification/ | |
iOS8 以上は、ローカル通知の設定にパーミッションが必要 | |
「何分後に通知」ということができる | |
Background Fetch のハンドラーから呼べる | |
音がある通知と、音のない通知を選べる | |
タイトル、本文、アクション(スライドしてxxx)を設定できる |
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
apply plugin: 'maven' | |
task sourcesJar(type: Jar, dependsOn:classes) { | |
classifier = 'sources' | |
from sourceSets.main.allSource | |
} | |
task javadocJar(type: Jar, dependsOn:javadoc) { | |
classifier = 'javadoc' | |
from javadoc.destinationDir |
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
public class KeyBaseCacheDatastoreCallbacks { | |
@PostPut | |
public void putToCacheAfterPut(PutContext putContext) { | |
final Entity entity = putContext.getCurrentElement(); | |
MemcacheServiceFactory.getAsyncMemcacheService().put(entity.getKey(), entity); | |
} | |
@PreGet | |
public void getFromCacheIfHits(PreGetContext getContext) { | |
final Key key = getContext.getCurrentElement(); |
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 WatchKit; | |
@interface CachingInterfaceController : WKInterfaceController | |
- (void)updateLabel:(WKInterfaceLabel *)label withString:(NSString *)string; | |
- (void)updateLabel:(WKInterfaceLabel *)label asHidden:(BOOL)hidden; | |
- (void)updateImage:(WKInterfaceImage *)image withImageNamed:(NSString *)imageName; | |
- (void)updateImage:(WKInterfaceImage *)image withBaseNameForAnimation:(NSString *)baseName withRange:(NSRange)range duration:(NSTimeInterval)duration repeatCount:(NSInteger)repeatCount; | |
- (NSString *)currentImageNameForImage:(WKInterfaceImage *)image; |
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 java.io.ByteArrayInputStream; | |
import java.io.ByteArrayOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.Map; | |
import oauth.signpost.http.HttpRequest; |
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 com.google.appengine.repackaged.org.apache.commons.codec.binary.Base64; | |
import com.google.appengine.repackaged.org.apache.commons.codec.binary.StringUtils; | |
import com.google.gson.Gson; | |
import org.slim3.controller.Controller; | |
import org.slim3.controller.Navigation; | |
import java.io.IOException; | |
abstract public class BaseController extends Controller { | |
// Working with JSON |
NewerOlder