Codingbro's Blog

代码笔记哥的博客

My Own Mac Notes

个人Mac相关笔记

How to install some tool without fully install Xcode on Mac? Some command line tool on Mac requires you to install Xcode but you may rarely use Xcode for iOS development, then you may consider foll...

My Own Git Notes

个人Git笔记

Useful Commands $ git commit -n $ git commit -n, the -n is not a supported argument, if you look into https://git-scm.com/docs/git-commit/1.5.5. But my company uses it to do enforced es-linting ...

Feature Adding on my Blog

博客加功能📝

2018-05-28 Configure Disqus on my blog Besides adding my disqus shortname to _config.yml, I also need to follow hints here Basically, it means on this page, I need to select the option “I want to i...

TypeScript 技巧笔记

TypeScript Tips

Below are my personal notes on TypeScript. What is TypeScript and its relationship with JavaScript? See this article on Wiki.

JavaScript 技巧笔记

JavaScript Tips

Below are my personal notes on how to efficiently and smartly use JavaScript functions and features. “this” keyword In the code snippets below, assume there are already controllers wrapping them, ...

编程好习惯

Good Programming Habits

以下是我总结的一些编程好习惯 DRY (Don’t Repeat Yourself) Rule 利用添加parameters的方法实现DRY getPresidencyTerm(isWholeLife: boolean, term: number) string { if (isWholeLife) { return "终身制"; } else if (term) { ...

Mac上配置Python3虚拟开发环境

Configure Python3 Dev Environment on Mac with Virtualenv

自带的python2 首先,当你在Mac的命令行下敲python回车后,你一般会看到如下信息 Python 2.7.10 (default, Aug 17 2018, 19:45:58) [GCC 4.2.1 Compatible Apple LLVM 10.0.0 (clang-1000.0.42)] on darwin Type "help", "copyright", "credits...