calvinxiao

calvinxiao

Member Since 10 years ago

Sprout Spring, Jiangmen

Experience Points
17
follower
Lessons Completed
9
follow
Lessons Completed
61
stars
Best Reply Awards
53
repos

1148 contributions in the last year

Pinned
⚡ :books: 《Go语言高级编程》开源图书,涵盖CGO、Go汇编语言、RPC实现、Protobuf插件实现、Web框架实现、分布式系统等高阶主题(完稿)
⚡ Use IP2Location geolocation database to lookup the geolocation information with IP2Location Go Package. It can be used to determine country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather, MCC, MNC, mobile brand name, elevation and usage type that any IP address or hostname originates from.
⚡ A Ruby/Rack web server built for concurrency
⚡ Simple ID genenator for Node.js
⚡ TiDB is an open source distributed HTAP database compatible with the MySQL protocol
Activity
Nov
26
1 week ago
Activity icon
fork

calvinxiao forked ClickHouse/ClickHouse

⚡ ClickHouse® is a free analytics DBMS for big data
calvinxiao Apache License 2.0 Updated
fork time in 1 week ago
Nov
24
1 week ago
Activity icon
fork

calvinxiao forked json-iterator/go

⚡ A high-performance 100% compatible drop-in replacement of "encoding/json"
calvinxiao MIT License Updated
fork time in 1 week ago
Nov
15
2 weeks ago
Activity icon
issue

calvinxiao issue comment AfterShip/swagger-ajv

calvinxiao
calvinxiao

How to set up authentication for accessing swagger docs?

calvinxiao
calvinxiao

You can prepend an authentication middleware in the docs route.

Here is one to go https://github.com/koajs/basic-auth

Nov
8
3 weeks ago
push

calvinxiao push calvinxiao/swagger-ajv

calvinxiao
calvinxiao

Fix path due to deprecated jsonPointers

commit sha: b5761f4d812aa290974fb7dbfd6f2e21d062715b

push time in 3 weeks ago
pull request

calvinxiao pull request AfterShip/swagger-ajv

calvinxiao
calvinxiao

Upgrade to ajv 8

Some hints to upgrade to ajv 8

  1. ajv-errors needs to upgrade to 3.x
  2. _opts is changed to opts
  3. In errors, dataPath is changed to instancePath
  4. jsonPointers is deprecated, one can use jsPropertySyntax for old setting.

One of the advantage to upgrade to [email protected] is performance, in [email protected], schema is cached by the stringified content, so every lookup will need to stringify the schema. This has large impact of performance with large schema.

Here is the official upgrade guide. Changes from Ajv v6.12.6 to v8.0.0

Personally speaking, upgrading to [email protected] is easier to upgrade to [email protected]

push

calvinxiao push calvinxiao/swagger-ajv

calvinxiao
calvinxiao

Use jsPropertySyntax instead of jsonPointer

commit sha: 1d00c4206f0cc68d55189c44a459fbee4c367765

push time in 3 weeks ago
Nov
4
1 month ago
Nov
3
1 month ago
Activity icon
fork

calvinxiao forked fingerprintjs/fingerprintjs

⚡ Browser fingerprinting library with the highest accuracy and stability.
calvinxiao MIT License Updated
fork time in 1 month ago
Oct
31
1 month ago
push

calvinxiao push calvinxiao/juicefs

calvinxiao
calvinxiao

object/hdfs: use strings.TrimSuffix according to gosimple

ref: https://staticcheck.io/docs/checks#S1017

commit sha: 1d19b01f09b6cf336866d58939c84f8ab1879b25

push time in 1 month ago
Activity icon
created branch

calvinxiao in calvinxiao/juicefs create branch playaround

createdAt 1 month ago
Oct
29
1 month ago
Activity icon
fork

calvinxiao forked juicedata/juicefs

⚡ JuiceFS is a distributed POSIX file system built on top of Redis and S3.
calvinxiao GNU Affero General Public License v3.0 Updated
fork time in 1 month ago
Oct
28
1 month ago
Activity icon
created branch

calvinxiao in calvinxiao/swagger-ajv create branch upgrade-ajv-8

createdAt 1 month ago
Oct
26
1 month ago
Activity icon
fork

calvinxiao forked AfterShip/swagger-ajv

⚡ Old name: koa-swagger-ajv
calvinxiao MIT License Updated
fork time in 1 month ago