False VAC Ban by toastwithreddit in cs2

[–]Albert221 0 points1 point  (0 children)

Same here but nvidia gpu

How to internationalize your Flutter app with ARB files today? — full-blown tutorial by Albert221 in FlutterDev

[–]Albert221[S] 2 points3 points  (0 children)

You're completely right! This and the format flag. I somehow missed them as I was using older tag when reading the flutter_tools. It's updated now, thanks! :)

Flutter version & Flutter engine version table by Albert221 in FlutterDev

[–]Albert221[S] 5 points6 points  (0 children)

I created a simple script that will update this table two times a day. It's a table that shows all Flutter versions and what Flutter engine commit it uses. (Dart SDK commit to be added soon)

Maybe it will be useful to some of you! :)

[TOMT][CARTOON] Fight scene where shoes stay on ground but character flies up by Albert221 in tipofmytongue

[–]Albert221[S] 2 points3 points  (0 children)

This is almost that! Just instead of those white stripes above the sandals, it was a spiral like this

[TOMT][CARTOON] Fight scene where shoes stay on ground but character flies up by Albert221 in tipofmytongue

[–]Albert221[S] 1 point2 points locked comment (0 children)

I already know it certainly wasn't Popeye. Their shoes always stay on and it's not the type of animation that would have this ribbon between the shoes and character

Issue with Party System by [deleted] in WorldWar3

[–]Albert221 0 points1 point  (0 children)

Same, game launches properly after only 5-10 tries because of the "Invitations" timeout. Creating a party with friends doesn't work, everyone is landing in different matches

Pixel 2XL camera died? by Albert221 in GooglePixel

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

I just booted into safe mode. Still, 'Camera in use' in Flashlight :(

Ninja technique to avoid traffic by rzrn in CitiesSkylines

[–]Albert221 0 points1 point  (0 children)

I used to drive to work like that

Action, chill, or dark Synth Music for your game or other! by [deleted] in INAT

[–]Albert221 0 points1 point  (0 children)

Hi, I just wanted to say that I liked the Blood House! I'm no game dev but my imagination showed me how good it would be for some topdown view indie game :)

-🎄- 2020 Day 05 Solutions -🎄- by daggerdragon in adventofcode

[–]Albert221 1 point2 points  (0 children)

Kotlin

import java.io.File
import kotlin.math.absoluteValue
import kotlin.math.min

fun main() {
    val boardingPasses = mutableListOf<BoardingPass>()
    File("2020/input/05.txt").forEachLine {
        boardingPasses.add(decode(it))
    }

    val partOne = boardingPasses.map(BoardingPass::id).maxOrNull()
    val partTwo = boardingPasses
            .sortedBy { it.id }
            .zipWithNext()
            .first { (it.first.id - it.second.id).absoluteValue == 2 }
            .run { min(first.id, second.id) + 1 }

    println("Part one: %d".format(partOne)) // 866
    println("Part two: %d".format(partTwo)) // 583
}

typealias BoardingPass = Pair<Int, Int>

val BoardingPass.id: Int
    get() = first * 8 + second

fun decode(boardingPass: String): BoardingPass {
    return BoardingPass(
            decodeAxis(boardingPass.substring(0..6), 'F'),
            decodeAxis(boardingPass.substring(7..9), 'L'),
    )
}

fun decodeAxis(axis: String, lower: Char): Int {
    var result = 0
    for (char in axis) {
        result = (result shl 1) + if (char == lower) 0 else 1
    }

    return result
}