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
infix fun shr(n: Int) { | |
require(n >= 0) { "'n' must be >= 0" } | |
if (n == 0 || words.isEmpty()) { return } | |
val step = n / 64 | |
val shift = n % 64 | |
if (shift == 0 && step == 0) { return } | |
for (i in words.indices) { | |
words[i] = when { | |
i < words.size - 1 - step -> { |
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
# https://askubuntu.com/questions/1156167/unable-to-get-wifi-adapter-working-clean-19-04-install-network-unclaimed | |
sudo apt update | |
sudo apt install git build-essential | |
git clone https://git.kernel.org/pub/scm/linux/kernel/git/iwlwifi/backport-iwlwifi.git | |
cd backport-iwlwifi/ | |
make defconfig-iwlwifi-public | |
sed -i 's/CPTCFG_IWLMVM_VENDOR_CMDS=y/# CPTCFG_IWLMVM_VENDOR_CMDS is not set/' .config | |
make -j4 | |
sudo make install | |
sudo modprobe iwlwifi |
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
package androidx.core.app | |
abstract class JobIntentServiceInternal: JobIntentService() { | |
/** | |
* Returns a GenericWorkItem that will fail silently to complete | |
* if it has been cancelled while executing inside | |
* the JobIntentService$CommandProcessor#doInBackground loop | |
* or if dequeue fails | |
*/ |
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
package fr.pixelprose.count.generator; | |
import java.util.Iterator; | |
import java.util.LinkedList; | |
import java.util.List; | |
import java.util.Set; | |
import static com.google.common.base.Preconditions.checkArgument; | |
import static java.lang.Math.min; |
OlderNewer