April 2, 2021
ts
既然大家都说ts 类型声明好,为何java(强类型声明) 还需要文档呢?
纵观js,ts历史,js先诞生,ts后诞生,会存在ts定义不了js的情况吗?
ts 中console没有定义,为何不报错?
ts中定义了类型, 规避了隐式类型转换,那么编译通过后,js一定不会报错undefine ...
Read more
January 22, 2021
python
mac
brew
brew 卸载python123brew uninstall pythonbrew uninstall --ignore-dependencies python
brew查看可清除内容1brew cleanup -n
执行命令删除123456789101112131415161718192 ...
Read more
January 22, 2021
angular
spec.ts
背景
在重构代码时候,难免会忘记添加spec.ts测试用例文件,等想起来的时候,已经很多文件了,总不能一个个copy,修改吧,此时正是工具最佳上场时机
angular-spec-generator
通过cli 命令行,为已存在的Angular 文件批量添加测试用例文件
安装1npm in ...
Read more
January 12, 2021
shell
脚本
mp4
背景:
qq空间视频上传,支持500个视频上传,不过监控视频是分文件夹存储的。故利用shell把文件集中下,然后批量上传。
code 123456789101112filelist=`ls /Users/hu/video/2020`for file in $filelistdo echo ...
Read more
January 12, 2021
mac
mac系统天生支持NTFS,只不过挂载方式是read-only方式,需要手动把分区改成可写方式
插入移动硬盘,查看挂载方式1234$ mount | grep ntfs/dev/disk2s1 on /Volumes/Untitled (ntfs, local, nodev, nosuid, ...
Read more
December 27, 2020
flutter
App
git 代码1$ git clone https://github.com/flutter/flutter.git -b stable
git Doc
https://github.com/flutter/flutter/wiki/Using-Flutter-in-China
flutt ...
Read more