上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
摘要: Promise是异步编程的一种解决方案,它是一个对象,可以获取异步操作的消息,它解决了异步编程回调函数的地狱回调问题。 所谓Promise,简单说就是一个容器,里面保存着某个未来才会结束的事件(通常是一个异步操作)的结果。Promise提供了 统一的API,可以方便的处理各种异步问题。 1. Pro 阅读全文
posted @ 2023-02-16 17:40 箫笛 阅读(40) 评论(0) 推荐(0) 编辑
摘要: initDSRProject.sh #!/usr/bin/bash # load utils . ./util/utils.sh . ./util/fileUtils.sh . ./util/gitUtils.sh # set project related info projectName="ro 阅读全文
posted @ 2023-02-15 14:51 箫笛 阅读(6) 评论(0) 推荐(0) 编辑
摘要: syncMockJson.sh #!/usr/bin/bash # load utils . ./util/utils.sh . ./util/fileUtils.sh . ./util/gitUtils.sh # config directory, file path and branch ### 阅读全文
posted @ 2023-02-15 14:35 箫笛 阅读(10) 评论(0) 推荐(0) 编辑
摘要: Web workders的规范让javascript在后台运行脱离了UI线程,从而解决了大量计算阻塞UI线程导致卡死的问题。 在Web workers没有出现之前,我们可以使用window.setTimeout 异步方式将计算包裹其中,来解决这种问题。 1. 使用 Web Workers Web W 阅读全文
posted @ 2023-02-14 17:39 箫笛 阅读(93) 评论(0) 推荐(0) 编辑
摘要: shell-dsr/cron.sh #!/usr/bin/bash # execute shell script ################################################### # load utils . ./util/utils.sh declare -A 阅读全文
posted @ 2023-02-14 16:23 箫笛 阅读(42) 评论(0) 推荐(0) 编辑
摘要: shell-dsr/utils.sh #!/usr/bin/bash # echo message with color ######################################################## function echoError { echo -e "\0 阅读全文
posted @ 2023-02-14 16:15 箫笛 阅读(82) 评论(0) 推荐(0) 编辑
摘要: shell-dsr/updateVersionFlow.sh #!/usr/bin/bash # get current pwd pwd=$PWD # sync mock json for mc # . ./syncMockJson.sh declare -A versionDic versionD 阅读全文
posted @ 2023-02-14 16:06 箫笛 阅读(12) 评论(0) 推荐(0) 编辑
摘要: ~/.vim/my_configs.vim " Usefull setting set thesaurus+=~/js-functions.txt set thesaurus+=~/js-lodash.txt " Useful mappings " vnoremap <leader>. gv:wri 阅读全文
posted @ 2023-02-14 11:36 箫笛 阅读(23) 评论(0) 推荐(0) 编辑
摘要: ~/.bashrc # change cursor alias cl='echo -ne "\e[6 q"' alias cb='echo -ne "\e[2 q"' # set bash command line as vi mode # set -o vi # set CDPATH enviro 阅读全文
posted @ 2023-02-14 11:05 箫笛 阅读(36) 评论(0) 推荐(0) 编辑
摘要: Start run project when run script start-work.sh #!/usr/bin/bash # start work . ~/utils.sh # jump to work directory uiProject=/c/project/path/ if [ -d 阅读全文
posted @ 2023-02-13 15:30 箫笛 阅读(12) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 21 下一页
点击右上角即可分享
微信分享提示