Skip to content

Instantly share code, notes, and snippets.

View matyapiro31's full-sized avatar

Akira matyapiro31

  • Searching for Job
  • Japan
View GitHub Profile
@matyapiro31
matyapiro31 / call.js
Last active September 20, 2017 07:54 — forked from shallaa/call.js
a.call === Function.prototype.call
//test
#!/bin/bash
function choose_device() {
./adb start-server >/dev/null
./adb devices | tail -n+2 | head -n 1 | { while read dev_id dev_name; do
dev_model="$(./adb -s $dev_id shell cat /system/build.prop | grep ro\.product\.model | cut -d= -f2)"
printf "%s\n%s\n%s\n" "$dev_id" "$dev_name" "$dev_model"
done } | zenity --list --title="Select device" --column="ID" --column="デバイス名" --column="モデル名" |tr -d '\r'
}
#!/bin/sh
# I put all my dev stuff in here
export DEV_PREFIX=$HOME/Dev/
# Don't forget to adjust this to your NDK path
export ANDROID_NDK=${DEV_PREFIX}/android-ndk-r8d/
export CROSS_COMPILE=arm-linux-androideabi