Skip to content

Instantly share code, notes, and snippets.

View aizigao's full-sized avatar
😎

aizigao

😎
View GitHub Profile
@aizigao
aizigao / README.md
Created November 18, 2020 15:50 — forked from chuyik/README.md
macOS 给 Git(Github) 设置代理(HTTP/SSH)
@aizigao
aizigao / lodashGetAlternative.js
Created June 11, 2018 01:37 — forked from jeneg/lodashGetAlternative.js
Alternative to lodash get method _.get()
function get(obj, path, def) {
var fullPath = path
.replace(/\[/g, '.')
.replace(/]/g, '')
.split('.')
.filter(Boolean);
return fullPath.every(everyFunc) ? obj : def;
function everyFunc(step) {
@aizigao
aizigao / 0_reuse_code.js
Created February 7, 2017 08:14
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console