-
ConsumerTrack, Inc.
- Los Angeles, CA
- http://jeremy.freehill.me
Pinned Loading
-
-
Reduce Examples
Reduce Examples 1// Whitelist an object
2function whitelist(obj, keyList) {
3return keyList.reduce((acc, key) => {
4if (Object.keys(obj).indexOf(key) > -1) {
5acc[key] = obj[key];
-
akro-vue
akro-vue PublicVueJS conversion of a small Angular site I made based on "Acrophobia"
JavaScript
-
Drop all git stashes 10 and up
Drop all git stashes 10 and up 1# Drop old stashes, starting in double digits
2git stash list | grep -o 'stash@{[1-9][0-9]\+}' | sort -r | xargs -n 1 git stash drop
3# 1. list stashes
4# 2. filter all with 2 or more digits and show only found text (-o)
5# 3. reverse sort to drop from highest number (may have issues once over 99)
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.