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
1601265887 |
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
green |
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
apple |
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
#import "ScrollsToTopManager.h" | |
@interface ScrollsToTopManager() | |
@property (nonatomic) NSHashTable *scrollViews; | |
@end | |
@implementation ScrollsToTopManager | |
+ (instancetype)sharedManager | |
{ |
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
#import <Foundation/Foundation.h> | |
@interface BlockTest : NSObject | |
-(void)request; | |
@end | |
@implementation BlockTest { | |
NSOperationQueue *_queue; | |
NSString *_str; | |
} |
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
#import <Foundation/Foundation.h> | |
id apiRequest(NSString *url) | |
{ | |
NSURLRequest *req = [NSURLRequest requestWithURL:[NSURL URLWithString:url]]; | |
NSHTTPURLResponse *res; | |
NSError *error; | |
NSData *data = [NSURLConnection sendSynchronousRequest:req returningResponse:&res error:&error]; | |
if (error) { | |
return nil; |
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
// NSString* url = [NSString stringWithFormat:@"http://api.twitter.com/1/users/profile_image?size=normal&screen_name=%@", [screenName gtm_stringByEscapingForURLArgument]]; | |
NSString *url = [NSString stringWithFormat:@"http://n.hatena.ne.jp/%@/profile/image?type=face", screenName]; // はてなのURLに変更 |
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
#!perl | |
use common::sense; | |
use HTTP::Request::Common; | |
use LWP::UserAgent; | |
use URI; | |
use Compress::Zlib; | |
use Perl6::Say; | |
my $uri = URI->new("https://reportingitc.apple.com/autoingestion.tft"); |