Skip to content

Instantly share code, notes, and snippets.

View phiter's full-sized avatar
💭
Probably working on something cool

Phiter Fernandes phiter

💭
Probably working on something cool
View GitHub Profile
@phiter
phiter / karabiner.json
Created December 2, 2022 15:13
Karabiner
{
"global": {
"check_for_updates_on_startup": true,
"show_in_menu_bar": true,
"show_profile_name_in_menu_bar": false
},
"profiles": [
{
"complex_modifications": {
"parameters": {
@phiter
phiter / docgen.js
Last active March 4, 2022 19:29
Generate vetur component tags with vue-docgen-api
const { promisify } = require('util');
const fs = require('fs');
const glob = promisify(require('glob'));
const { parse } = require('vue-docgen-api');
const convertToKebabCase = str => (
str
.match(/[A-Z]{2,}(?=[A-Z][a-z]+[0-9]*|\b)|[A-Z]?[a-z]+[0-9]*|[A-Z]|[0-9]+/g)
.map(x => x.toLowerCase())
.join('-')