Skip to content

Instantly share code, notes, and snippets.

View iGarym's full-sized avatar
😃
wow

Gary iGarym

😃
wow
  • Shenzhen, China
View GitHub Profile
@iGarym
iGarym / sonar-project.properties
Created January 9, 2019 09:07
sonar config for vue
sonar.projectKey=<PROJECT_KEY>
sonar.projectName=<PROJECT_NAME>
sonar.projectVersion=<PROJECT_VERSION>
sonar.sourceEncoding=UTF-8
sonar.host.url=<SONAR_URL_HOST>
sonar.login=<TOKEN>
sonar.language=javascript
sonar.sources=src
@iGarym
iGarym / PEG-SQL
Created January 3, 2019 08:28
peg sql grammar
{
var SQL = {
listToString: function(x, xs) {
return [x].concat(xs).join("");
}
};
}
Start
= Stmt
@iGarym
iGarym / json-pointers.md
Created December 26, 2018 04:22
JSON-pointers example

JSON-pointers

rules

  • 以 "/" 开头的为绝对路径,相对整个 json 元数据,否则为相对路径,以当前校验的字段为基准
  • "0": 当前 pointer 的 value
  • "0#": 当前 pointer 的 key
  • "1": 上一级 pointer 的 value
  • "1#": 上一级 pointer 的 key
  • "2": 上两级 pointer 的 value
  • "2#": 上两级 pointer 的 key