Skip to content

Instantly share code, notes, and snippets.

View maxjing's full-sized avatar

Jing Wen maxjing

View GitHub Profile
{
"workbench.colorTheme": "Oceanic Next (dimmed bg)",
"files.autoSave": "onFocusChange",
"editor.minimap.enabled": true,
"workbench.statusBar.visible": true,
"workbench.activityBar.visible": true,
"editor.formatOnSave": false,
"workbench.colorCustomizations": {
"statusBar.background": "#333333",
@maxjing
maxjing / js.js
Created October 30, 2018 20:27
es6Notes
const map = new Map();
map.set('first', 'hello');
map.set('second', 'world');
for (let [key, value] of map) {
console.log(key + " is " + value);
}
JSONObject jsonObject = new JSONObject(String.format("{\"lower\":%d, \"upper\":%d}", lower, upper));
String ratingFilterInput = Util.encodeValue(jsonObject.toString());
@maxjing
maxjing / ss
Created October 17, 2018 03:50
#ss
ss
private static final long SEED = 2873123;
private static final Random RANDOM = new Random(SEED);
RANDOM.nextInt(3)
//result will be one of 0,1,2