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
@Stable | |
data class AppColors( | |
val subtitleTextColor: Color, | |
val materialColors: Colors, | |
){ | |
val primary: Color | |
get() = materialColors.primary | |
// Add other material colors properties | |
} |
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
video2gif() { | |
ffmpeg -y -i "${1}" -vf fps=${3:-10},scale=${2:-320}:-1:flags=lanczos,palettegen "${1}.png" | |
ffmpeg -i "${1}" -i "${1}.png" -filter_complex "fps=${3:-10},scale=${2:-320}:-1:flags=lanczos[x];[x][1:v]paletteuse" "${1}".gif | |
rm "${1}.png" | |
} | |
record_gif() { | |
if [ -z "$1" ]; then | |
VIDEO_NAME=$(date +%F_%H-%M-%S) |
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
apply from: rootProject.file('read_secrets.gradle') | |
apply plugin: 'com.android.application' | |
.... | |
android { | |
defaultConfig { | |
buildConfigField 'String', 'SOMETHING_SECRET', getEnvVariable('SOMETHING_SECRET') | |
} | |
signingConfigs { |
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 | |
group=`id -g -n` | |
sudo chown root:$group adb | |
sudo chmod 4550 adb | |
sudo ./adb kill-server |
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
wifi_adb() { | |
PORT="$1" | |
if [ -z "$PORT" ]; then | |
PORT="5" | |
fi | |
re='^[0-9]+$' | |
if ! [[ $PORT =~ $re ]] ; then | |
echo "error: Not a number" >&2; return 1 | |
fi |
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 | |
echo "Current branch: $GIT_BRANCH" | |
MAIN_SNAPSHOT_BRANCH="origin/develop" | |
GRADLE_FILE="app/build.gradle" | |
CURRENT_COMMIT_HASH=$(git rev-parse --short HEAD) | |
IS_BETA_SNAPSHOT_BUILD=false | |
if [[ $GIT_BRANCH == $MAIN_SNAPSHOT_BRANCH ]] ; then # Cheks if this build is a beta release |
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
# | |
# Automatically generated file; DO NOT EDIT. | |
# OpenWrt Configuration | |
# | |
CONFIG_MODULES=y | |
CONFIG_HAVE_DOT_CONFIG=y | |
# CONFIG_TARGET_ppc44x is not set | |
# CONFIG_TARGET_realview is not set | |
# CONFIG_TARGET_arm64 is not set | |
# CONFIG_TARGET_sunxi is not set |
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 java.util.Date; | |
import java.util.concurrent.TimeUnit; | |
import rx.Observable; | |
import rx.Subscriber; | |
import timber.log.Timber; | |
/** | |
* Created by mirland on 26/02/16. | |
*/ |