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
#!/usr/bin/env bash | |
PYTHONPATH=$(readlink -f "$(pwd)") | |
export PYTHONPATH | |
DIR="$( cd "$( dirname "$0" )" && pwd )" | |
echo "$PYTHONPATH" | |
port=8080 |
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
#!/bin/bash | |
set -e | |
CONFIG=$@ | |
for line in $CONFIG; do | |
eval "$line" | |
done | |
AUTH="X-API-Token: $token" | |
CONTENT_TYPE=application/vnd.android.package-archive |
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
#!/bin/bash | |
for d in ./*/; | |
do | |
result=$(cloc $d --match-d='/java/' --json | jq '. | {total: .SUM.code, kotlin: .Kotlin.code, java: .Java.code}' ) | |
if [ -n "$result" ] | |
then | |
total=$(jq '.total' <<< $result) | |
kotlin=$(jq '.kotlin' <<< $result) |
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
private static Pair<String, CodecCapabilities> getMediaCodecInfoInternal(CodecKey key, | |
MediaCodecListCompat mediaCodecList) { | |
String mimeType = key.mimeType; | |
int numberOfCodecs = mediaCodecList.getCodecCount(); | |
boolean secureDecodersExplicit = mediaCodecList.secureDecodersExplicit(); | |
// Note: MediaCodecList is sorted by the framework such that the best decoders come first. | |
Log.e("!!!", " --------- secure explicit? : " + secureDecodersExplicit); | |
for (int i = 0; i < numberOfCodecs; i++) { | |
MediaCodecInfo info = mediaCodecList.getCodecInfoAt(i); |
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
@Override | |
public void onBind(NetworkStatus networkStatus) { | |
button.setEnabled(networkStatus.isAvailable()); | |
} | |
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
@Override | |
public void onConnect() { | |
button.setEnabled(true); | |
} | |
@Override | |
public void onDisconnect() { | |
button.setEnabled(false); | |
} |