Skip to content

Instantly share code, notes, and snippets.

View diegovillacis10's full-sized avatar
🏠
Working from home

Diego Villacís diegovillacis10

🏠
Working from home
View GitHub Profile

Keybase proof

I hereby claim:

  • I am diegovillacis10 on github.
  • I am diegovillacis10 (https://keybase.io/diegovillacis10) on keybase.
  • I have a public key ASAn-KGafw7jkudy6OUEZmxDEZ-ldqneBm8Yy9COn3zPwQo

To claim this, I am signing this object:

@diegovillacis10
diegovillacis10 / babel6_export_default.md
Created September 7, 2016 17:24 — forked from ldong/babel6_export_default.md
Babel no longer transform `export default` to `module.exports`

Babel 6 no longer transform export default like babel 5

Note

From var a = require('./a'); to var a = require('./a').default;

See [Repo](for demo)

Babel 5

@diegovillacis10
diegovillacis10 / docker-machine.sh
Last active June 17, 2016 15:17 — forked from skatsuta/docker-machine.sh
Tired of running `eval "$(docker-machine env host)"` every time? Just paste this in .bashrc / .zshrc. This script automatically sets environment variables for one of running host machines in Docker Machine.
# check if `docker-machine` command exists
if command -v docker-machine > /dev/null; then
local machine_name=default
local machine_status=$(docker-machine status $machine_name)
if [ "$machine_status" = "Running" ]; then
eval "$(docker-machine env $machine_name)"
fi
fi