This file contains hidden or 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)viewDidLoad{ | |
[super viewDidLoad]; | |
//全notificationの解除 | |
[[UIApplication sharedApplication] cancelAllLocalNotifications]; | |
//notificationを登録 | |
NSDate *date = [NSDate dateWithTimeIntervalSinceNow:[self getDiffFromTodayWithFormat:@"201208152113"]]; | |
[self registNotification:date message:@"時間になったよ"]; |
This file contains hidden or 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
-optimize=true | |
-omit-trace-statements=true |
This file contains hidden or 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
@protocol CoverManagerDelegate | |
-(void)didFinishComplete:(id)manager; | |
@optional | |
-(void)progressLoadCount:(int)count manager:(id)manager; | |
@end |
This file contains hidden or 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
NSData *data = UIImagePNGRepresentation([self trimImage:screenImage :CGRectMake(0, 0, 320, 400)]); | |
NSString *filePath = [NSString stringWithFormat:@"%@/test.png" , [NSHomeDirectory() stringByAppendingPathComponent:@"Documents"]]; | |
if ([data writeToFile:filePath atomically:YES]) { | |
NSLog(@"OK"); | |
} else { | |
NSLog(@"Error"); | |
} |
This file contains hidden or 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
#closeSign { | |
animation: swing ease-in-out 9s; | |
-webkit-animation: swing ease-in-out 9s; | |
-moz-animation: swing ease-in-out 9s; | |
-webkit-transform-origin: 50% 0%; | |
-moz-transform-origin: 50% 0% } | |
@-keyframes swing { 0% } | |
10% { -transform: rotate(-2deg) } |
This file contains hidden or 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
codestream API_KEY |
This file contains hidden or 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
<div id="h5p-message"></div> <script>window.h5please=function(a){ document.getElementById("h5p-message").innerHTML=a.html }</script> <script async src="http://api.html5please.com/websockets.json?callback=h5please&texticon&html"></script> |
This file contains hidden or 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
class Module | |
@isInputElement:(el)-> | |
el instanceof HTMLInputElement | |
@Module = Module | |
$.fn.extend | |
allChecked:()-> | |
@each (i,el)=> | |
el.checked = true if Module.isInputElement(el) |
This file contains hidden or 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
$.fn.extend | |
test:(options)-> | |
self = $.fn.test | |
opts = $.extend {}, self.default_options, options | |
$.extend $.fn.test, | |
default_options: | |
version: '1.0' |
This file contains hidden or 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
if(!Array.prototype.indexOf){ | |
Array.prototype.indexOf = function(obj){ | |
var l = this.length; | |
if(l){ | |
for(var i=0;i<l;i++){ | |
if(this[i] === obj)return i | |
} | |
} | |
return -1 | |
} |