These gists record how to transform between yaml and json files, using script languages.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
# -*- coding: utf-8 -*- | |
''' | |
@author: harold.gao | |
@contact: xiangaoole@gmail.com | |
@file: compareDeps.py | |
@time: 2021-03-29 15:16 | |
@desc: | |
a. pip3 install packaging | |
b. touch attention_libs.csv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'set' | |
R = / | |
\b # word boundary | |
(?<part> # set group name as "part" | |
[a-zA-Z] # first character must be letter | |
[^ _-]* # the afterward character | |
) | |
( | |
[-_] # the hyphen or underline | |
\g<part> # get group pattern "part" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env: | |
browser: true | |
commonjs: true | |
es6: true | |
extends: | |
- airbnb | |
- prettier | |
#parser: | |
parserOptions: | |
ecmaVersion: 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.iml | |
.gradle | |
/local.properties | |
/.idea/libraries | |
/.idea/modules.xml | |
/.idea/workspace.xml | |
.DS_Store | |
/build | |
/captures | |
.externalNativeBuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*.iml | |
.gradle | |
/local.properties | |
/.idea/libraries | |
/.idea/modules.xml | |
/.idea/workspace.xml | |
.DS_Store | |
/build | |
/captures | |
.externalNativeBuild |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/build |
NewerOlder