Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Making Awesome Things

GalvinGao GalvinGao

👨‍💻
Making Awesome Things
View GitHub Profile
View README.md

Penguin Statistics - Enable Debug

This is a very tiny snippet of userscript that allows the one to enable debug features on the production version of Penguin Statistics website.

Limitations

This snippet may NOT be distributed through any public file or code sharing services such as GreasyFork or other places on GitHub. This snippet is releasing under only a personal attribution of myself :D

View 📊 Weekly development breakdown
Vue.js 9 hrs 37 mins █████████▌░░░░░░░░░░░ 45.7%
JavaScript 6 hrs 46 mins ██████▊░░░░░░░░░░░░░░ 32.1%
Go 2 hrs 40 mins ██▋░░░░░░░░░░░░░░░░░░ 12.7%
YAML 59 mins ▉░░░░░░░░░░░░░░░░░░░░ 4.7%
HTML 18 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.4%
@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: