Skip to content

Instantly share code, notes, and snippets.

View joedski's full-sized avatar
💭
Ætheric

Joe joedski

💭
Ætheric
View GitHub Profile
@joedski
joedski / HOC-after-2.2.0.js
Created February 14, 2018 14:14 — forked from cades/HOC-after-2.2.0.js
higher-order component for vue.js 2
export default function(WrappedComponent) {
const mixinProps = (WrappedComponent.mixins || [])
.filter((mixin) => mixin.props)
.map((mixin) => mixin.props);
const allProps = mixinProps.concat(WrappedComponent.props);
const mergedProps = allProps.reduce((merged, props) => Object.assign(merged, props), {});
return {
props: mergedProps,
render(createElement) {
@joedski
joedski / README.md
Last active August 29, 2015 14:01 — forked from nicerobot/README.md

To run this, you can try:

curl -ks https://gist.github.com/nicerobot/2697848/raw/uninstall-node.sh | bash

I haven't tested this script doing it this way but i run a lot of my Gists like this so maybe this one'll work too.

Alternatively,

curl -ksO https://gist.github.com/nicerobot/2697848/raw/uninstall-node.sh

chmod +x ./uninstall-node.sh