I hereby claim:
- I am fteychene on github.
- I am fteychene (https://keybase.io/fteychene) on keybase.
- I have a public key ASBN34zfHMRt8MGbJiGbgEgnsvgys9UFVaJRi89tf9YYmgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
The game consists of 10 frames.
In each frame the player has two rolls to knock down 10 pins.
The score for the frame is the total number of pins knocked down, plus bonuses for strikes and spares.
A spare is when the player knocks down all 10 pins in two rolls.
The bonus for that frame is the number of pins knocked down by the next roll.
A strike is when the player knocks down all 10 pins on his first roll.
| class StreamInputStream(private val source: Stream<out InputStream>) : InputStream() { | |
| private val iterator by lazy { | |
| source | |
| .flatMap { | |
| generateSequence { | |
| val result = it.read(); if (result == -1) { | |
| it.close(); null | |
| } else result | |
| }.asStream() |
| plugins { | |
| id 'org.jetbrains.kotlin.jvm' version '1.3.31' | |
| } | |
| apply plugin: 'kotlin-kapt' //optional | |
| group 'io.saagie.playground' | |
| version '1.0-SNAPSHOT' | |
| repositories { |
| [package] | |
| name = "test_multi_runtime" | |
| version = "0.1.0" | |
| authors = ["fteychene <[email protected]>"] | |
| edition = "2018" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| anyhow = "1.0.28" |
| plugins { | |
| kotlin("jvm") version "1.3.72" | |
| kotlin("kapt") version "1.3.41" | |
| } | |
| group = "xyz.fteychene.kotlin.sample" | |
| version = "0.1.0-SNAPSHOT" |
| package mtpcraft.tdd.kata | |
| import kotlin.random.Random | |
| sealed class Cell { | |
| companion object | |
| } | |
| object Dead : Cell() | |
| object Living : Cell() |
| Replaced | Rust replacement | GH |
|---|---|---|
| ls | exa | https://github.com/ogham/exa |
| grep | ripgrep | https://github.com/BurntSushi/ripgrep |
| cat | bat | https://github.com/sharkdp/bat |
| du | dust | https://github.com/bootandy/dust |
| ps | procs | https://github.com/dalance/procs |
| find | fd | https://github.com/sharkdp/fd |
| sed | sd | https://crates.io/crates/sd |
| Search sql like | fselect | https://crates.io/crates/fselect |
| plugins { | |
| id 'org.jetbrains.kotlin.jvm' version '1.4.10' | |
| } | |
| apply plugin: 'kotlin-kapt' | |
| group 'org.example' | |
| version '1.0-SNAPSHOT' | |
| repositories { |
| [package] | |
| name = "lolilol" | |
| version = "0.1.0" | |
| authors = ["fteychene <[email protected]>"] | |
| edition = "2018" | |
| # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
| [dependencies] | |
| lol-core = "0.7.1" |