Skip to content

Instantly share code, notes, and snippets.

View csrigogogo's full-sized avatar
🎯
Focusing

csrigogogo

🎯
Focusing
View GitHub Profile
@csrigogogo
csrigogogo / terminal-git-branch-name.md
Created July 22, 2022 06:58 — forked from joseluisq/terminal-git-branch-name.md
Add Git Branch Name to Terminal Prompt (Linux/Mac)

Add Git Branch Name to Terminal Prompt (Linux/Mac)

image

Open ~/.bash_profile in your favorite editor and add the following content to the bottom.

# Git branch in prompt.

parse_git_branch() {
@csrigogogo
csrigogogo / README.md
Created July 14, 2022 06:18 — forked from qti3e/README.md
List of file signatures and mime types based on file extensions
function DUBLIST(arr) {
// 构建双向链表
debugger
let HEAD = 0
let TAIL = 0
let POINTER = 0
let length = 0
if (arr.length === 0) {
return {
data: null,