This file contains hidden or 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
| registry="https://registry.npm.taobao.org" | |
| disturl="https://npm.taobao.org/dist" | |
| nvm_nodejs_org_mirror="http://npm.taobao.org/mirrors/node" | |
| nodejs_org_mirror="http://npm.taobao.org/mirrors/node" | |
| sass_binary_site="http://npm.taobao.org/mirrors/node-sass" | |
| electron_mirror="http://npm.taobao.org/mirrors/electron/" | |
| SQLITE3_BINARY_SITE="http://npm.taobao.org/mirrors/sqlite3" | |
| profiler_binary_host_mirror="http://npm.taobao.org/mirrors/node-inspector/" | |
| node_inspector_cdnurl="https://npm.taobao.org/mirrors/node-inspector" | |
| selenium_cdnurl="http://npm.taobao.org/mirrors/selenium" |
This file contains hidden or 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
| #### There be | |
| There be+名词主语(人或物)+地点 主要用来表示“人或事物的存在”或“某地有某物” | |
| ##### 一般用法 | |
| ###### 一般: | |
| 当be后面接的是单数可数名词,则采用is;当be后面接的是复数可数名词,则采用are。如: | |
| 1. There is a man under the tree. | |
| 2. There are some apples on the table. |
This file contains hidden or 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
| import React from 'react'; | |
| export type AntiMissingProps = { | |
| once?: boolean; | |
| timeout?: number; | |
| eventName?: string; | |
| }; | |
| const defaultOption = { eventName: 'onClick', timeout: 1000, once: false }; |
This file contains hidden or 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
| <code_scheme name="Default" version="173"> | |
| <HTMLCodeStyleSettings> | |
| <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" /> | |
| </HTMLCodeStyleSettings> | |
| <JSCodeStyleSettings version="0"> | |
| <option name="FORCE_SEMICOLON_STYLE" value="true" /> | |
| <option name="SPACE_BEFORE_FUNCTION_LEFT_PARENTH" value="false" /> | |
| <option name="USE_DOUBLE_QUOTES" value="false" /> | |
| <option name="FORCE_QUOTE_STYlE" value="true" /> | |
| <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" /> |
This file contains hidden or 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
| server { | |
| listen 80; # 监听80端口 | |
| server_name your_domain; # 监听的域名 | |
| # 挂载的应用1 | |
| # ^~ 表示匹配后不再向下寻找 | |
| location ^~ /app1 { | |
| alias /data/app1; # 应用所在文件地址, alias 表示所有查询以对应的相对路径开始进行 | |
| index index.html inde.htm; # 默认的 index 文件 | |
| try_files $uri $uri/ /index.html =404 # 尝试寻找对应的文件. 根据 /app1/xxx 中的 /alias/xxx 进行查询匹配, 若未匹配到 返回 /index.html 若无 则 返回 404状态 |
This file contains hidden or 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
| # If you come from bash you might have to change your $PATH. | |
| # export PATH=$HOME/bin:/usr/local/bin:$PATH | |
| function bash_center_print { | |
| strlen=${#1} | |
| blanklen=$(((COLUMNS - strlen) / 2)) | |
| echo "$(tput cuf $blanklen) $1" | |
| } | |
| function bash_center_print_red { |
This file contains hidden or 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
| 1. 先横向划分大块, 再细化问题内容 | |
| 2. 先观点, 后分类再概括 | |
| 论, 证, 类, 比 | |
| 论: 结论先行 | |
| 证: 以上统下 (理由应要支撑结论, 结论需要概括理由) | |
| 类: 归纳分类 | |
| 相互独立不重叠 | |
| 穷尽 | |
| 比: 逻辑递进 (重要性, 时间, 结构(区域, 位置等)) |
This file contains hidden or 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
| { | |
| "propTypeArray": { | |
| "prefix": "pta", | |
| "body": "PropTypes.array,", | |
| "description": "Array prop type" | |
| }, | |
| "propTypeArrayRequired": { | |
| "prefix": "ptar", | |
| "body": "PropTypes.array.isRequired,", | |
| "description": "Array prop type required" |
This file contains hidden or 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
| alias gpm='git push origin master' | |
| alias ...=../.. | |
| alias ....=../../.. | |
| alias .....=../../../.. | |
| alias ......=../../../../.. | |
| alias 1='cd -' | |
| alias 2='cd -2' | |
| alias 3='cd -3' | |
| alias 4='cd -4' | |
| alias 5='cd -5' |
This file contains hidden or 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
| # 镜像名 | |
| image: 'node:8.11.2-alpine' | |
| # 脚本运行 | |
| before_script: | |
| # 写入密钥 并配置 ~/.ssh/config 文件 | |
| - apk add --update openssh-client bash | |
| - eval $(ssh-agent -s) | |
| - bash -c "ssh-add <(echo '$SSH_PRIVATE_KEY')" | |
| - mkdir -p ~/.ssh |
NewerOlder