Skip to content

Instantly share code, notes, and snippets.

View kenmaz's full-sized avatar

kenmaz kenmaz

View GitHub Profile
■フレッツ光マンションタイプ+Apple AirMac
[stun-client-ruby]$ ruby main.rb pediaroute.com
timeout! restarting
unsupported attribute type: 32800
unsupported attribute type: 32802
my addr = 0.0.0.0:49990
mapped addr = 119.240.241.140:33935
changed addr = 183.181.54.19:3479
my addr = 0.0.0.0:49990
まず
iCloudログイン
AppStoreで以下をインストール (購入済みタブからまとめてインストールできる)
Xcode
Slack
Sketch
LINE
sourceTree
# 文字コード設定
export LANG=ja_JP.UTF-8
# Ctrl+D回避
IGNOREEOF=10
#色とか
txtblk='\e[0;30m' # Black - Regular
txtred='\e[0;31m' # Red
txtgrn='\e[0;32m' # Green
@kenmaz
kenmaz / vimrc
Last active December 15, 2015 20:09
syntax on
set encoding=utf-8
set fileencodings=utf-8,iso-2022-jp,euc-jp,sjis
set termencoding=utf-8
set tabstop=4
set shiftwidth=4
set expandtab
set number
@kenmaz
kenmaz / gist:5567796
Created May 13, 2013 11:53
ビュー階層をダンプするコード
NSLog(@"%@", [self.view performSelector:@selector(recursiveDescription)]);
==MR初期化==
setupCoreDataStack
NSPersistentStoreCoordinator生成 (デフォルトsqlite)
rootCtx (savingRootCtx) 生成
coordinator指定
parent指定なし
Background queue
defaultCtx 生成 (-parent-> rootCtx)
use Data::Dumper;
print Dumper $a;
----
xslate
[% $a | dump %]
@kenmaz
kenmaz / file0.txt
Last active August 29, 2015 14:05
CoreDataでatomicにsaveする ref: http://qiita.com/kenmaz/items/89e50f94262a4d0547c5
User
-uid
-name
//: Playground - noun: a place where people can play
import Foundation
class Thunder { }
class Fire { }
//genericなprotocol
protocol Pokemon {
typealias PokemonType //swift2.2ではassociatedTypeって書くんだっけ
# まとめblog
http://niwatako.hatenablog.jp/entry/2016/03/05/022452
===================================================================
# Swiftのエコシステムに飛び込む #tryswiftconf Day1-1
http://niwatako.hatenablog.jp/entry/2016/03/02/105937
★聞いてない奴
OSSになっていろいろ動きが