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
restObservable = giphyService.searchGiphy(getGiphyQueryMap("dog")).flatMap(new Func1<GiphySearch, Observable<GiphyGif>>() { | |
@Override | |
public Observable<GiphyGif> call(GiphySearch giphySearch) { | |
return Observable.from(giphySearch.data); | |
} | |
}).zipWith(namesService.getPeople().flatMap(new Func1<List<People>, Observable<Person>>() { | |
@Override | |
public Observable<Person> call(List<People> people) { | |
return Observable.from(people); | |
} |
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
defaults write com.apple.NetworkBrowser DisableAirDrop -bool NO | |
sudo killall Finder |
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
function package { | |
local PCKG=$1 | |
local PID="$(adb shell ps | grep $PCKG | cut -c10-15)" | |
echo "<<<<<>>>>> PID for $PCKG: $PID <<<<<>>>>>" | |
adb logcat | grep $PID | |
} | |
package $1 |
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
if (!Settings.canDrawOverlays(this)) { | |
Intent intent = new Intent(Settings.ACTION_MANAGE_OVERLAY_PERMISSION, | |
Uri.parse("package:" + getPackageName())); | |
startActivityForResult(intent, REQUEST_CODE); | |
} else { | |
// You have the ability to add things to the window manually | |
} |
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
//Regex | |
//Replace 19326 with the PID of your app. | |
([ADEIVW][\/])(.+?)(19326\)\:) |