笔记本

fuser -n tcp 23456   //????????????
lsof -i:23456       //????????????

'export PATH=$PATH:/home/ldh/node-v6.9.1-linux-x64/bin'>> ~/.bashrc

vscode 5812d4380e8636bb9816e30f9ad103adbeaabd2b

Marketplace (publish) 1year g2a3fyqmtz3w5hr37jkae2kjobu7axqgdb7nek3jnjoqvkfek4la

vscode

gist id 6ad3fe96e97570fba9b23fdd1e27328e

gist token ad80d9cde11eddec18279b13d56647a273dd6890

sudo apt-get  install  build-essential  # 安装gcc g++

export http_proxy=socks5://127.0.0.1:1080
export https_proxy=socks5://127.0.0.1:1080

# depot_tools
export PATH=$PATH:$HOME/softwares/depot_tools

alias hp="http_proxy=http://127.0.0.1:8124 && https_proxy=http://127.0.0.1:8124"
alias ehp="export http_proxy=http://127.0.0.1:8124 && export https_proxy=http://127.0.0.1:8124"

解决apt-get中Unmet dependencies问题

sudo apt --fix-broken install  
sudo apt-get update  
sudo apt-get upgrade  


function arrangement(n, num) {
  let res = [];
  select(n, num, [])
  function select(n, num, selected) {
    if (num === 0) { res.push(selected.slice(0)); return; }
    for (let i = 0; i < n; i++) {
      if (selected.includes(i)) {
        continue;
      }
      selected.push(i)
      select(n, num - 1, selected);
      selected.pop(i)
    }
  }
  return res;
}

function combination(n, num) {
  let res = [];
  select(n, num, [], 0)
  function select(n, num, selected, index) {
    if (num === 0) { res.push(selected.slice(0)); return; }
    for (let i = index; i < n; i++) {
      if (selected.includes(i)) {
        continue;
      }
      selected.push(i)
      select(n, num - 1, selected, i + 1);
      selected.pop(i)
    }
  }
  return res;
}

./build/install-build-deps.sh –no-chromeos-fonts

export const milliFormat = (() => {
    const DIGIT_PATTERN = /(^|\s)-?\d+(?=\.?\d*($|\s))/g;
    const MILLI_PATTERN = /(?=(?!\b)(\d{3})+$)/g;

    return (input) => input && input.toString()
        .replace(DIGIT_PATTERN, (m) => m.replace(MILLI_PATTERN, ','));
})();

670120plL