Skip to content

Instantly share code, notes, and snippets.

View askeing's full-sized avatar

Askeing Yen (fyen) askeing

View GitHub Profile
@askeing
askeing / 2017-09-20 previous 25 days
Last active September 22, 2017 03:24
local test
(.env-python)Askeings-MacBook-Pro:Hasal Askeing$ python tools/backfill_agent.py --backfill
Current Platform: windows8-64
================
* Backfill mode *
================
Start querying data... might takes a while!
Starting query result ... 84/84
Query result done.
Starting output to backfill.csv ...
Output to backfill.csv done.
@askeing
askeing / exercises-1.js
Created July 20, 2017 08:40
exercises of js-and-dom-for-gecko-hackers-talk
/*
Source: https://github.com/mikeconley/js-and-dom-for-gecko-hackers-talk
site: https://askeing.github.io/js-and-dom-for-gecko-hackers-talk/
slide-64
*/
function Shape({ x, y }) {
this._x = x;
this._y = y;
}
>>> data = '<option value="TYO">Tokyo (Haneda/Narita)</option><option value="OSA">Osaka (Itami/Kansai)</option><option value="SPK">Sapporo (New Chitose/Okadama)</option><option value="NGO">Nagoya (Chubu/Komaki)</option><option value="FUK">Fukuoka</option><option value="OKA">Okinawa (Naha)</option><option value="AXT">Akita</option><option value="AXJ">Amakusa</option><option value="ASJ">Amamioshima</option><option value="AOJ">Aomori</option><option value="AKJ">Asahikawa</option><option value="HKD">Hakodate</option><option value="HNA">Hanamaki</option><option value="HIJ">Hiroshima</option><option value="ISG">Ishigaki</option><option value="IZO">Izumo</option><option value="KOJ">Kagoshima</option><option value="KKX">Kikaijima</option><option value="KTD">Kitadaito</option><option value="KKJ">Kitakyushu</option><option value="KCZ">Kochi</option><option value="KMQ">Komatsu</option><option value="KMJ">Kumamoto</option><option value="UEO">Kumejima</option><option value="KUH">Kushiro</option><option value="MMJ">Matsumo
>>> # Soultion 1
...
>>> data = {
... "id-1": {
... "p": "w",
... "t": "foo",
... "b": "f"
... },
... "id-2": {
... "p": "w",
@askeing
askeing / Hasal PATH on Windows7
Last active May 16, 2017 03:22
The Hasal PATH env on Windows 7
%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;C:\Miniconda2\envs\hasal-env;C:\Miniconda2\envs\hasal-env\Library\mingw-w64\bin;C:\Miniconda2\envs\hasal-env\Library\usr\bin;C:\Miniconda2\envs\hasal-env\Library\bin;C:\Miniconda2\envs\hasal-env\Scripts;C:\Program Files\Google\Chrome\Application\;C:\Program Files\Git\bin;C:\Program Files (x86)\Google\Chrome\Application\;C:\Program Files\Mozilla Firefox;C:\Program Files (x86)\Mozilla Firefox;C:\Program Files\Nightly;C:\Program Files (x86)\Nightly;C:\Miniconda2\Scripts\;C:\Miniconda2\;c:\Users\user\Hasal\ffmpeg\bin\;\Scripts;
@askeing
askeing / report-input-latency-win7-obs-ffmpeg.ipynb
Created April 20, 2017 06:45
Win7 OBS/FFmpeg 90FPS comparison
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@askeing
askeing / report-input-latency-obs-win10-win7-fps-90-60.ipynb
Created April 19, 2017 04:04
2017-04-18 Win10 OBS / Win7 FFmpeg with 60 /90 FPS
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@askeing
askeing / report-input-latency-obs.ipynb
Last active April 19, 2017 04:03
2017-04-14 OBS (22 times) win10 90fps
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
# ref: https://docs.python.org/2/distutils/packageindex.html
# 1st run
$ python setup.py register
# 1~nth run
$ python setup.py sdist upload
// inject: https://github.com/eligrey/FileSaver.js/blob/master/FileSaver.js
var downloadBtnDiv = document.getElementsByClassName("profileSharingProfileDownloadButton")[0];
var downloadBtn = downloadBtnDiv.childNodes[0].childNodes[0];
downloadBtn.click();
var downloadLinks = document.getElementsByClassName("profileSharingDownloadLink");
var firstDownloadLinks = downloadLinks[0];
var downloadObjURL = firstDownloadLinks.href;