- 博客(7)
- 资源 (32)
- 问答 (1)
- 收藏
- 关注
php 堆栈&队列
在PHP中数组常被当作堆栈(后进先出:LIFO)与队列(先进先出:FIFO)结构来使用。PHP提供了一组函数可以用于push与pop(堆栈)还有shift与unshift(队列)来操作数组元素。堆栈与列队在实践中应用非常广泛。 堆栈(array_push、array_pop) <?php calss Test{ $arr = array(); array_push('dada'); arra...
2020-03-31 20:06:17 502
转载 Redis原子计数器incr,防止并发请求
https://blog.csdn.net/Roy_70/article/details/78260826
2020-03-30 10:38:24 459
原创 git push HEAD:refs/for/master,命令好长,输入很麻烦,有没有更简单便捷办法
发现一个更好的做法,还可以与git-completion.bash兼容,实现tab自动补全 执行下面的配置,安装一个gpush子命令: git config --global alias.gpush '!f() { : push ; r=$1; [[ -z $r ]] && r=origin; b=$2; t=$(awk "{ print \$2 }" $(git rev-pars...
2020-03-09 21:33:26 2216
原创 代码变更行数统计
1.最近5次提交代码变更行数: 执行 git log -5 --pretty=tformat: --numstat | awk '{ add += $1; subs += $2; loc += $1 - $2 } END { printf "added lines: %s, removed lines: %s, total lines: %s\n", add, subs, loc }' ...
2020-03-09 21:32:31 969
高效程序的奥秘pdf
2016-12-13
Everything最新版绿色版
2016-02-22
博客导出工具
2016-02-21
lern python the hard way
2016-02-18
最新版Git-2.14.1
2017-10-15
linuxC函数库手册
2017-01-26
自己动手写操作系统电子书工具源代码
2016-12-13
Error: No space left on device
2017-05-15
TA创建的收藏夹 TA关注的收藏夹
TA关注的人