I hereby claim:
- I am dayanruben on github.
- I am dayanruben (https://keybase.io/dayanruben) on keybase.
- I have a public key whose fingerprint is C83F 99D3 E3FA 0915 1D36 B99C 0C18 C12A 8813 8109
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
find ~/.gradle -type f -atime +30 -delete | |
find ~/.gradle -type d -mindepth 1 -empty -delete |
class Base62 { | |
val order = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
val base = order.length | |
fun encode(number: Int): String { | |
var num = number | |
var res = "" | |
while (num > 0) { | |
res = "${order[num % base]}$res" |
import SwiftUI | |
extension View { | |
func onChangeVisibility(perform action: @escaping (Bool) -> Void) -> some View { | |
modifier(BecomingVisible(action: action)) | |
} | |
} | |
private struct BecomingVisible: ViewModifier { | |
@State var action: ((Bool) -> Void) |