This file contains hidden or 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 util.someFunc as heyBoysHeyGirls | |
import util.someFunc as superStarDJs | |
fun main(args: Array<String>) { | |
heyBoysHeyGirls(x = "here we go") | |
superStarDJs(x = "here we go") | |
} |
This file contains hidden or 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 main | |
import main.Yep.uniqueName as myMagic | |
fun main(args: Array<String>) { | |
myMagic() | |
} | |
object Yep { | |
fun uniqueName() { |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
A | |
a | |
aa | |
aal | |
aalii | |
aam | |
Aani | |
aardvark | |
aardwolf | |
Aaron |
This file contains hidden or 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
/** | |
mergesort - following algorithms illuminated | |
joshskeen | |
**/ | |
fun main(args: Array<String>) { | |
val listOf = listOf(1, 11, 8, 2, 3, 7, 8, 9, 3) | |
println(mergesort(listOf)) | |
} |
This file contains hidden or 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>) { | |
orderDrink("ale,dragon's breath,5.932") | |
} | |
private fun orderDrink(drinkData: String) { | |
val indexOfClosingBracket = drinkData.indexOf("]") | |
//type | |
val drinkType = drinkData.substringBefore(",") | |
//price |
This file contains hidden or 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 kotlin.math.roundToInt | |
var playerGold = 10 | |
var playerSilver = 10 | |
fun main(args: Array<String>) { | |
orderDrink("ale,dragon's breath,5.932") | |
} | |
private fun orderDrink(drinkData: String) { |
This file contains hidden or 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 java.io.File | |
import kotlin.math.roundToInt | |
var playerGold = 10 | |
var playerSilver = 10 | |
var firstNames = listOf("Little Eli", "Gwenevere", "Mookie", "Julius") | |
var lastNames = listOf("Aurelius", "Jenkins", "Falteroy", "Skeen") | |
fun main(args: Array<String>) { |
This file contains hidden or 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 java.io.File | |
import java.util.Random | |
var playerGold = 10 | |
var playerSilver = 10 | |
var firstNames = listOf("Little Eli", "Gwenevere", "Mookie", "Julius") | |
var lastNames = listOf("Aurelius", "Jenkins", "Falteroy", "Skeen") | |
var patronGold: MutableMap<String, Double> = mutableMapOf() |
This file contains hidden or 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
<?xml version="1.0" encoding="utf-8"?> | |
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent" | |
android:orientation="vertical" | |
android:padding="16dp" | |
tools:context=".NewCharacterActivity"> | |
<LinearLayout |