This file contains hidden or 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
#!/bin/bash | |
cd /opt/Telegram | |
function check-vpn { | |
echo 'vpn?' | |
nordvpn status | grep Connected | |
return $? | |
} | |
function check-single { |
This file contains hidden or 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
package algo | |
import toInt | |
import kotlin.math.absoluteValue | |
class AVL<K : Comparable<K>, V : Any> { | |
private var Node?.diff | |
get() = this?._diff ?: 0 | |
set(value) { |