Skip to content

Instantly share code, notes, and snippets.

@shsmad
shsmad / .eslintrc.js
Created October 11, 2021 14:49 — forked from marcospgp/.eslintrc.js
An example ESLint configuration for typescript to be used with the VSCode ESLint plugin. It's built with airbnb-base, prettier, and most well known ESLint plugins. It took a long time to configure so I thought it should be shared for others to reuse.
module.exports = {
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "./tsconfig.json"
},
"extends": [
"eslint:recommended",
"airbnb-base",
"plugin:eslint-comments/recommended",
"plugin:promise/recommended",
@shsmad
shsmad / debugtoolbar.py
Created November 28, 2021 17:57 — forked from dahlia/debugtoolbar.py
Flask-DebugToolbar without Flask-SQLAlchemy
""":mod:`crosspop.web.debugtoolbar` --- :pypi:`Flask-DebugToolbar` customization
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Some of objects in this module are compied from :pypi:`Flask-SQLAlchemy`
extension. Most of customization is removing dependencies on
:pypi:`Flask-SQLAlchemy` and making it to use internal database modules
(:mod:`crosspop.orm` and :mod:`crosspop.web.db`) instead.
This module is full of monkey patches! :-( Although it works well anyway.
@shsmad
shsmad / v-tabs-fix.vue
Created December 5, 2021 17:06 — forked from abhaywawale/v-tabs-fix.vue
This will fix the active tab issue
<template>
<v-container fluid>
<v-layout align-start justify-center>
<v-flex xs4 class="elevation-2 ma-2">
<v-tabs v-model="model" color="cyan" dark slider-color="yellow">
<draggable v-model="tabs" class="v-tabs__container" @update="tabUpdate">
<v-tab v-for="(tab, index) in tabs" :key="index" :href="`#tab-${index}`">
{{ tab.name }}
</v-tab>
</draggable>