Skip to content

Instantly share code, notes, and snippets.

View Lunrtick's full-sized avatar

Gabriel Soicher Lunrtick

  • Groningen, the Netherlands
View GitHub Profile
@Lunrtick
Lunrtick / .eslintrc
Created May 31, 2018 16:29
My ESLintrc file
// http://eslint.org/docs/user-guide/configuring
module.exports = {
extends: ['eslint:recommended', 'plugin:vue/recommended'],
root: true,
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module'
},
env: {
@Lunrtick
Lunrtick / index.sh
Created May 16, 2018 09:27
Bash recursively rename files by extenstion, here with js -> mjs
find . -iname "*.js" -exec rename -v 's/\.js$/\.mjs/i' {} \;
tooltips: {
callbacks: {
label: function(tooltipItem, data) {
return "$ " + Number(data.datasets[0].data[tooltipItem.index]).toFixed(0).replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}
}
}