Skip to content

Instantly share code, notes, and snippets.

@jasonayre
jasonayre / get_instance_methods.js
Created May 19, 2019 01:09
getInstanceMethods
function isGetter (obj, prop) {
return !!obj.__lookupGetter__(prop)
}
export const getInstanceMethods = (obj) => {
let keys = []
let topObject = obj
const onlyOriginalMethods = (p, i, arr) => {
return !isGetter(topObject, p) &&
@taoyuan
taoyuan / npm-using-https-for-git.sh
Last active July 18, 2024 05:36
Force git to use https:// instead of git://
# npm using https for git
git config --global url."https://github.com/".insteadOf git@github.com:
git config --global url."https://".insteadOf git://
# npm using git for https
git config --global url."git@github.com:".insteadOf https://github.com/
git config --global url."git://".insteadOf https://