摘要: /usr/bin$ sudo rm -rf python/usr/bin$ sudo ln -s /usr/bin/python3.5 /usr/bin/python 阅读全文
posted @ 2019-05-22 11:28 聪明不绝顶 阅读(4401) 评论(0) 推荐(0) 编辑
摘要: 设计模式6大原则: 1.单一职责原则(Single Responsibility Principle, SRP) 2.开闭原则(Open-Closed Principle, OCP) 3.里氏代换原则(Liskov Substitution Principle, LSP) 4.依赖倒转原则(Depe 阅读全文
posted @ 2019-04-19 10:31 聪明不绝顶 阅读(98) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-03-27 21:31 聪明不绝顶 阅读(11) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-02-25 17:47 聪明不绝顶 阅读(20) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-02-25 11:47 聪明不绝顶 阅读(12) 评论(0) 推荐(0) 编辑
摘要: git status git diff git stash // 修改入栈 git checkout *** // 切分支 git stash list // 显示栈内的修改 git show stash@{0} // 显示修改 git stash apply stash@{1} // 将对应修改应用过来 阅读全文
posted @ 2019-02-01 16:39 聪明不绝顶 阅读(137) 评论(0) 推荐(0) 编辑
摘要: repo遍历所有git仓库: repo forall -c 命令 其中,参数有: -c:后面可以带的任何可以被系统支持的shell命令(ls,cp,pwd等) -p:在shell命令输出之前列出项目名称 -v:列出执行shell指令输出的错误信息 -c:后面可以带的任何可以被系统支持的shell命令 阅读全文
posted @ 2019-01-31 10:35 聪明不绝顶 阅读(5068) 评论(0) 推荐(0) 编辑
摘要: 1. atexit():接收一个函数指针作为参数,并保证在程序正常退出(从main里返回或调用exit函数)时,这个函数指针指向的函数会被调用 阅读全文
posted @ 2019-01-23 17:20 聪明不绝顶 阅读(138) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-01-14 17:38 聪明不绝顶 阅读(7) 评论(0) 推荐(0) 编辑
摘要: HAL(Hardware Abstract Layer):运行在用户空间中,向下屏蔽硬件驱动模块的实现细节,向上提供硬件访问服务。 传统的Linux系统把对硬件的支持完全实现在内核空间中,即把对硬件的支持完全实现在硬件驱动模块中。 Android把对硬件的支持划分为两层来实现:内核空间和用户空间。 阅读全文
posted @ 2019-01-12 15:59 聪明不绝顶 阅读(191) 评论(0) 推荐(0) 编辑