Skip to content

Instantly share code, notes, and snippets.

Avatar
🐧
Developing Penguin Statistics

GalvinGao GalvinGao

🐧
Developing Penguin Statistics
View GitHub Profile
View 📊 Weekly development breakdown
Vue.js 7 hrs 44 mins ██████████▎░░░░░░░░░░ 48.8%
JavaScript 2 hrs 37 mins ███▍░░░░░░░░░░░░░░░░░ 16.6%
JSON 2 hrs 23 mins ███▏░░░░░░░░░░░░░░░░░ 15.1%
CSS 1 hr 26 mins █▉░░░░░░░░░░░░░░░░░░░ 9.1%
HTML 31 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.3%
@GalvinGao
GalvinGao / keybase.md
Created Nov 28, 2019
Keybase Verification ;)
View keybase.md

Keybase proof

I hereby claim:

  • I am galvingao on github.
  • I am galving (https://keybase.io/galving) on keybase.
  • I have a public key ASDnbXQG59Kt4v1sJlfavqwF6e1FvUiARZEURILIYcgWfQo

To claim this, I am signing this object:

@GalvinGao
GalvinGao / README.md
Created Jun 19, 2019
Mapping of JavaScript KeyCode to Android KeyCode (adb shell input keyevent)
View README.md

Mapping

[!] 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
GalvinGao / haoping.py
Created May 14, 2019
Stop asking me for commenting on things i've bought - "they were usable", that's it.
View haoping.py
import random
PAIRS = [
["宝贝", "非常好 完美 太棒了 爱死了 喜欢 是正品"],
["价格", "不错 便宜 实惠 舒服 不高 刚刚好"],
["质量", "优良 完美 上乘 很棒 很好 不错 挺好的 有保障"],
["快递", "很不错 很快 特别快 也很快 配送快捷"],
["包装", "的特别好 得很漂亮 很严实 得很好"],
["卖家", "人特别好 说话好听 负责 有经验 很强 很负责"],
]
View robot_soccer.py
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__)
View keybase.md

Keybase proof

I hereby claim:

  • I am GalvinGao on github.
  • I am galving (https://keybase.io/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.