This file contains hidden or 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/bash | |
# You can pass argument as project name. | |
# If you don't pass argument, use current time for project name. | |
play-swift() { | |
CURRENT_DIR="$(pwd)" | |
PROJECTS_DIR=~/Playgrounds | |
cd "$PROJECTS_DIR" | |
REPO_NAME=${1:-$(date +%Y%m%d-%H%M%S)} |
This file contains hidden or 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 RxSwift | |
import Utility | |
public protocol AppAPIRequest { | |
associatedtype Response | |
} | |
public enum APIRequestState { | |
case none |
This file contains hidden or 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 | |
public class ChatEntity { | |
var text = "" | |
var time = "" | |
var userType: UserType | |
public init(text: String, time: String, userType: UserType) { | |
self.text = text |
This file contains hidden or 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
var nodes: [Node] = [Node](repeatElement(Node(parent: nil, left: nil, right: nil), count: Int(lines[0])! )) // ノード保持配列の初期化 |
This file contains hidden or 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 ChatRoomInputView: UIView { | |
@IBOutlet weak var chatTextField: UITextField! | |
@IBOutlet weak var sendButton: UIButton! | |
override init(frame: CGRect) { | |
super.init(frame: frame) | |
self.setFromXib() |
This file contains hidden or 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
tableView.register(MyChatViewCell.self, forCellReuseIdentifier: "MyChat") |