blog
Here are 3,071 public repositories matching this topic...
-
Updated
Apr 19, 2019 - JavaScript
-
Updated
Feb 23, 2019 - JavaScript
As the project grows, it would be easier to contribute if the project follows a specific javascript style guide.
These are what I use in my personal projects:
Linter: https://github.com/eslint/eslint
Config: https://www.npmjs.com/package/eslint-config-airbnb
But any other would work too
Nginx 上配置 HTTPS 环境
这是一篇纯粹的流水账笔记,本文涉及到的 certbot/certbot-auto 版本是 0.21,如果你用的是 0.22 或以上版本,可参考官网步骤来配置通配符
环境
- CentOS: 7.4
- Nginx: 1.12.2
- Python: 2.7.5
步骤
通过 yum install certbot 或者按照官方步骤,安装 certbot 之后,运行如下命令开始生成证书:
certbot certonly --email xxx@gmail.com --cert-name xxx --webroot -w /www/xxx/ -d xxxx.com -w /www/xxx2/ -d xxxx2.comDescribe the bug
GitHub provides a few options when configuring a new repo like: license, .gitignore file, a README.md, and the Rennovate plugin. If you want to install any of these by default, which I usually do, then you get an error about the remote having newer content.
To Reproduce
Steps to reproduce the behavior:
- Create a repo with a readme during the script
- See the er
git的快捷键 alias,加 oh-my-zsh应该是使用中比较实用的小技巧
在实际应用中,一遍一遍输入git status,git status,git commit -m 'xx'什么的确实挺繁琐,于是配置alias可以简化成 gst === git status,gcmsg 'xxx' === git commit -m 'xxx',gp === git push等等。。
大概是这样配置的
- alias gst='git status'
- alias gp='git push'
- alias gp='git push'
- …
而且还发现oh-my-zsh默认用的插件是git,查看oh-my-zsh的config
cat ~/.zshrc
其中有一条配置是
plugins=(git)
那么刨根问底拦不住,看看git插件的配置
`
Git
-
Updated
Mar 9, 2020 - JavaScript
React是目前(2017.04)流行的创建组件化UI的框架,自身有一套完整和强大的生态系统;同时它也是我目前工作中的主力框架,所以学习和理解React是很自然的需求。
本文在翻译React Components, Elements, and Instances的基础上,主要专注理解React的一个核心理念:用Elements Tree描述UI。本文也应该是接下来几片React相关文章的开头,所以更合适的标题可能是:
React学习笔记一:Components,Elements和Instances
*请注意,阅读本文最好对React有基本的了解,但React新手也应该
了解 Babel 6 & 7 生态
useType makes it super easy to use Microstates' composable runtime type system with React.
Implementation can be found in @microstates/react repo.
Example usage can be found in TodoMVC with Microstates & React Codesandbox
基于canvas使用粒子拼出你想要的文字
[半夜改bug] mongoose 的 createConnection 和 connect
代码出 bug 大半夜的被 mongoose 的连接函数搞惨
因为代码里 mongo 数据库的连接方式的代码被改成了 const db = mongoose.createConnection(mongo.url(), mongoOptions),所以在调用数据插入函数时 Promise 的 resolve 和 reject 都没有返回,也没有打印任何异常信息。
查了业务逻辑、本地 mongo 的读写都没问题,最后发现是 mongo 的连接文件 connect.js 被修改了。
因为用了 mongoose.createConnection 所以此时的 model 应该是 db.mongoose.model('Product')
而之前的是用默认的
你在 19 年剩余的时间里还能学点什么?
时间过得真快,转眼之间 19 年都已经快进入 9 月份了。
今天就来谈谈在这剩余的时间中我们还可以学点什么来充实自己,提高自己的竞争力。
前端基础
前端基础的重要性我觉得不需要多说了,无论是写出健壮的代码还是定位问题亦或者是面试中都是相当重要的一块内容。
如果你认为自身的前端基础还不过关的话,应该把大量的时间放在学习基础上。
计算机基础
计算机基础对于前端开发者来说最重要的是以下三点:
- 网络
- 数据结构
- 算法
以上这三点的共通性在于:你学了它们,在面试的时候总会带来不小的帮助。
这其中网络应该算是最重要的一块内容,毕竟性能优化常常需要你了解一点其中的知识。
另外两者虽然平时工作中很少用到,但是你保不准会遇到需要的时候。另外如果你以后想阅读源码的话,会发现源码中对于数据结构的运用会相当频繁。
剖析 React 源码:先热个身
-
Updated
May 22, 2020 - JavaScript
-
Updated
May 21, 2020 - JavaScript
-
Updated
May 24, 2020 - JavaScript
https://docs.ghost.org/concepts/custom-schedulers/
Maybe you have to write your own adapter?
The following guide explains how to write your own adapters, for example if you wanted to use the Heroku Scheduler or your own external logi
代码提交规范 && 升级调整
本系列想跟大家分享一下我近一年的管理经验,分享一下我们团队的一年走来的优化之路「非技术」,让大家少踩坑,以及如何协作,管理者容易遇到的问题,以及技术上,工作上,如何与同事沟通、跨部门如何沟通有效率、如何分组、站会有没有用? 等等,一年到头,想和大家交流一下经验。
背景
项目早期
项目早期,我们是有 master 被保护分支,以及 dev 测试分支的,我们的提交流程是:所有人往 dev 合并代码,进行测试封版,测试通过直接把 dev 合并到 mast
-
Updated
May 25, 2020 - JavaScript
-
Updated
Jun 22, 2017 - JavaScript
sidebar.html
{% if site.seo %}
<p class="site-description motion-element" itemprop="description">{{ site.signature }}</p>
{% else %}
<p class="site-description motion-element" itemprop="description">{{ site.description }}</p>
{% endif %}但是在config文件缺少signature字段
-
Updated
May 21, 2020 - JavaScript
Improve this page
Add a description, image, and links to the blog topic page so that developers can more easily learn about it.
Add this topic to your repo
To associate your repository with the blog topic, visit your repo's landing page and select "manage topics."



Summary
Enable the
heading-incrementrule to our remark-lint config.Followup of #21919
Motivation
Headings should only increase 1 level at a time for accessibility.
Steps