This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://vscode-update.azurewebsites.net/latest/linux-deb-x64/stable -O /tmp/code_latest_amd64.deb | |
sudo dpkg -i /tmp/code_latest_amd64.deb |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onHold(el, cb) { | |
let interval; | |
el.addEventListener('mousedown', () => interval = setInterval(() => requestAnimationFrame(cb), 10)); | |
el.addEventListener('mouseup', () => clearInterval(interval)); | |
el.addEventListener('mouseleave', () => clearInterval(interval)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function onHold(el, cb) { | |
let interval; | |
el.addEventListener('mousedown', () => interval = setInterval(() => requestAnimationFrame(cb), 10)); | |
el.addEventListener('mouseup', () => clearInterval(interval)); | |
el.addEventListener('mouseleave', () => clearInterval(interval)); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Ensure the browser agent is present on every page you want to monitor! | |
* | |
* Refs: | |
* https://forum.newrelic.com/s/hubtopic/aAX8W0000008eQTWAY/how-to-import-newrelic-for-react-app-on-typescript | |
* https://docs.newrelic.com/docs/browser/browser-monitoring/installation/install-browser-monitoring-agent/ | |
* https://www.typescriptlang.org/docs/handbook/declaration-files/templates/global-d-ts.html | |
* | |
* Steps: | |
* Enable browser agent on the page to be monitored |