Skip to content

Instantly share code, notes, and snippets.

View rtanglao's full-sized avatar
😃
you rock :-)

Roland Tanglao rtanglao

😃
you rock :-)
View GitHub Profile
@rtanglao
rtanglao / get-ontario-covid19-update.sh
Last active November 2, 2020 02:21
how to get covid 19 html using curl, jq and the ontario unofficial API that @roryrooster on twitter discovered
# use sed on WSL and linux instead of gsed
curl "https://api.ontario.ca/api/drupal/page%2Fhow-ontario-is-responding-covid-19?fields=nid,field_body_beta,body" | jq ".body.und[0].value" | gsed 's/\\n/\n/g; s/\\t/\t/g' >cleaned2-ontario-COVID-19-daily-summary.html
curl "https://support.mozilla.org/en-US/contributors/kb-overview?product=firefox" | \
pup '#kb-overview-table tbody tr td:nth-child(1) a[href*="/en-US/kb/"]' | head -1   
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100  320k  100  320k    0     0  89264      0  0:00:03  0:00:03 --:--:-- 89240
<a href="/en-US/kb/get-started-firefox-overview-main-features">

The following translation is courtesy of Gary Kwong. Thanks Gary!

English:

I would like a B meal with cold milk tea with sweet condensed milk. By the way, I’m sorry, I don’t speak Chinese. I am a Canadian of Filipino heritage.

Cantonese:

唔該,我想要個B餐,要杯凍奶茶(煉奶)。唔好意思,我唔識講中文,我係菲律賓裔加拿大人。

@rtanglao
rtanglao / windows10arm64-yoga-c630.md
Last active September 12, 2019 01:34
wsl1-not-working-windows10-arm64-build-18980-lenovo-yoga-c630

Keybase proof

I hereby claim:

  • I am rtanglao on github.
  • I am rtanglao (https://keybase.io/rtanglao) on keybase.
  • I have a public key ASCzFDnFUGNiGuQlc4_nYFxszM32BJzpjfAoOeLqasb58Qo

To claim this, I am signing this object:

A-Frame Version: 0.7.0 (Date 2018-03-13, Commit #1e49f5e) index.js:86
three Version: github:brianpeiris/three.js#r90-culling-fix-built index.js:87
WebVR Polyfill Version: ^0.9.40 index.js:88
THREE.WebGLRenderer 90 three.js:20906:2
core:schema:warn Default value `0 1 0` does not match type `vec3` in component `teleport-controls` browser.js:111:7
THREE.WebGLRenderer 90 three.js:20906:2
THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead. three.js:45186:4
THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead. three.js:45199:4
core:a-assets:warn Cross-origin element (e.g., <img>) was requested without `crossorigin` set. A-Frame will re-request the asset with `crossorigin` attribute set. Please set `crossorigin` on the element (e.g., <img crossorigin="anonymous">) https://assets-prod.reticulum.io/assets/hud/tooltip.9-0d85679e9995e14e2c8c1d8e996eb43a.png browser.js:111:7
core:a-assets:warn Cross-origin element (e.g., <im
Verifying my Blockstack ID is secured with the address 1G7oFwQeoNjiZLoDtUmdrCxpfMGChP1TUg https://explorer.blockstack.org/address/1G7oFwQeoNjiZLoDtUmdrCxpfMGChP1TUg
@rtanglao
rtanglao / 0-howto.md
Last active September 6, 2017 02:35
05sept2017-how-to-make-bluetooth-work-on-gpd-pocket
@rtanglao
rtanglao / 0-reply to AAQ-1166563.md
Last active July 7, 2017 19:52
06july2017-replies-1166563