Skip to content

Instantly share code, notes, and snippets.

View amritk's full-sized avatar
🏒

Amrit Kahlon amritk

🏒
View GitHub Profile
@amritk
amritk / vue.config.js
Created November 29, 2018 00:43
Automatically import components
const fs = require('fs')
// Get component names
const components = []
fs.readdir('src/components', function (err, items) {
for (var i = 0; i < items.length; i++) {
components.push(items[i].slice(0, -4))
}
});
@amritk
amritk / dragdrop.js
Last active April 19, 2017 18:33
Trying to get this dragdrop from this codrops article working on the latest version of dragabilly
/**
* dragdrop.js
* http://www.codrops.com
*
* Licensed under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*
* Copyright 2014, Codrops
* http://www.codrops.com
*