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
# A series of bash functions to make working with adb commnads easier | |
# Add the following to your .bashrc | |
#if [ -f ~/.adb_functions ]; then | |
# . ~/.adb_functions | |
#fi | |
# List all apps installed on the mobile device | |
alias installed='adb shell pm list packages' | |
# Turn on the show layout bound debug setting |
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/sh | |
#declare -a arr=("./gradlew ktlint" "./gradlew detekt") | |
declare -a arr=() | |
for i in "${arr[@]}" | |
do | |
$i | |
RESULT=$? | |
echo output: $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
# Add the following to your .bashrc | |
#if [ -f ~/.bash_aliases ]; then | |
# . ~/.bash_aliases | |
#fi | |
# Hide all evidence | |
# alias globalThermonuclearWar='rm -fr' | |
alias timestamp='date "+%Y%m%d_%H%M%S"' | |
# Delete everything |
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 org.apache.tools.ant.taskdefs.condition.Os | |
task(OSCheck) << { | |
if (Os.isFamily(Os.FAMILY_WINDOWS)) { | |
println " IS WINDOWS " | |
} else if(Os.isFamily(Os.FAMILY_MAC)) { | |
println " IS MAC " | |
} else if(Os.isFamily(Os.FAMILY_UNIX)) { | |
println " IS UNIX " | |
} else { |
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 plugin: 'java' | |
version = '1.0' | |
jar { | |
manifest { | |
attributes 'Implementation-Title': 'Project Name', | |
'Implementation-Version': version, | |
'Main-Class': 'package.className' | |
} |
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 boolean onKeyDown(int keyCode, KeyEvent event) { | |
Log.d(LOG_TAG, "onKeyDown Keycode: " + keyCode); | |
switch (keyCode) { | |
case KeyEvent.KEYCODE_NAVIGATE_NEXT: | |
// Next gesture - wrist flick up quickly with slow down | |
mTextView.setText("Next"); | |
return true; | |
case KeyEvent.KEYCODE_NAVIGATE_PREVIOUS: |