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
import android.content.Context; | |
import android.support.v7.widget.RecyclerView; | |
import android.view.View; | |
import android.view.ViewGroup; | |
import java.util.ArrayList; | |
import java.util.HashMap; | |
import java.util.List; | |
import java.util.Map; |
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
class Dialog private constructor( | |
val title: String, | |
val message: String, | |
val titleColor: Color, | |
val bodyColor: Color, | |
val icon: Image, | |
val onClose: () -> Unit) { | |
fun show() { | |
//... |
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
fun main(args: Array<String>) { | |
val charPool : List<Char> = ('a'..'z') + ('A'..'Z') + ('0'..'9') | |
repeat(2) { | |
val rand = Random() | |
val stringBuilder = StringBuilder() | |
stringBuilder.append("BEGIN:VCARD") | |
stringBuilder.append("\n") | |
stringBuilder.append("VERSION:3.0") |
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
loopindex = 100 | |
vcftext = `` | |
function makeid() { | |
var text = ""; | |
var possible = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789"; | |
for (var i = 0; i < 5; i++) | |
text += possible.charAt(Math.floor(Math.random() * possible.length)); |