The Wayback Machine - https://web.archive.org/web/20200618171458/https://github.com/topics/blogs
Skip to content
#

blogs

Here are 489 public repositories matching this topic...

Ogeon
Ogeon commented Oct 29, 2015

I noticed that the example for Rustful is a bit outdated and overcomplicated, compared to the other examples. The HandlerFn struct is no longer necessary, since Rust 1.3, and can be completely removed. It's also not really necessary to have a router if only one thing is served (unless you want to restrict requests to /). Handlers implements Router automatically. I'm not sure how minimal they

kuitos
kuitos commented May 8, 2018

老树发新芽—使用 mobx 加速你的 AngularJS 应用

1月底的时候,Angular 官方博客发布了一则消息:

AngularJS is planning one more significant release, version 1.7, and on July 1, 2018 it will enter a 3 year Long Term Support period.

即在 7月1日 AngularJS 发布 1.7.0 版本之后,AngularJS 将进入一个为期 3 年的 LTS 时期。也就是说 2018年7月1日 起至 2021年6月30日,AngularJS 不再合并任何会导致 breaking changes 的 features 或 bugfix,只做必要的问题修复。详细信息见这里:[Stable AngularJS and L

zhangyachen
zhangyachen commented Nov 14, 2016

最近,在工作中遇到了MySQL中如何存储长度较长的字段类型问题,于是花了一周多的时间抽空学习了一下,并且记录下来。

MySQL大致的逻辑存储结构在这篇文章中有介绍,做为基本概念:InnoDB 逻辑存储结构

注:文中所指的大数据指的是长度较长的数据字段,包括varchar/varbinay/text/blob。

Compact行格式

我们首先来看一下行格式为Compact是如何存储大数据的:

mysql> select version();
+-----------+
| version() |
+-----------+
| 5.1.73    |
+-----------+
1 row in set
rainchen
rainchen commented Feb 21, 2020

the original demo code in README is:

The Date#format Method
class Date
  def format( spec ) self.strftime( spec.to_strftime ); end
end
The new Date#format method formats the date like the passed in example:

date = Date.today   ## test run on 2020-02-09

p date.format( 'January 02, 2006' )         #=> "February 09, 2020"

but the 'format' method is a built in stdlib privat

hehongwei44
hehongwei44 commented Jun 2, 2017

eslint配置方式有两种:

注释配置:使用js注释来直接嵌入ESLint配置信息到一个文件里

配置文件:使用一个js,JSON或者YAML文件来给整个目录和它的子目录指定配置信息。这些配置可以写在一个文件名为.eslintrc.*的文件或者在package.json文件里的eslintConfig项里,这两种方式ESLint都会自动寻找然后读取,或者你也可以在命令行里指定一个配置文件。

有几种东西是可以配置的:

  • 环境:你的脚本会在哪种环境下运行。每个环境带来了一组特定的预定义的全局变量。
  • 全局变量:脚本运行期间会访问额外的全局变量。
  • 规则:使用那些规则,并且规则的等级是多少。

我们这里使用配置文件.eslintrc.js来配置,它导出一个模块供ESLint识别。

// http://eslint.org/docs/
lq782655835
lq782655835 commented Sep 25, 2018

在前端编码时,为了规范每个成员的代码风格以及避免低级的错误,我们可以使用Eslint来制定规则.本文旨在帮助团队成员形成良好的React代码规范。推荐使用Airbnb Eslint规范+自定义Rules

Airbnb Eslint规范

目前使用eslint不再需要自己手动装太多npm包,社区已经在最新eslint初始化命令中自动安装。

安装Eslint

有全局安装和本地安装两种方式,推荐本地安装

npm install --save-dev eslint

初始化Eslint

初始化会供用户很多可选的选择,这里推荐使用流行的`Ai

Improve this page

Add a description, image, and links to the blogs topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the blogs topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.