删除重复行
1 | ^(.*)(\r?\n\1)+$ |
删除空白行
1 | ^\s*(?=\r?$)\n |
https://stackoverflow.com/questions/4823468/comments-in-markdown
We do
support comments more...https://apple.stackovernet.com/cn/q/13428
1 | sudo osascript -e "set Volume 3.5" |
我们的实例是bc-demo
公有DNS
ec2-13-230-150-206.ap-northeast-1.compute.amazonaws.com
公有IP
13.230.150.206
私有IP
172.31.27.220
LoopBack 框架
是由一组Node.js的模块构成的
应用通过LoopBack model API
可以使用以下三种方式访问数据:
应用程序通过LoopBack model API
用以上三种方式查询数据,储存数据,上传文件,发送email, 推送消息,注册/登陆用户等远程或本地的服务。用户也可以通过Strong Remoting将后端的API通过REST, WebSocket(或其他传输协议)供客户端调用。
核心LoopBack模之间的关系图:
How to stop using console.log() and start using your browser’s debugger
主要转载至此文,标题有引战意味。正如评论第一的所说,断点能加速开发过程调试,但是我觉得console.log()
在生产环境中更为有用,二者没有优劣之分,根据不同的代码选择不同的方法即可。
To open Chrome Developer Tools, press Command+Option+I (Mac) or Control+Shift+I (Linux).
A breakpoint is something that your browser looks for in order to know when to pause execution of your code and allow you the opportunity to debug it.
To define values to ‘watch’, click on the watch pane at the very top and click the + symbol once it opens. Here, you can type in variable names or other expressions.
more...