![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
编程
LF-DevJourney
这个作者很懒,什么都没留下…
展开
-
exceptions vs status
exceptions-vs-status原创 2021-01-06 16:17:07 · 152 阅读 · 0 评论 -
软件中的脚手架
Scaffolding generally refers to a quickly set up skeleton for an app. It’s not rails-only since other platforms have it as well. It’s also not generally meant to be a “final” system; 简单描述为:脚手架是用来快速搭建一...原创 2020-04-14 18:30:04 · 890 阅读 · 0 评论 -
在服务器上搭建git仓库
在本地项目中导出裸仓库 git clone --bare ./ ../project_name.git 上传到服务器上pscp -r ../project_name.git user_name@ip_or_hostname:/git_path/ 在本地仓库中设置服务端的git地址git remote add origin user_name@ip_or_hostname:/git_path/pr...原创 2019-12-26 15:28:09 · 447 阅读 · 0 评论 -
使用 SQL 进行排名搜索
参考 Ranked search with SQL 计算term的出现次数。 SELECT SUM(((LENGTH(Body) - LENGTH(REPLACE(Body, 'term', '')))/4)) AS Occurrences 以次数进行排序。 SELECT SUM(((LENGTH(Body) - LENGTH(REPLACE(Body, 'term', '')))/4) ...原创 2019-11-09 17:20:21 · 289 阅读 · 0 评论 -
PHP从周数创建DateTime
参考:How to create datetime from week number $date = (new DateTime())->setISODate($year,$week,$day)->setTime($hour,$minute,$second,$microseconds);原创 2019-11-09 17:08:58 · 158 阅读 · 0 评论