Skip to content

Instantly share code, notes, and snippets.

@c1xf
c1xf / .editorconfig
Last active December 14, 2019 03:40
使用 vscode 开发用的一些配置。
# Editor configuration, see http://editorconfig.org
root = true
[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
@c1xf
c1xf / shortcut.md
Last active December 17, 2019 15:52
快捷键整理

快捷键

认识修饰键

  • ⌘(command) 命令去做,状态会发生改变
@c1xf
c1xf / regexp.ts
Created December 17, 2019 08:31
正则表达式整理
// bo 解析
const str = `
/** description1 */
valueName1?: string
/** description2 */
valueName2: string
`
const reg = /\/\*\*((?:[^\?\:])+)\*\/\n([^\?\:]+)(?:\?)?\:/g

VsCode

@startuml client-log-scene
skinparam defaultFontName AR PL UKai CN
title 客户端异常场景
start
:打开客户端;
if (出现异常?) then (yes)
:1、脚本运行异常
2、接口请求异常(400/404...
3、界面显示有误;
end