$ xcrun simctl list --json
$ xcrun simctl delete unavailable
| enum class States { | |
| EXPANDED, | |
| COLLAPSED | |
| } | |
| @ExperimentalMaterialApi | |
| @Composable | |
| fun FullHeightBottomSheet( | |
| header: @Composable () -> Unit, | |
| body: @Composable () -> Unit |
| name: Flutter CI | |
| # This workflow is triggered on pushes to the repository. | |
| on: | |
| push: | |
| branches: | |
| - master | |
| # on: push # Default will running for every branch. |
| import UIKit | |
| /// キーボードイベントを監視し、キーボードの開閉に合わせてviewをtransformで上下移動させる | |
| final class KeyboardManager { | |
| private var view: UIView | |
| /// キーボード開閉時に可能なら表示されるように画面スライド位置が調整されるビュー | |
| /// 縦長フォームの一番下にあるサブミットボタンみたいなやつを想定 | |
| private var subFocusView: UIView? | |
| /** | |
| * An [Observer] for [Event]s, simplifying the pattern of checking if the [Event]'s content has | |
| * already been handled. | |
| * | |
| * [onEventUnhandledContent] is *only* called if the [Event]'s contents has not been handled. | |
| */ | |
| class EventObserver<T>(private val onEventUnhandledContent: (T) -> Unit) : Observer<Event<T>> { | |
| override fun onChanged(event: Event<T>?) { | |
| event?.getContentIfNotHandled()?.let { value -> | |
| onEventUnhandledContent(value) |
| /** | |
| * Used as a wrapper for data that is exposed via a LiveData that represents an event. | |
| */ | |
| open class Event<out T>(private val content: T) { | |
| var hasBeenHandled = false | |
| private set // Allow external read but not write | |
| /** | |
| * Returns the content and prevents its use again. |
| Android Studio30分集中超絶技巧100選 DroidKaigi 2018 | |
| 山本 ユウスケ @yusuke | |
| マウス、トラックパッドを使うのはやめましょう | |
| 今日は以下のキーマップの話です | |
| Mac OSX: Mac OSX 10.5+ | |
| Windows/Linux: Default | |
| 他のキーマップだとQiitaやドキュメント、ブログなどを見る際に苦労します。 | |
| 設定画面 Cmd + , (Ctrl + Alt + S) | |
| プロジェクト設定画面 Cmd + ; | |
| File > Power Save Modeでバッテリー節約 |
| import {Action, ActionCreator, Dispatch} from 'redux'; | |
| import {ThunkAction} from 'redux-thunk'; | |
| // Redux action | |
| const reduxAction: ActionCreator<Action> = (text: string) => { | |
| return { | |
| type: SET_TEXT, | |
| text | |
| }; | |
| }; |
| package io.realm; | |
| import java.io.IOException; | |
| import java.lang.reflect.Field; | |
| import java.lang.reflect.Modifier; | |
| import java.util.EnumMap; | |
| import java.util.Map; | |
| public class RealmUtil { |
| import android.content.Context; | |
| import android.content.res.TypedArray; | |
| import android.graphics.Canvas; | |
| import android.graphics.Rect; | |
| import android.graphics.drawable.Drawable; | |
| import android.support.v7.widget.LinearLayoutManager; | |
| import android.support.v7.widget.RecyclerView; | |
| import android.util.AttributeSet; | |
| import android.view.View; |