@startuml
start
if (Have an access token?) then (yes)
else (no)
if (Have an refresh token?) then (yes)
while (Request access token) is (error)
if (retry?) then (yes)
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
public inline fun <T, R> T.nullWithBlock(block: T.() -> Unit): R? = run { | |
block() | |
null | |
} |
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
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): ViewHolder { | |
val binding = parent.inflateBinding<ListItemCommentBinding>() | |
return ViewHolder(binding) | |
} |
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
inline fun withBeforeAfter( | |
before: () -> Unit, | |
after: () -> Unit, | |
block: () -> Unit | |
) { | |
before() | |
block() | |
after() | |
} |
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
// for processing program. | |
import ddf.minim.*; | |
import ddf.minim.analysis.*; | |
import ddf.minim.effects.*; | |
import ddf.minim.signals.*; | |
import ddf.minim.spi.*; | |
import ddf.minim.ugens.*; | |
import com.jogamp.opengl.GL; | |
import com.jogamp.opengl.GL2ES2; |
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
package kotlinx.coroutines.android | |
import rx.Observable | |
import rx.android.schedulers.AndroidSchedulers | |
import rx.schedulers.Schedulers | |
fun asyncAndroid( | |
coroutine c: RxController<Unit>.() -> Continuation<Unit> | |
) { | |
val controller = RxController<Unit>() |
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
# Script Name : fabfile.py | |
# Author : shikajiro | |
# Created : 2016-11-03 | |
# Last Modified : 2016-11-03 | |
# Version : 1.0.0 | |
# Modifications : | |
# Description : | |
# Script to perform the build of Android on another machine | |
# By performing such a build of severely time on another machine, | |
# it is possible to ensure the CPU resources of the development machine, |
- 音楽の歴史
- 各国の音楽
- 作曲理論
- 楽曲分析
- 音楽理論
- 楽典
- 和声
- 非和声音
- テンション