Skip to content

Instantly share code, notes, and snippets.

Avatar

Ssuching Yu SiqingYu

View GitHub Profile
View .vimrc
" Turn on line numbering
set number
" This will set your path variable to current directory (from which you launched vim) and to all directories under current directory recursively.
set path=$PWD/**
" Highlight all search pattern matches
set hlsearch
" control the number of space characters that will be inserted when the tab key is pressed (default 8)
@SiqingYu
SiqingYu / console-copy-articles.js
Last active May 22, 2020
Copy article titles and links from browser console.
View console-copy-articles.js
var items = document.querySelectorAll('div.discuss-main.clearfix');
var articles = new Array();
items.forEach(element => {
var href = element.childNodes[0].href;
var title = element.childNodes[0].innerText;
var article = title + ' ' + href;
articles.push(article);
});
copy(articles);
View gist:71233a89c33fad47a4bcb2f48a155409
### Keybase proof
I hereby claim:
* I am siqingyu on github.
* I am siqingyu (https://keybase.io/siqingyu) on keybase.
* I have a public key ASAjB9XkM-Ee_leteFjmHCxOnfNKwFSxhDkhhDgldfbGwAo
To claim this, I am signing this object: