Skip to content

Instantly share code, notes, and snippets.


imgg GalvinGao

Block or report user

Report or block GalvinGao

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
GalvinGao /
Created Jun 19, 2019
Mapping of JavaScript KeyCode to Android KeyCode (adb shell input keyevent)


[!] Notice that there's three special key codes: __Power, __VolumeUp and __VolumeDown.

Additional KeyCode

{ "@": 77 }  // use keyevent.key === '@' to detect if the user is inputting an '@' character
GalvinGao /
Created May 14, 2019
Stop asking me for commenting on things i've bought - "they were usable", that's it.
import random
["宝贝", "非常好 完美 太棒了 爱死了 喜欢 是正品"],
["价格", "不错 便宜 实惠 舒服 不高 刚刚好"],
["质量", "优良 完美 上乘 很棒 很好 不错 挺好的 有保障"],
["快递", "很不错 很快 特别快 也很快 配送快捷"],
["包装", "的特别好 得很漂亮 很严实 得很好"],
["卖家", "人特别好 说话好听 负责 有经验 很强 很负责"],
import ev3dev.ev3 as ev3
import logging
import random
import _thread
# === [initiation] === #
logging.basicConfig(level=logging.INFO, format='%(asctime)s $ %(name)s $ %(thread)d | [%(levelname)s]: %(message)s ')
logger = logging.getLogger(__name__)

Keybase proof

I hereby claim:

  • I am GalvinGao on github.
  • I am galving ( on keybase.
  • I have a public key whose fingerprint is 323C E813 80CE A0DE 9107 85E6 44E8 39DA D927 5F4D

To claim this, I am signing this object:

You can’t perform that action at this time.