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
use_frameworks! | |
target 'RxSwiftSample' do | |
pod 'RxSwift', '~> 2.0' | |
pod 'RxCocoa', '~> 2.0' | |
end | |
# RxTests and RxBlocking have most sense in the context of unit/integration tests | |
target 'RxSwiftSampleTest' do | |
pod 'RxBlocking', '~> 2.0' |
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
let name = "俺様" | |
let birthdayComponents = NSDateComponents() | |
birthdayComponents.year = 1982 | |
birthdayComponents.month = 1 | |
birthdayComponents.day = 18 | |
if let calendar = NSCalendar(calendarIdentifier: NSCalendarIdentifierGregorian) { | |
if let birthday = calendar.dateFromComponents(birthdayComponents) { | |
let now = NSDate() |
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
for i in 1...100 { | |
switch (i % 3, i % 5) { | |
case (0, 0): | |
print("FizzBuzz") | |
case (0, _): | |
print("Fizz") | |
case (_, 0): | |
print("Buzz") | |
default: | |
print(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
class Singletone { | |
static let sharedInstance: Singletone = Singletone() | |
private init() { | |
print("Singleton") | |
} | |
} |
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
3びきの子ぶた。 | |
あるところになかよしの三匹の子ぶたの兄弟がいました。 | |
ある日、お母さんぶたは言いました。 | |
「あなたたちももう大きくなったから、自分で家をたててくらしなさい。」 | |
お母さんぶたに言われて、子ぶたたちは考えます。 | |
「どんな家をつくろうかな…。」 | |
一番上の子ぶたは言いました。 | |
「ぼくはわらの家を作るよ。だってかんたんだもん!」 |
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
// Playground - noun: a place where people can play | |
import UIKit | |
var str = "Hello, playground" | |
/** constant & value **/ | |
let const = 10 | |
//const = 15 //error | |
var value = 20 |
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
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { | |
〜 途中省略 〜 | |
// エラー追跡用の機能を追加する。 | |
NSSetUncaughtExceptionHandler(&exceptionHandler); | |
return 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
update | |
tap homebrew/binary | |
tap phinze/homebrew-cask | |
install sl | |
install tree | |
install git | |
install nginx | |
install node |
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
#cocos2dx 2.2.2 プロジェクト作成 | |
/Users/jollyjoester_pro/Documents/cocos2d-x/cocos2d-x-2.2.2/tools/project-creator/create_project.py -project SampleApp -package com.jollyjoester.hogehoge -language cpp | |
#cocos2dx 3.2 プロジェクト作成 | |
/Users/jollyjoester_pro/Documents/cocos2d-x/cocos2d-x-3.2/tools/cocos2d-console/bin/cocos new SampleApp -p com.jollyjoester.hogehoge -l cpp -d ~/Desktop |
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
#DockerVMにポートフォワーディング(DockerVMのport:80にlocalhost:8080でアクセス) | |
VBoxManage controlvm "boot2docker-vm" natpf1 "hogehoge,tcp,127.0.0.1,8080,,80" | |
#ポートフォワーディング確認 | |
VBoxManage showvminfo boot2docker-vm | grep '^NIC' | |
#ポートフォワーディング削除 | |
VBoxManage controlvm "boot2docker-vm" natpf1 delete hogehoge |