Skip to content

Instantly share code, notes, and snippets.

SiqingYu /
Created May 17, 2022
Learning Java 5e Passing Reference
class Foo {
private int bar;
public Foo() {}
public Foo(int bar) { = bar;
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 / 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;
View gist:71233a89c33fad47a4bcb2f48a155409
### Keybase proof
I hereby claim:
* I am siqingyu on github.
* I am siqingyu ( on keybase.
* I have a public key ASAjB9XkM-Ee_leteFjmHCxOnfNKwFSxhDkhhDgldfbGwAo
To claim this, I am signing this object: