Skip to content

Instantly share code, notes, and snippets.

@sgsheg
sgsheg / PhpStorm Keymap
Created September 21, 2017 01:57 — forked from ionauq/PhpStorm Keymap
PhpStorm快捷键
### Editing ###
`Ctrl + Space` 基本代码完成(任意类的,方法的或者变量的名称)
`Ctrl + Shift + Enter` 补全当前语句
`Ctrl + P` Parameter info (within method call arguments)
`Ctrl + Q` 快速查找文档
`Ctrl + 鼠标滑过` 简明信息查看
`Ctrl + F1` 在插入符号处显示错误或者警告信息
`Alt + Insert` 生成代码...(Getters,Setters,Constructors)
`Ctrl + O` 重写方法
`Ctrl + I` 实现方法
@sgsheg
sgsheg / nginx.conf
Created November 6, 2017 06:45 — forked from mreschke/nginx.conf
Nginx config for multiple laravel sites based on /api/v1 url paths
# This config will host your main [Laravel] GUI application at /, and any additional [Lumen] webservices at /api/v1 and /api/v2...
# This also works perfectly for all static file content in all projects
# This is full of debug comments so you can see how to print debug output to browser! Took me hours to nail this perfect config.
# Example:
# http://example.com - Main Laravel site as usual
# http://example.com/about - Main Laravel site about page as usual
# http://example.com/robots.txt - Main Laravel site static content as usual
# http://example.com/api/v1 - Lumen v1 api default / route
# http://example.com/api/v1/ - Lumen v1 api default / route
@sgsheg
sgsheg / php-export-csv.php
Created August 13, 2021 06:55
php导出csv
public function put_csv($list,$title){
$file_name="CSV".date("mdHis",time()).".csv";
header ( 'Content-Type: application/vnd.ms-excel' );
header ( 'Content-Disposition: attachment;filename='.$file_name );
header ( 'Cache-Control: max-age=0' );
$file = fopen('php://output',"a");
$limit=1000;
$calc=0;
foreach ($title as $v){
$tit[]=iconv('UTF-8', 'GB2312//IGNORE',$v);
@sgsheg
sgsheg / 声明周期.md
Created August 18, 2021 14:24
生命周期

  1. 声明周期选择

预测型声明周期:更为传统的方法,提前进行大量计划工作,然后一次性执行;执行是一个连续过程 迭代型声明周期:这种方法允许对未完成工作进行反馈,从而改进和修改该工作 增量型生命周期:这种方法向客户提供各个已完成的,可能立即使用的可交付成果 敏捷生命周期:这种方法既有迭代,也有增量,便于完善工作,频繁交付

没有哪个生命周期能完美地适用所有的项目。

@sgsheg
sgsheg / 创建敏捷环境.md
Created August 18, 2021 14:34
实施敏捷:创建敏捷环境

实施敏捷:创建敏捷环境


  1. 仆人式领导为团队赋权

    仆人式领导的作用是促进团队发现和定义敏捷。仆人式领导按照以下顺序从事项目工作:

    • 目的 与团队一起定义“为什么”或目的,以便他们能围绕项目目标进行合作互动。

    • 人员