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
<scheme name="AngryByte-Dark" version="142" parent_scheme="Darcula"> | |
<metaInfo> | |
<property name="created">2020-12-24T10:53:24</property> | |
<property name="ide">idea</property> | |
<property name="ideVersion">2020.3.0.0</property> | |
<property name="modified">2020-12-24T10:53:35</property> | |
<property name="originalScheme">AngryByte-Dark</property> | |
</metaInfo> | |
<colors> | |
<option name="ADDED_LINES_COLOR" value="446c17" /> |
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 util | |
import at.favre.lib.bytes.Bytes | |
import java.nio.ByteBuffer | |
import java.security.Provider | |
import java.security.SecureRandom | |
import javax.crypto.Cipher | |
import javax.crypto.spec.GCMParameterSpec | |
import javax.crypto.spec.SecretKeySpec |
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
This is used for my blog post about publishing Android apps. Start reading here: | |
https://angrybyte.me/post/174861019530/android-libraries-how-to-1 |
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 Solution { | |
public int solution(int[] A) { | |
// false inputs | |
if (A == null || A.length == 0) { | |
return -1; | |
} | |
// 1-length array | |
if (A.length == 1) { |
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 me.angrybyte.coloringdemo; | |
/** | |
* IMPORTANT NOTICE | |
* | |
* This is now a part of SillyAndroid https://github.com/milosmns/silly-android, | |
* with new fixes and improvements. | |
*/ |
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 me.angrybyte.lifecycle; | |
import android.app.Activity; | |
import android.os.Bundle; | |
import android.os.PersistableBundle; | |
import android.support.v7.app.AppCompatActivity; | |
/** | |
* <p> | |
* A simple, <i>hacky</i> solution to Android's Activity Lifecycle which has no guaranteed invocation of {@link Activity#onStop()} and |