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 August 12, 2024 07:35
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)
}