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
type struct Value { | |
Foo *float64 | |
Bar *float64 | |
ZZZ *float64 | |
} | |
value := Value { | |
Foo: 0.1 | |
Bar: 0.2 | |
ZZZ: 0.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
p print(String(data: try! JSONSerialization.data(withJSONObject: XXX, options: .prettyPrinted), encoding: .utf8 )!) |
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
# ${i}にすることで`01`のようにゼロ埋め | |
for i in `seq -w 1 50`; do cp ./small/${i}_icon.jpg ./temp/${i}/${i}_icon.jpg; done |
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
// 型をうまく使ったActionCreator実装を読む | |
// http://michaellawrie.com/typesafe-redux-in-typescript | |
// https://github.com/reactjs/redux/issues/992#issuecomment-191152574 | |
// Reduxのアクションの型 typeとT型オブジェクトpayloadを持つプレーンオブジェクト | |
export interface Action<T> { | |
readonly type: string, | |
readonly payload: T | |
} |
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
import Foundation | |
import UIKit | |
protocol CollectionViewHorizontalCenterSnapping: class { | |
// 横方向 セル間のスペース幅 | |
var itemSpacing: CGFloat { get } | |
var itemSize: CGSize { get } | |
// ページングindex | |
var currentItem: Int { get set} | |
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
オリパラに向けた多言語翻訳 | |
http://www.2020games.metro.tokyo.jp/multilingual/references/index.html | |
道路系 | |
http://www.2020games.metro.tokyo.jp/multilingual/council/pdf/honpen_doro_taiyaku.pdf | |
文化財 | |
http://www.bunka.go.jp/koho_hodo_oshirase/hodohappyo/pdf/2016080401_besshi01.pdf |
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
// Thanks for http://stackoverflow.com/a/33323264 | |
AcademyEngravedLetPlain | |
AlNile | |
AlNile-Bold | |
AmericanTypewriter | |
AmericanTypewriter-Bold | |
AmericanTypewriter-Condensed | |
AmericanTypewriter-CondensedBold | |
AmericanTypewriter-CondensedLight |
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
<plist version="1.0"> | |
<dict> | |
<key>%dmins</key> | |
<dict> | |
<key>NSStringLocalizedFormatKey</key> | |
<string>%#@mins@</string> | |
<key>mins</key> | |
<dict> | |
<key>NSStringFormatSpecTypeKey</key> | |
<string>NSStringPluralRuleType</string> |
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 | |
import CoreLocation | |
// Thanks for a great post! | |
// 「日本測地系から世界測地系に変換する」 | |
// http://d.hatena.ne.jp/nakamura001/20080501/1209660263 | |
extension CLLocationCoordinate2D { |
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
privateが付いた関数で入れ替えようとすると | |
objc_getInstanceMethodで見つからない。 | |
privateを取り除くとうまくいく。 |
NewerOlder