zoukankan      html  css  js  c++  java
  • 备份的一些小tip

    // npm官方镜像
    npm config set registry=http://registry.npmjs.org
    
    // 亚马逊S3 host
    219.76.4.4 github-cloud.s3.amazonaws.com
    // 修改gitingonre后重新版本控制
    git rm -r --cached .
    git add .
    // .npmrc各种国内镜像
    registry=https://registry.npm.taobao.org
    disturl=https://npm.taobao.org/dist
    chromedriver_cdnurl=http://cdn.npm.taobao.org/dist/chromedriver
    operadriver_cdnurl=http://cdn.npm.taobao.org/dist/operadriver
    phantomjs_cdnurl=http://cdn.npm.taobao.org/dist/phantomjs
    fse_binary_host_mirror=https://npm.taobao.org/mirrors/fsevents
    sass_binary_site=http://cdn.npm.taobao.org/dist/node-sass
    electron_mirror=http://cdn.npm.taobao.org/dist/electron/
    // Prettier configuration
    
    // https://prettier.io/docs/en/configuration.html
    module.exports = {
      singleQuote: true,
      trailingComma: 'all',
      jsxBracketSameLine: true,
      arrowParens: 'always'
    };
    // 杀死对应包的后台进程
    adb shell am kill [packageName]
     
    // 查询所有包名
    adb shell pm list packages
     
    // 查询所有包名对应的apk名字
    adb shell pm list packages -f
    // 汉字与Unicode转码
    function toUnicode(data) {
       if(data == '') return '';
       var str =''; 
       for(var i=0;i<data.length;i++) {
          str+="\u"+parseInt(data[i].charCodeAt(0),10).toString(16);
       }
       return str;
    }
    
    function toChinese(data) {
        if(data == '') return '';
        data = data.split("u");
        var str ='';
        for(var i=0;i<data.length;i++) {
            str+=String.fromCharCode(parseInt(data[i],16).toString(10));
        }
        return str;
    }
  • 相关阅读:
    win10系统u盘安装单个文件超过4g解决办法
    单片机下使用IIC
    uart
    socket
    Linux中 ./configure --prefix命令
    linux下配置安装python3
    linux下的dhcp服务器实现
    安卓出现错误: java.lang.ClassCastException: android.widget.TextView cannot be cast to android.widget.EditText
    C语言基础02
    C语言基础01
  • 原文地址:https://www.cnblogs.com/smileSmith/p/7729950.html
Copyright © 2011-2022 走看看