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 | |
server="raspberrypi" | |
devicePort=5555 | |
# Function to display the menu | |
display_menu() { | |
clear | |
echo "===== Connect to ADB device =====" | |
for ((i=0; i<${#options[@]}; i++)); do |
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
initscript { | |
repositories { | |
jcenter() | |
} | |
dependencies { | |
classpath "com.instamotor:mirakle:1.3.2" | |
} | |
} | |
apply plugin: Mirakle |
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
## android general build aliases | |
alias installDebug='adb install -r app/outputs/apk/<your_build_variant_dir>' | |
alias runDebug='adb shell am start -n <application_id>/<launch_activity>' | |
alias build='./gradlew assmeble<YourVariant> && installDebug && runDebug' | |
alias cleanBuild='./gradlew clean assmeble<YourVariant> && installDebug && runDebug' | |
## Mainframer aliases | |
alias mf='./mainframer.sh' |
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
src |
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
build |
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
.idea/* | |
*.iml | |
*.DS_Store | |
local.properties | |
.git |
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
remote_machine=mainframer | |
local_compression_level=1 | |
remote_compression_level=5 |
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
Host * | |
UseKeychain yes | |
AddKeysToAgent yes | |
IdentityFile ~/.ssh/id_rsa | |
Host mainframer | |
User <username_on_remote_machine> | |
HostName <remote_machiche_location> | |
Port 22 | |
IdentityFile ~/.ssh/id_rsa.pub |
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
export ANDOROID_HOME=/usr/lib/android-sdk | |
export ANDROID_SDK_ROOT=/usr/lib/android-sdk |
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
#include <Arduino.h> | |
#include "Timer.h" | |
int moistureSensorPin = A0; | |
const int SENSOR_EN_PIN = 13; | |
#define SAMPLE_PERIOD 10000 // Spacing between sample extraction in miliseconds | |
Timer timer; |
NewerOlder