Skip to content

Instantly share code, notes, and snippets.

View VadimCpp's full-sized avatar

Vadym Kaninskyi VadimCpp

View GitHub Profile
@VadimCpp
VadimCpp / shake-android-device.md
Last active April 12, 2019 14:38
How do I “shake” an Android device to bring up the dev menu to debug my React Native app

During the debugging react-native app on the Andoroid device I need to shake it every time to reload the app. There is a good article on StackOverflow on the topic: how-do-i-shake-an-android-device-bla-bla. Long story short, you can simply execute command in your terminal and avoid shaking real device:

adb shell input keyevent 82

Here I wanna create a shotcut for this long command. Create 'shake-android-device.sh' script:

#!/bin/bash
@VadimCpp
VadimCpp / API.md
Last active March 18, 2019 09:02
Как документировать API

Название метода

<Описание метода API. Тут стоит написать, что делает метод.>

  • URL

    <Собственно запрос>

  • Метод