Skip to content

Instantly share code, notes, and snippets.

View GalvinGao's full-sized avatar
🌏
Creating Awesomeness

GalvinGao GalvinGao

🌏
Creating Awesomeness
View GitHub Profile

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:

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

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 / keybase.md
Created November 28, 2019 23:41
Keybase Verification ;)

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:

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%

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

@GalvinGao
GalvinGao / rule
Last active April 30, 2022 08:58
Wireshark CloudFlare IPv4 Filter Rule
ip.addr eq 173.245.48.0/20 or ip.addr eq 103.21.244.0/22 or ip.addr eq 103.22.200.0/22 or ip.addr eq 103.31.4.0/22 or ip.addr eq 141.101.64.0/18 or ip.addr eq 108.162.192.0/18 or ip.addr eq 190.93.240.0/20 or ip.addr eq 188.114.96.0/20 or ip.addr eq 197.234.240.0/22 or ip.addr eq 198.41.128.0/17 or ip.addr eq 162.158.0.0/15 or ip.addr eq 104.16.0.0/13 or ip.addr eq 104.24.0.0/14 or ip.addr eq 172.64.0.0/13 or ip.addr eq 131.0.72.0/22
"use strict";
// ==UserScript==
// @name Pulsar Auto Labeler
// @namespace https://pulsars.nanosta.rs/*
// @version 0.4
// @description Automatically label pulsars as REJECT based on certain criteria
// @author Galvin Gao
// @match https://pulsars.nanosta.rs/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=pulsars.nanosta.rs
// @grant none
// ==UserScript==
// @name Canvas All Info
// @namespace https://theusaf.github.io
// @version 1.3.1
// @icon https://canvas.instructure.com/favicon.ico
// @copyright 2020-2021, Daniel Lau
// @license MIT
// @description Place all information on a single page (https://canvas.example.com/all or https://example.instructure.com/all)
// @author theusaf
// @include /^https:\/\/canvas\.[a-z0-9]*?\.[a-z]*?\/all\/?(\?.*)?$/