Skip to content

Instantly share code, notes, and snippets.

View harveyqiu's full-sized avatar
😶‍🌫️

Harvey Qiu harveyqiu

😶‍🌫️
View GitHub Profile
fzf --preview '([[ -f {} ]] && (bat --style=numbers --color=always --theme=Nord {} || textutil -stdout -cat txt {} || cat {})) || ([[ -d {} ]] && (tree -C {} | less)) || echo {} 2> /dev/null | head -200'
@harveyqiu
harveyqiu / gist:d00d816b3450ff3544f6ce659bf30b4c
Created September 6, 2022 06:24
extract cnki eassy reference and add double brackets
Array.from(document.querySelector('.ebBd').querySelectorAll('li')).map(element => "[[" + element.querySelector('a').text + "]]")