Skip to content

Instantly share code, notes, and snippets.

View nilesolutions's full-sized avatar

Ahmed Samy nilesolutions

View GitHub Profile
@nilesolutions
nilesolutions / v-tabs-problem.vue
Created February 25, 2021 08:21 — forked from abhaywawale/v-tabs-problem.vue
The v-tabs had a problem in showing corrent indicator after drag-n-drop
<template>
<v-container fluid>
<v-layout align-start justify-center>
<v-spacer></v-spacer>
<v-flex xs4 class="elevation-1 pa-3 ma-2">
<v-tabs v-model="active" color="cyan" dark slider-color="yellow">
<draggable v-model="tabs" class="v-tabs__container">
<v-tab v-for="tab in tabs" :key="tab.id" ripple>
{{ tab.name }}
</v-tab>
@nilesolutions
nilesolutions / v-tabs-fix.vue
Created February 25, 2021 08:23 — 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>
@nilesolutions
nilesolutions / lambda-handler.js
Created May 13, 2021 14:30 — forked from raecoo/lambda-handler.js
AWS S3 + Lambda + Elastic Transcoder to encode incoming media files automagically
/*
* Copyright (C) 2016 Raecoo Cao
* See LICENSE for the copy of MIT license
*/
// https://support.google.com/youtube/answer/2853702?hl=zh-Hans
// BEGIN Lambda configuration
//
var pipelineId = '1481448705022-x1efcv'; // change to your pipeline!