I hereby claim:
- I am keitaoouchi on github.
- I am keeeita (https://keybase.io/keeeita) on keybase.
- I have a public key ASCEz-ejBvg97RXT9iqKRWpZGZ0bdbHdG6eHGwC6g3Bw4wo
To claim this, I am signing this object:
function doGet(e) { | |
var row = defineRow(e); | |
var cell = getCell(row); | |
return ContentService.createTextOutput(cell).setMimeType(ContentService.MimeType.JSON); | |
} | |
function doPost(e) { | |
if (e == null || e.postData == null || e.postData.contents == null) { return; } | |
var body = e.postData.contents; |
import Foundation | |
final class MutableAVLTree<T> { | |
typealias Process = ((MutableAVLTree<T>) -> ()) | |
var value: T? | |
var height: Int = 0 | |
var left: MutableAVLTree? | |
var right: MutableAVLTree? | |
init() { |
import UIKit | |
/// キーボードイベントを監視し、キーボードの開閉に合わせてviewをtransformで上下移動させる | |
final class KeyboardManager { | |
private var view: UIView | |
/// キーボード開閉時に可能なら表示されるように画面スライド位置が調整されるビュー | |
/// 縦長フォームの一番下にあるサブミットボタンみたいなやつを想定 | |
private var subFocusView: UIView? |
import Foundation | |
import UIKit | |
final class PopupTransition: NSObject, UIViewControllerAnimatedTransitioning { | |
enum Mode { | |
case present | |
case dismiss | |
} |
swagger: '2.0' | |
info: | |
version: 0.0.1 | |
title: Qiita API | |
host: 'qiita.com' | |
basePath: '/api/v2' |
I hereby claim:
To claim this, I am signing this object:
import UIKit | |
@IBDesignable | |
final class PlaceholderTextView: UITextView, UITextViewDelegate { | |
private let _TAG = 100 | |
override open var bounds: CGRect { | |
didSet { | |
self.resizePlaceholder() |
extension MoyaError { | |
var is401: Bool { | |
switch self { | |
case .underlying( | |
Alamofire.AFError.responseValidationFailed( | |
Alamofire.AFError.ResponseValidationFailureReason.unacceptableStatusCode(401) | |
) | |
): return true | |
default: | |
return false |
import UIKit | |
import IoniconsKit | |
final class DotsLoader: UIViewController { | |
@IBOutlet weak var animationView: UIView! | |
@IBOutlet weak var statusLabel: UILabel! | |
var dots: [CALayer]? | |
// MARK: - configurable properties | |
var onSuccessImage: UIImage = UIImage.ionicon( |
import UIKit | |
import RxSwift | |
final class SMSVerificationViewController: UIViewController { | |
@IBOutlet weak var digits1TextField: UITextField! | |
@IBOutlet weak var digits2TextField: UITextField! | |
@IBOutlet weak var digits3TextField: UITextField! | |
@IBOutlet weak var digits4TextField: UITextField! | |
@IBOutlet weak var resendButton: UIButton! | |
@IBOutlet weak var submitButton: UIButton! |