Skip to content

Instantly share code, notes, and snippets.

View ShakoHo's full-sized avatar

Shako Ho ShakoHo

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShakoHo
ShakoHo / ProtocolBufferExample.py
Created December 6, 2017 02:57
Use apscheduler to simulate multiple job access same protocol buffer obj and write to file situation
"""apsSimulator.
Usage:
apsSimulator.py [--job-no=<int>]
apsSimulator.py (-h | --help)
Options:
-h --help Show this screen.
--job-no=<int> Specify the concurrent job number. [default: 20]
"""
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ShakoHo
ShakoHo / CalendarYearPost.md
Last active November 14, 2017 02:30
The Actual Input Latency Measurement: cross-browser and close to real user

The Actual Input Latency Measurement: cross-browser and close to real user

background introduction

What is the actual input latency

Based on Google's "Measurement Performance with the RAIL Model", the actual input latency could be considered as an implementation of key metrics of RAIL step.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.