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
<script> | |
;(function ($) { | |
window.dataLayer = window.dataLayer || []; | |
$(function () { | |
var each_slice = function(arr, num, fn) { | |
if(fn === undefined) fn = function(){}; | |
for(var i=0,l=arr.length,count=0,slice=[],ret=[]; i<l; i++) { | |
if(count >= num) { | |
fn.apply(slice); | |
ret.push(slice); |
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
@interface NSString(NSStringAddition) | |
- (NSString *)convertToZenkakukana; | |
@end | |
@implementation NSString(NSStringAddition) | |
- (NSString *)convertToZenkakukana | |
{ | |
NSMutableString *target =self.mutableCopy; |
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
@implementation UITableView (UITableViewAddition) | |
-(void)reloadDataAndWait:(void(^)(void))waitBlock { | |
[self reloadData]; | |
if(waitBlock){ | |
waitBlock(); | |
} | |
} | |
@end |