yarn、.npmrc 和私有 npm 仓库

Search for a command to run...
No comments yet. Be the first to comment.
不用(我)配置 iptables 的方案就是好方案

之前一直使用 OpenWrt 旁路由的方式来翻墙,但 OpenWrt 本身不够稳定,并且我长期处于只使用 OpenWrt 其中的一个插件的状态,所以决定开一台虚拟机来体验下使用 Clash 作为透明网关 先给出(从同事那借来的)配置: version: "3" services: # Enable ip_forward - https://askubuntu.com/a/311054 # For Ubuntu Server, you also need to disable syste...

If you login to a vps through ssh and always get warning like me warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_MESSAGES = "en_US.UTF-8", LANG = "en_US.UTF-8" ...
apt update apt-get install software-properties-common add-apt-repository ppa:deadsnakes/ppa apt install -y build-essential asciidoc binutils bzip2 curl gawk gettext git libncurses5-dev libz-dev patch python3.5 python2.7 unzip zlib1g-dev lib32gcc1 l...

写代码的时候我们可能会经常碰到需要在某个元素的动画完成后再执行某些代码的场景,这时,我们就需要用到 transitionend 事件。 使用的方法也相当简单: const listener = () => { // do something... } document.querySelector('#menu').addEventListener('transitionend', listener) 需要注意的两点: 如果 transition 是针对多个属性的,则该事件会被触发多...