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
cmd.add("movie=" + imagePath + " [overlay]; " + | |
"[in] transpose=1 [a]; " + | |
"[a] scale=360:-1 [b]; " + | |
"[b] crop=360:360:" + String.valueOf(cropX) + ":" + String.valueOf(cropY) + " [c]; " + | |
"[c] [overlay] overlay=" + overlayX + ":" + overlayY + " [out]"); |
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 $1 | |
if [ -d $1 ]; then | |
echo "Changing Directory too: " $1 | |
else | |
echo "Directory does not exist" | |
exit 1 | |
fi |
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
public abstract class CompatGlobalLayoutListener implements ViewTreeObserver.OnGlobalLayoutListener { | |
private final View view; | |
public CompatGlobalLayoutListener(@NonNull final View view) { | |
this.view = view; | |
} | |
protected abstract void onGlobalLayoutReady(); |
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
Dependencies: | |
============================================= | |
compile "com.google.guava:guava:19.0" | |
compile 'com.fasterxml.jackson.datatype:jackson-datatype-guava:2.7.3' | |
Deserializer: | |
============================================= |
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
public class TextInputOnKeyChangedListener implements EditText.OnKeyListener { | |
private EditText editText; | |
private OnKeyChangedListener onKeyChangedListener; | |
public interface OnKeyChangedListener { | |
void onKeyUp(String text); | |
void onBackPressed(); |
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
public class PhoneNumberFormatter { | |
private final String simCountryIso; | |
private final Map<String, String> countryCodeMap = Collections.unmodifiableMap( | |
new HashMap<String, String>() {{ | |
put("GB", "44"); | |
put("US", "1"); | |
}}); |
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
public class PhoneNumberFormatter { | |
private final String simCountryIso; | |
private final Map<String, String> countryCodeMap = Collections.unmodifiableMap( | |
new HashMap<String, String>() {{ | |
put("GB", "44"); | |
put("US", "1"); | |
}}); |
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
adb shell setprop gsm.sim.operator.iso-country gb |
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
android { | |
... | |
debug { | |
debuggable true | |
... | |
ext.betaDistributionGroupAliases = "Android-Test" | |
} | |
... | |
project.android.applicationVariants.all { variant -> | |
variant.preBuild.doLast { |
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
public class MaxHeightLinearLayout extends LinearLayout { | |
private int maxHeightDp; | |
public MaxHeightLinearLayout(Context context) { | |
super(context); | |
} | |
public MaxHeightLinearLayout(Context context, AttributeSet attrs) { | |
super(context, attrs); |