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
// | |
// ViewController.swift | |
// TableViewInvalidSample | |
// | |
// Created by Kazuya Ueoka on 2020/06/23. | |
// Copyright © 2020 fromKK. All rights reserved. | |
// | |
import UIKit |
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 UIKit | |
class HeaderView: UIView { | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
setUp() | |
} | |
required init?(coder: NSCoder) { | |
super.init(coder: coder) |
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 | |
protocol BaseProtocol {} | |
class CallClass { | |
class func call<T: BaseProtocol>(with base: T) { | |
print(String(describing: type(of: self)), #function) | |
dump(base) | |
} | |
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
#!/bin/sh | |
function help() { | |
cat <<EOF | |
$(basename ${0}) is a tool for upload dsyms for Firebase Crashlytics | |
Usage: | |
$(basename ${0}) [dsyms.zip path] [Google-Service.plist path] | |
$(basename ${0}) [dsyms.zip path] [fabric API Key] |
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 UIKit | |
extension UIScrollView { | |
struct DefaultProperty { | |
let contentOffset: CGPoint | |
let contentSize: CGSize | |
let contentInset: UIEdgeInsets | |
let zoomScale: CGFloat | |
} |
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
- 0CFDE9911368DB5DD58C85A2 /* Intents.intentdefinition in Resources */ = {isa = PBXBuildFile; fileRef = E6F5EEDF3669F3AF3EAE813A /* Intents.intentdefinition */; }; | |
+ 4FEAAB6E236B2D6000CF5D03 /* Intents.intentdefinition in Sources */ = {isa = PBXBuildFile; fileRef = E6F5EEDF3669F3AF3EAE813A /* Intents.intentdefinition */; }; | |
- 74092FA4352BF42A8CD81BC0 /* Base */ = {isa = PBXFileReference; name = Base; path = Base.lproj/Intents.intentdefinition; sourceTree = "<group>"; }; | |
+ 74092FA4352BF42A8CD81BC0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.intentdefinition; name = Base; path = Base.lproj/Intents.intentdefinition; sourceTree = "<group>"; }; | |
- 0CFDE9911368DB5DD58C85A2 /* Intents.intentdefinition in Resources */, | |
+ 4FEAAB6E236B2D6000CF5D03 /* Intents.intentdefinition in Sources */, |
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 Cocoa | |
extension String { | |
func toDouble() -> Double { | |
if hasPrefix("0x") { | |
let hex = replacingOccurrences(of: "0x", with: "") | |
let num = Int(hex, radix: 16)! | |
return Double(num) / 255.0 | |
} else if hasPrefix("0.") || hasPrefix("1.0") { | |
return Double(self)! |
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
- deploygate--upload-app-bitrise-step: | |
inputs: | |
- owner_name: fromkk | |
- app_path: "$BITRISE_IPA_PATH" | |
- visibility: public | |
- api_key: "$DEPLOYGATE_API_KEY" | |
- script: | |
inputs: | |
- content: |- | |
#!/usr/bin/env bash |
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
settings set target.language swift |
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 | |
extension Date { | |
func toString(with dateFormat: String) -> String { | |
let dateFormatter = DateFormatter() | |
dateFormatter.locale = Locale(identifier: "ja_JP") | |
dateFormatter.timeZone = TimeZone(identifier: "Asia/Tokyo") | |
dateFormatter.dateFormat = dateFormat | |
return dateFormatter.string(from: self) | |
} |