- 查看某作者的提交 https://github.com/yiisoft/yii2/commits/master?author=qiangxue
- 高亮代码片段 https://github.com/yiisoft/yii2/blob/master/framework/di/ServiceLocator.php#L50-L60
- 快速引用别人的内容 选中别人的评论文字,然后按r,这些内容会以引用的形式被复制在文本框
- 任务列表语法
- [ ] Be awesome
- [ ] Do stuff
- [ ] Be awesome
- [ ] Do stuff
// 生成随机颜色代码
(~~(Math.random()*(1<<24))).toString(16)
// 给所有元素添加随机色的外边框线
[].forEach.call($$("*"),function(a){
a.style.outline="1px solid #"+(~~(Math.random()*(1<<24))).toString(16)
});
-- 快速复制一个表,添加limit 0可以只保留结构
CREATE TABLE copy_table AS SELECT * FROM original_table
-- 将sql语句的查询结果保存到文件中
pager cat > /tmp/sql_result_file
-- 设置上述命令之后执行的sql结果将不在屏幕缓冲区显示,直接写入文件
-- explain 查询计划
-- type指标的排序
# git stash 讲当前修改隐藏起来
# 查看隐藏
git stash list
git stash pop
git stash pop --index stash@{0}
git stash drop --index stash@{0}
# 清除隐藏
git stash clear
vim /etc/inittab
SU:2345:respawn:/usr/bin/supervisord -c /etc/supervisord.conf
#使其生效
init q
{ | |
"tags": [ | |
{ | |
"text": "GoCN出品", | |
"color": "rgb(255, 255, 255)", | |
"background": "rgb(99, 171, 247)" | |
} | |
], | |
"id": "root", | |
"title": "Go知识图谱", |