Skip to content

Instantly share code, notes, and snippets.

<video id="v" width="100%" src="http://ad-tech-study.com/video/DAC-FRUITSBEAR.mp4" autoplay playsinline muted></video>
@takuhou
takuhou / request.log
Last active August 29, 2015 14:16
safari(iOS8.2)のCookieの挙動が変わった? ref: http://qiita.com/takuhou/items/5ae6ba506a8a0dc8ea07
XXX.XXX.XXX.XXX - - [11/Mar/2015:09:32:37 +0900] "GET /XXX/XXXXX HTTP/1.1" 204 0 "http://XXXX/mesure.html" "Mozilla/5.0 (iPhone; CPU iPhone OS 8_2 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) Version/8.0 Mobile/12D508 Safari/600.1.4" "125.30.174.128" "XXXX=000359B282E204FF2DEC25CD61626364; XXXX=4bb5ccbe-9964-42a8-9147-843b975f487e"
@takuhou
takuhou / ViewController.h
Last active August 29, 2015 14:16
スマートフォンにおける広告配信用SDKの設計について考えてみた ref: http://qiita.com/takuhou/items/5969b7f2485b779044a3
#import <UIKit/UIKit.h>
@interface ViewController : UIViewController <UIWebViewDelegate>{
UIWebView *wv;
}
@end
@takuhou
takuhou / ViewController.h
Created February 26, 2015 13:38
アプリ内にAppStoreをだいたい半分だけ表示してみる ref: http://qiita.com/takuhou/items/46571c310708b4033784
#import <UIKit/UIKit.h>
#import <StoreKit/StoreKit.h>
@interface ViewController : UIViewController {
// AppStore表示用のViewController
SKStoreProductViewController *productViewController;
}
@end
var TestService = angular.module('TestService',['ngResource']);
TestService.factory('Test',['$resource',function ($resource) {
return $resource('http://localhost/api/test/:id',{},{
query: {method: 'GET', isArray: true},
show: {method: 'GET'},
save: {method: 'POST'},
update: {method: 'PUT'},
remove: {method: 'DELET'}
});
@takuhou
takuhou / app.js
Created February 4, 2015 13:30
VagrantでCentOS7を立てたが、httpアクセスが繋がらない時にやったこと ref: http://qiita.com/takuhou/items/1bdd8403a15be7411e20
app = require('express')();
app.get('/', function(req, res){
res.send('hello world');
});
app.listen(80);
@takuhou
takuhou / filerotate.js
Last active August 29, 2015 14:14
TitaniumMobileでファイルローテート処理 ref: http://qiita.com/takuhou/items/f338f1bcf3064dc63a95
// tmp領域のパス
var temp = Ti.Filesystem.tempDirectory
// バックアップファイルオブジェクト保存用の配列
var oldfileList = [];
// ダウンロードファイルオブジェクト保存用の配列
var downloadfileList = [];
@takuhou
takuhou / file0.txt
Created January 24, 2015 09:26
Titanium.Network.HTTPClientでキャッシュを無効にする方法 ref: http://qiita.com/takuhou/items/5fb32d5a2f5f1942f2a3
App.Properties.getString("url", "http://XXXXXXXX.jp/app.json")
@takuhou
takuhou / index.html
Last active August 29, 2015 14:13
Xcode6.1.1で開発したアプリをAdHoc配布(Webインストール)する方法 ref: http://qiita.com/takuhou/items/7b6d724a89e426275a4d
<!DOCTYPE html>
<html lang="ja">
<head>
<meta name="viewport" content="width=device-width"/>
<meta charset="utf-8">
<title>Ad-Hoc ダウンロード</title>
</head>
<body>
<h1>Ad-Hoc ダウンロード</h1>
<a href="itms-services://?action=download-manifest&url=https://XXXX.co.jp/app.plist">ダウンロード</a>
@takuhou
takuhou / Gruntfile.js
Last active August 29, 2015 14:13
Yeomanで作るAngular.jsのプロジェクト ref: http://qiita.com/takuhou/items/58daa13ce80382220b58
163 // Automatically inject Bower components into the app
164 wiredep: {
165 // options: {
166 // cwd: '<%= yeoman.app %>'
167 // },
168 app: {
169 src: ['<%= yeoman.app %>/index.html'],
170 ignorePath: /\.\.\//
171 },
172 sass: {