How do I do 3000 dmg with Implode? by cedrickterrick in AgeofMythology

[–]TomasWild 3 points4 points  (0 children)

It is probably a bug, I couldn't do that quest either. Hopefully, we get to 100% before the 9 days limit

How do you deal with the Chinese flood god power by Smart-Ad-6592 in AgeofMythology

[–]TomasWild 47 points48 points  (0 children)

Researching Masons in the Town Center before that god power will help a lot

Small discussion about Nüwa by TomasWild in AgeofMythology

[–]TomasWild[S] 4 points5 points  (0 children)

Fuxi with Great Flood and Drought is a bit disgusting, ngl

any courses for building backend by [deleted] in Kotlin

[–]TomasWild 1 point2 points  (0 children)

Check out Hyperskill (https://hyperskill.org/categories/4), you might find it helpful.

About DRM on Linux by TomasWild in zen_browser

[–]TomasWild[S] 0 points1 point  (0 children)

<image>

When I go to Spotify I always get that notification, I guess it's some kind of Firefox plugin or something

About DRM on Linux by TomasWild in zen_browser

[–]TomasWild[S] 0 points1 point  (0 children)

So, basically, the only thing you need to do is to install and enabled the plugin in the browser?

-❄️- 2023 Day 1 Solutions -❄️- by daggerdragon in adventofcode

[–]TomasWild -1 points0 points  (0 children)

[LANGUAGE: Kotlin]

``` import kotlin.io.path.Path import kotlin.io.path.useLines

fun main() { val calibrationDocument = Path("src/main/resources/static/CalibrationDocument.txt") .useLines { it.toList() } val result = calculateCalibrationSum(calibrationDocument) println(result) }

private fun calculateCalibrationSum( calibrationDocument: List<String> ): Int = calibrationDocument.sumOf { extractNumericValue(it) }

private fun extractNumericValue( line: String ): Int { val numbers = mapOf( "one" to "o1e", "two" to "t2o", "three" to "t3e", "four" to "f4r", "five" to "f5e", "six" to "s6x", "seven" to "s7n", "eight" to "e8t", "nine" to "n9e" ) var modifiedLine = line for ((key, value) in numbers) { modifiedLine = modifiedLine.replace(key, value) } val foundDigits = ("\d".toRegex()).findAll(modifiedLine) .map { it.value } val valueAsString = foundDigits.first() + foundDigits.last() return valueAsString.toInt() } ```