Skip to content

Instantly share code, notes, and snippets.

View iyashamihsan's full-sized avatar
😎
One commit a day keeps the R&D in a good way.

Yasham Ihsan iyashamihsan

😎
One commit a day keeps the R&D in a good way.
View GitHub Profile
@sebaslogen
sebaslogen / create-playlist-button.json
Last active January 27, 2020 13:02
Create playlist button from Server Driven UI JSON example for post
"button": {
"title": "Create your first playlist",
"action": {
"type": "command",
"url": "/command/endpoint?path=%2Fcommand%2Fcreate-playlist",
"prompt": {
"type": "textInput",
"message": "Give your playlist a name.",
"placeholder": "My first playlist",
"confirmButtonTitle": "Create"
@tomaszpolanski
tomaszpolanski / Comparison.txt
Last active October 25, 2022 21:29
Kotlin Standard comparison
╔══════════╦═════════════════╦═══════════════╦═══════════════╗
║ Function ║ Receiver (this) ║ Argument (it) ║ Result ║
╠══════════╬═════════════════╬═══════════════╬═══════════════╣
║ let ║ this@MyClass ║ String("...") ║ Int(42) ║
║ run ║ String("...") ║ N\A ║ Int(42) ║
║ run* ║ this@MyClass ║ N\A ║ Int(42) ║
║ with* ║ String("...") ║ N\A ║ Int(42) ║
║ apply ║ String("...") ║ N\A ║ String("...") ║
║ also ║ this@MyClass ║ String("...") ║ String("...") ║
╚══════════╩═════════════════╩═══════════════╩═══════════════╝
@marciogranzotto
marciogranzotto / VIPER Android Example.kt
Last active April 16, 2021 08:41
This is an example of Android development with VIPER in Kotlin
interface LoginContracts {
interface View {
fun showError(message: String)
}
interface Presenter {
fun onDestroy()
fun onLoginButtonPressed(username: String, password: String)
}