Skip to content

Instantly share code, notes, and snippets.

View liuderchi's full-sized avatar
🔍
Looking for inspirations

TC Liu liuderchi

🔍
Looking for inspirations
View GitHub Profile
@liuderchi
liuderchi / create_repo_labels.sh
Last active June 23, 2022 12:40
To Create Labels for your Repo
#!/bin/bash
set -e
# NOTE to create labels for your repo
# to support types from commit message guide (feat, fix, docs, style, refactor, test, chore)
# by hitting GitHub API v3
#
# https://developer.github.com/v3/issues/labels/#create-a-label
# https://gist.github.com/caspyin/2288960
// For clean UI to screenshot capture, hide UIs of Google Maps
if (!window.__derek_elsCSSDisplayValues) {
window.__derek_elsCSSDisplayValues = {}; // query -> displayValue
}
const queries = [
'#featureListPanel', // left panel
'#mapsprosearch-field', // search bar
// buttons
@liuderchi
liuderchi / .bashrc
Last active April 18, 2024 21:13
Customize Command Prompt Text with Git Icon and Git Branch (require font-awesome)
# README
# 1. append following content to your ~/.bashrc file
# 2. apply your setup by enter shell command $ source ~./bashrc
### Git ###
git_icon() {
# NOTE: printing icon requires install font on http://fontawesome.io/
# Choose one icon you like
#printf ' \uf126 ' # http://fontawesome.io/icon/code-fork/
printf ' \uf09b ' # http://fontawesome.io/icon/github/