Skip to content

Instantly share code, notes, and snippets.

👻

Mike Repec Flexicon

👻
View GitHub Profile
@Flexicon
Flexicon / pass-slots.md
Created Apr 28, 2020 — forked from loilo/pass-slots.md
Vue: Pass Slots through from Parent to Child Components
View pass-slots.md

Vue: Pass Slots through from Parent to Child Components

The Situation

  • We've got some components A, B and C which provide different slots.
    const A = {
      template: `<div><slot name="a">Default A Content</slot></div>`
    }
    
    const B = {
@Flexicon
Flexicon / gist:553186aea385d04205af12a94876a0ba
Created Sep 22, 2018
Lazy load NVM (from reddit user sscotth)
View gist:553186aea385d04205af12a94876a0ba
declare -a NODE_GLOBALS=(`find ~/.nvm/versions/node -maxdepth 3 -type l -wholename '*/bin/*' | xargs -n1 basename | sort | uniq`)
NODE_GLOBALS+=("node")
NODE_GLOBALS+=("nvm")
load_nvm () {
export NVM_DIR=~/.nvm
[ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh"
}
@Flexicon
Flexicon / git-deployment.md
Created Mar 2, 2018 — forked from noelboss/git-deployment.md
Simple automated GIT Deployment using Hooks
View git-deployment.md

Simple automated GIT Deployment using GIT Hooks

Here are the simple steps needed to create a deployment from your lokal GIT repository to a server based on this in-depth tutorial.

How it works

You are developing in a working-copy on your local machine, lets say on the master branch. Most of the time, people would push code to a remote server like github.com or gitlab.com and pull or export it to a production server. Or you use a service like my Deepl.io to act upon a Web-Hook that's triggered that service.

You can’t perform that action at this time.