Skip to content

Instantly share code, notes, and snippets.

View tianqing617's full-sized avatar
💭
I may be slow to respond.

Liu Tianqing tianqing617

💭
I may be slow to respond.
  • Shanghai, China
View GitHub Profile
@rswanderer
rswanderer / .eslintrc-parameter-instruction.js
Last active September 8, 2023 01:59
ESLint配置文件.eslintrc参数说明
/*
* ESLint的JSON文件是允许JavaScript注释的,但在gist里显示效果不好,所以我把.json文件后缀改为了.js
*/
/*
* ESLint 配置文件优先级:
* .eslintrc.js(输出一个配置对象)
* .eslintrc.yaml
* .eslintrc.yml
@kevin-smets
kevin-smets / iterm2-solarized.md
Last active December 2, 2024 07:27
iTerm2 + Oh My Zsh + Solarized color scheme + Source Code Pro Powerline + Font Awesome + [Powerlevel10k] - (macOS)

Default

Default

Powerlevel10k

Powerlevel10k

@zxhfighter
zxhfighter / nginx-405.md
Last active May 27, 2021 14:55
Nginx将静态文件响应POST请求,提示405错误问题

Nginx的405错误

绝大多数服务器,都不允许静态文件响应POST请求(GET请求静态文件是天经地义的),否则会返回HTTP/1.1 405 Method not allowed错误。

然而在前端开发中,前端开发工程师经常模拟后端请求,返回静态数据来查看页面效果,怎么办?

目前有两种方案解决:

方案一:修改配置文件nginx.conf(推荐