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
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
https://github.com/avianey/displaylink-debian | |
To avoid DisplayLinkManager process consume to much CPU : | |
as a root user create a file 21-displaylink.conf under: | |
/usr/share/X11/xorg.conf.d/ | |
with the following content for Ubuntu: |
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
TabLayout tabLayout = findViewById(R.id.tabs); | |
if (tabLayout != null) { | |
tabLayout.setupWithViewPager( | |
pager, | |
false // avoid listen for change of items in the adapter | |
); | |
try { | |
// Add custom tabs with managed click handler | |
Method m = tabLayout.getClass().getDeclaredMethod("createTabView", TabLayout.Tab.class); | |
m.setAccessible(true); |
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
class SampleCode { | |
public static void main(String[] args) { | |
// TODO | |
} | |
} |
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
java -jar apktool.jar d 321.apk | |
java -jar apktool.jar b 321 -o 323.apk | |
jarsigner -verbose -sigalg SHA1withRSA -digestalg SHA1 -keystore ./your.keystore 323.apk alias | |
[android-sdk]/build-tools/27.0.2/zipalign -v 4 323.apk 323-aligned.apk |
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
Make your Code Cleaner with Decorators | |
* https://medium.com/@NetanelBasal/javascript-make-your-code-cleaner-with-decorators-d34fc72af947#.9gq7z3rk4 | |
Making Magic with WebSockets and CSS3 | |
* https://medium.com/outsystems-engineering/making-magic-with-websockets-and-css3-ec22c1dcc8a8#.h52dbfbrq |
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; |
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
import com.badlogic.gdx.ApplicationListener; | |
import com.badlogic.gdx.Gdx; | |
import com.badlogic.gdx.assets.AssetManager; | |
import com.badlogic.gdx.graphics.GL20; | |
import com.badlogic.gdx.graphics.g2d.TextureAtlas; | |
import com.badlogic.gdx.scenes.scene2d.Stage; | |
import com.badlogic.gdx.scenes.scene2d.ui.Image; | |
import com.badlogic.gdx.scenes.scene2d.ui.Label; | |
import com.badlogic.gdx.scenes.scene2d.ui.Skin; | |
import com.badlogic.gdx.scenes.scene2d.ui.Table; |
NewerOlder