Skip to content

Instantly share code, notes, and snippets.

View xiangaoole's full-sized avatar
🏠
Working from home

Harold Gao xiangaoole

🏠
Working from home
View GitHub Profile
@xiangaoole
xiangaoole / compareDeps.py
Last active May 9, 2023 04:28
How to compare two android projects' dependencies
#!/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
@xiangaoole
xiangaoole / find-hyphen-name.rb
Last active January 26, 2021 14:17
hyphen name to camel name
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"
@xiangaoole
xiangaoole / A_json_yaml_transform.md
Last active February 4, 2021 08:49
yaml to json | json to yaml

These gists record how to transform between yaml and json files, using script languages.

@xiangaoole
xiangaoole / .eslintrc.yml
Last active October 10, 2020 01:28
Config eslint for better lint hint in VSCode
env:
browser: true
commonjs: true
es6: true
extends:
- airbnb
- prettier
#parser:
parserOptions:
ecmaVersion: 12
@xiangaoole
xiangaoole / iTerms2_shell_cheatsheet.md
Last active September 14, 2020 07:50
The cheatsheet to use iTerms shell more conveniently

iTerms shell cheatsheet

These are some that you need to add to key bindings:

Preference -> Profile -> Keys -> add new Key Mappings

Explain Combination Action
delete entire line + backspace "Send Hex Codes: 0x15"
delete backward word + backspace "Send Hex Codes: 0x17"
@xiangaoole
xiangaoole / app_.gitignore
Created August 29, 2018 07:39
安卓小工具
/build
@xiangaoole
xiangaoole / app_.gitignore
Created August 29, 2018 07:28
安卓小工具集合,方便日常使用
/build
@xiangaoole
xiangaoole / GameOfLife_.gitignore
Created June 12, 2018 10:43
添加项目描述和演示视频
*.iml
.gradle
/local.properties
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
.DS_Store
/build
/captures
.externalNativeBuild
@xiangaoole
xiangaoole / GameOfLife_.gitignore
Created June 12, 2018 10:16
《生命游戏》安卓版
*.iml
.gradle
/local.properties
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
.DS_Store
/build
/captures
.externalNativeBuild
@xiangaoole
xiangaoole / app_.gitignore
Created June 12, 2018 10:13
《生命游戏》安卓版
/build