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 scala.util.Sorting | |
import scala.collection.mutable.Map | |
@main | |
def main(): Unit = { | |
val list = List(26,0,5,8,20,22,0,13,6) | |
println(list.toCentralTendencyMeasures()) | |
} | |
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 scala.io.StdIn.readLine | |
import scala.util.Sorting | |
import scala.math.floor | |
import scala.util.control.Breaks.{break, breakable} | |
@main | |
def main(): Unit = { | |
while true | |
do | |
breakable{ | |
println("Enter a set of numbers separated by commas") |
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 kotlin.math.abs | |
import kotlin.math.sign | |
import kotlin.properties.Delegates | |
fun main() { | |
println("Do you want to draw a lineor check whether a line is a function?") | |
loop@while(true){ | |
println("Enter draw or function") | |
val input = readlnOrNull()?.trim() | |
if(input.isNullOrBlank()) continue |
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 java.util.* | |
import java.util.concurrent.ConcurrentHashMap | |
import java.util.concurrent.Executors | |
import java.util.concurrent.Future | |
import java.util.concurrent.ThreadPoolExecutor | |
import kotlin.math.abs | |
fun main(){ | |
while(true){ | |
println("Enter for example 1/2 + 2/5") |
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 java.util.* | |
import java.util.concurrent.ConcurrentHashMap | |
import java.util.concurrent.Executors | |
import java.util.concurrent.Future | |
import java.util.concurrent.ThreadPoolExecutor | |
import kotlin.math.abs | |
fun main(){ | |
val pointA = Point(0,4) | |
val pointB = Point(-2,5) |
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
_____ _ _ _____ _ _ _ _ | |
| ___| (_) | / ___| | | | | | (_) | |
| |____ ___| | \ `--. ___| |__ ___ __| |_ _| |_ _ __ __ _ | |
| __\ \ / / | | `--. \/ __| '_ \ / _ \/ _` | | | | | | '_ \ / _` | | |
| |___\ V /| | | /\__/ / (__| | | | __/ (_| | |_| | | | | | | (_| | | |
\____/ \_/ |_|_| \____/ \___|_| |_|\___|\__,_|\__,_|_|_|_| |_|\__, | | |
__/ | | |
|___/ | |
Enter one of the following options: |
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 Appointments.entityId | |
import org.jetbrains.exposed.dao.IntEntity | |
import org.jetbrains.exposed.dao.IntEntityClass | |
import org.jetbrains.exposed.dao.id.EntityID | |
import org.jetbrains.exposed.dao.id.IntIdTable | |
import org.jetbrains.exposed.sql.Database | |
import org.jetbrains.exposed.sql.SchemaUtils | |
import org.jetbrains.exposed.sql.SqlExpressionBuilder.eq | |
import org.jetbrains.exposed.sql.and | |
import org.jetbrains.exposed.sql.transactions.transaction |
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
_____ _ _ _____ _ _ _ _ | |
| ___| (_) | / ___| | | | | | (_) | |
| |____ ___| | \ `--. ___| |__ ___ __| |_ _| |_ _ __ __ _ | |
| __\ \ / / | | `--. \/ __| '_ \ / _ \/ _` | | | | | | '_ \ / _` | | |
| |___\ V /| | | /\__/ / (__| | | | __/ (_| | |_| | | | | | | (_| | | |
\____/ \_/ |_|_| \____/ \___|_| |_|\___|\__,_|\__,_|_|_|_| |_|\__, | | |
__/ | | |
|___/ | |
Enter one of the following options: | |
Persons |
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
#!/usr/bin/ruby | |
require 'sqlite3' | |
db_file = `find ~ -name places.sqlite | grep firefox` | |
unless db_file.empty? | |
db = SQLite3::Database.open db_file | |
db_history = db.execute "SELECT * FROM moz_places" | |
db.close | |
puts db_history |
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 org.koin.core.component.KoinComponent | |
import org.koin.core.component.inject | |
import org.koin.core.context.startKoin | |
import org.koin.core.qualifier.named | |
import org.koin.dsl.module | |
fun main(){ | |
startKoin { | |
modules(appModule) | |
} |
NewerOlder