they are not looking for solution, but sharing

they are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharingthey are not looking for solution, but sharing

使用 code . 启动 VS 编辑器的方法

  • 我们在mac的终端可以使用 open .打开文件夹
  • 如果我们想用vs-code打开文件夹,用的命令是 code .,不过你得先按照code
  • 安装code:打开VSCode –> command+shift+p –> 输入shell command –> 点击提示Shell Command: Install ‘code’ command in PATH运行
    使用:打开终端,cd到要用VSCode打开的文件夹,然后输入命令code .即可打开

docker 常用命令

https://blog.csdn.net/deng624796905/article/details/86493330

 

docker container run -d -p  3306:3306  –name mysql –env MYSQL_ROOT_PASSWORD=12345

mysql 是 image 的名字,

–env MYSQL_ROOT_PASSWORD=12345    这里的意思是启动一个mysql 然后设置 root password 为 123345

第一个3306 是服务器的端口, 第二个是 docker 暴露的端口,

 

命令帮助 https://gist.github.com/bradtraversy/89fad226dc058a41b596d586022a9bd3

parse 处理文件

parse 支持 base64 格式来上次文件,也支持二进制。。

var base64 = "V29ya2luZyBhdCBQYXJzZSBpcyBncmVhdCE=";   // 那么我需要先把文件转化为 base64
new Parse.File("fileName.mp4",{base64: base64})

二进制

var bytes = [ 0xBE, 0xEF, 0xCA, 0xFE ];
var file = new Parse.File("myfile.txt", bytes);

当然,也可以在第三个参数哪里制定文件格式

var file = new Parse.File("myfile.zzz", fileData, "image/png");

JS新增对象Map和Set

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
Set
Set也是ES6新增的对象,Set是一组key的集合,但不存储value, 而且key不重复,可自动排重