Skip to content

Instantly share code, notes, and snippets.

View margauxflores's full-sized avatar
🖐️
Looking for fun projects to help out with!

Margaux Flores margauxflores

🖐️
Looking for fun projects to help out with!
View GitHub Profile
# TypeScript declaration to use $style in a Vue CSS Modules setup
import Vue from 'vue';
declare module 'vue/types/vue' {
interface Vue {
$style: { [key: string]: string };
}
}
import { ReCaptchaInstance } from 'recaptcha-v3';
declare module '@vue/runtime-core' {
interface ComponentCustomProperties {
$recaptcha: (action: string) => Promise<string>;
$recaptchaLoaded: () => Promise<boolean>;
$recaptchaInstance: ReCaptchaInstance;
}
}
@margauxflores
margauxflores / branch-cleanup.sh
Last active January 19, 2022 02:14
Clean Up Local Git Branches
# For the master branch
# Delete all local branches except master
$ git branch | grep -v "master" | xargs git branch -D
# Delete all local branches except those containing 'master'
$ git branch | grep -ve " master$" | xargs git branch -D
---
# For the develop branch
@margauxflores
margauxflores / gulpfile.js
Last active August 28, 2019 14:17
Gulp Boilerplate
// File Paths
var paths = {
input: 'src/**/*',
output: 'dist/',
js: {
input: 'src/js/**/*.js',
output: 'dist/js/'
},
css: {
input: 'src/scss/**/*.scss',