Skip to content

Instantly share code, notes, and snippets.

View ShaggyTech's full-sized avatar

Brandon Eichler ShaggyTech

  • Texas, USA
View GitHub Profile
@ShaggyTech
ShaggyTech / NuxtServer.ts
Last active March 12, 2022 16:09
Setup files needed for Nuxt TypeScript Runtime - working hot module reloading, automatic browser updates
// ./server/NuxtServer.ts
import express from 'express'
import consola from 'consola'
import { Nuxt, Builder } from 'nuxt-edge'
import config from '../nuxt.config'
import { PORT } from './'
export class NuxtServer {
@ShaggyTech
ShaggyTech / git-checkout-all-branches.sh
Created April 2, 2020 16:08 — forked from ElfSundae/git-checkout-all-branches.sh
Git checkout all remote branches
#!/bin/bash
remote=origin ; for brname in `git branch -r | grep $remote | grep -v master | grep -v HEAD | awk '{gsub(/^[^\/]+\//,"",$1); print $1}'`; do git branch --track $brname $remote/$brname || true; done 2>/dev/null
<template>
<div>
<v-card
v-for="category in categories"
:key="category.idCategory"
class="mx auto"
max-width="344"
>
<v-img class="white--text align-end" :src="category.strCategoryThumb">
<v-card-title>{{ category.strCategory }}</v-card-title>
@ShaggyTech
ShaggyTech / jsdoc-schema.js
Last active November 17, 2022 17:03
JSDOC - Schema for validating JSDoc doclets
/**
* Schema for validating JSDoc doclets.
* @module jsdoc/schema
* @see <https://trac.tools.ietf.org/html/draft-wright-json-schema-validation-01>
*/
// JSON schema types
const ARRAY = 'array';
const BOOLEAN = 'boolean';
const NULL = 'null';
const NUMBER = 'number';
@ShaggyTech
ShaggyTech / FileUpload.vue
Last active January 20, 2019 08:13
Testing File Upload component
<template>
<v-container fluid id="fileUpload">
<v-layout>
<v-flex sm12 class="text-xs-center">
<v-btn
small
color="blue"
label="Select Files"
@click="pickFiles"
prepend-icon="attach_file"