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
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"jasmine": true, | |
"phantomjs": true, | |
"jquery": true, | |
"shelljs": true, | |
"es6": true | |
}, |
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)setUpImages { | |
self.itemScrollView.contentSize = CGSizeMake(self.view.frame.size.width * 3, self.view.frame.size.width); | |
self.itemScrollView.pagingEnabled = YES; | |
self.itemScrollView.showsHorizontalScrollIndicator = NO; | |
self.itemScrollView.showsVerticalScrollIndicator = NO; | |
self.itemScrollView.delegate = self; |
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
NSURL *url = [NSURL URLWithString:@"URL"]; | |
TOWebViewController *webViewController = [[TOWebViewController alloc] initWithURL:url]; | |
[self.navigationController pushViewController:webViewController animated:YES]; |
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
UIView *backgroundSelectedCell = [[UIView alloc] init]; | |
[backgroundSelectedCell setBackgroundColor:[UIColor colorWithRed:130/256.0 green:169/256.0 blue:171/256.0 alpha:1.0]]; | |
for (int section = 0; section < [self.tableView numberOfSections]; section++) | |
for (int row = 0; row < [self.tableView numberOfRowsInSection:section]; row++) | |
{ | |
NSIndexPath* cellPath = [NSIndexPath indexPathForRow:row inSection:section]; | |
UITableViewCell* cell = [self.tableView cellForRowAtIndexPath:cellPath]; |
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
int i =NSSwapHostIntToBig(1); | |
NSData *test = [NSData dataWithBytes:&i length:sizeof(i)]; |
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
int i =NSSwapHostIntToBig(1); | |
NSData *test = [NSData dataWithBytes:&i length:sizeof(i)]; |
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
SearchNavigationController *searchNavView = [self.storyboard instantiateViewControllerWithIdentifier:@"SEARCH"]; | |
SearchViewController *searchView = (SearchViewController *)searchNavView.visibleViewController; | |
searchView.menuFlag = TRUE; |
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
/// | |
// ExhibitViewController.h | |
// auction | |
// | |
// Created by TannoShota on 2015/09/28. | |
// Copyright (c) 2015年 TannoShota. All rights reserved. | |
// | |
#import <UIKit/UIKit.h> | |
#import "DownPicker.h" |
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
char index = 30; | |
NSData *data = [NSData dataWithBytes:&index length:sizeof(index)]; | |
NSMutableData *md = [NSMutableData alloc]; | |
[md appendData:data]; |
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
function myFunction() { | |
var response = UrlFetchApp.fetch("https://www.google.co.jp/search?q=バッグ&num=100"); | |
var arr = []; | |
var myRegexp = /<h3 class=\"r\">([\s\S]*?)<\/h3>/gi; | |
var elems = response.getContentText().match(myRegexp); | |
for(var i in elems) { | |
var title = elems[i]; | |
var site = []; |