Skip to content

Instantly share code, notes, and snippets.

View okitsutakatomo's full-sized avatar

takatomo okitsu okitsutakatomo

  • yokohama, japan
View GitHub Profile
//
// ViewController.m
// EstimoteSample
//
// Created by Takatomo Okitsu on 2013/12/08.
// Copyright (c) 2013年 Takatomo Okitsu. All rights reserved.
//
#import "ViewController.h"
@okitsutakatomo
okitsutakatomo / file0.txt
Created October 31, 2013 06:00
SkyLabを利用したiOSアプリケーションのABテスト ref: http://qiita.com/okitsutakatomo/items/90a96a4ef2276251cd56
[SkyLab abTestWithName:@"Title" A:^{
self.titleLabel.text = NSLocalizedString(@"Hello, World!", nil);
} B:^{
self.titleLabel.text = NSLocalizedString(@"Greetings, Planet!", nil);
}];
@okitsutakatomo
okitsutakatomo / AFTextResponseSerializer.h
Created October 20, 2013 18:14
AFNetworking2.0でContent-Type: plain/textのレスポンスを扱う方法 ref: http://qiita.com/okitsutakatomo/items/21b126fb1e3dae3bcb2f
#import "AFURLResponseSerialization.h"
@interface AFTextResponseSerializer : AFHTTPResponseSerializer
@end
@okitsutakatomo
okitsutakatomo / GoToNextTests.h
Created October 14, 2013 19:16
KIFとNLTHTTPStubServerを利用して最低限のIntegrationTestを実現する ref: http://qiita.com/okitsutakatomo@github/items/c06c1450f1697382e802
#import "KIFTestCase.h"
#import <KIF/KIF.h>
@interface GoToNextTests : KIFTestCase
@end
{
"currently": {
"cloudCover": 0.29,
"dewPoint": 16,
"humidity": 0.84,
"icon": "partly-cloudy-night",
"ozone": 327.31,
"precipIntensity": 0,
"pressure": 1014.47,
"summary": "Partly Cloudy",
class Hello {
public static void main(String[] argv){
String test = "test";
System.out.println("before: " + test);
testToNull(test);
System.out.println("after: " + test);
}
public static void testToNull(String test){
test = null;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!-- 利用する言語にあわせて、lang と xml:lang の両方を記述します - A.7 -->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Example Portable XHTML</title>
<!-- サーバーで文字エンコーディングを指定できない場合に、次の指定を記述します - A.9 -->
<meta http-equiv="Content-Type"
content="text/html; charset=utf-8" />
@charset "UTF-8";
/* reset styles */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td {
margin:0;
padding:0;
}
table {
border-collapse:collapse;
//ファイルのダウンロード名を制御する
header("Content-disposition: attachment; filename={$fname}");
header("Content-type: application/octet-stream; name={$fname}");
//jquery ready
$(function() {
// Stuff to do as soon as the DOM is ready;
});