This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Auto-scroll to load all videos in the playlist | |
| let scrollInterval = setInterval(() => { | |
| window.scrollBy(0, 1200); | |
| if (window.scrollY + window.innerHeight >= document.body.scrollHeight - 800) { | |
| clearInterval(scrollInterval); | |
| console.log("✅ Scrolling finished – all videos should be loaded. Now run the extraction script."); | |
| } | |
| }, 700); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from faster_whisper import WhisperModel | |
| from tqdm import tqdm | |
| # --- Config --- | |
| INPUT_FILE = "audio.wav" | |
| MODEL_NAME = "large-v3" | |
| # --- Initialize model --- | |
| # CTranslate2 does not support MPS; int8 on CPU is much faster than openai/whisper FP32 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const c = { | |
| "AF": { | |
| "Country": "Afghanistan", | |
| "Alpha-2 code": "AF", | |
| "Alpha-3 code": "AFG", | |
| "Numeric code": 4, | |
| "Latitude (average)": 33, | |
| "Longitude (average)": 65, | |
| "emoji_flag": "🇦🇫" | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <div> | |
| <nav-bar /> | |
| <router-view v-slot="{ Component }"> | |
| <transition @enter="fadeIn" @leave="fadeOut" v-bind:css="false" mode="out-in"> | |
| <component :is="Component" /> | |
| </transition> | |
| </router-view> | |
| </div> | |
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # command for burning to flash drive | |
| sudo dd if=yourISO.iso of=/dev/sdb status=progress | |
| # delete all node modules in dir | |
| find . -name 'node_modules' -type d -prune -print -exec rm -rf '{}' \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { defineStore } from 'pinia' | |
| import { useStorage } from '@vueuse/core' | |
| export const useMainStore = defineStore({ | |
| id: 'main', | |
| state: () => ({ | |
| todos: useStorage('todos', []) | |
| }), | |
| getters: { | |
| getAllTodos() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <template> | |
| <input type="text" v-model="mytodo" /> | |
| <button @click="AddTodo">Add Todo</button> | |
| <div v-if="!isEmpty"> | |
| <p v-for="(todo, index) in todos" :key="index"> | |
| {{ index }}. {{ todo }} <button @click="removeTodo(index)">delete</button> | |
| </p> | |
| </div> | |
| <div v-else>No todos found</div> | |
| </template> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { defineStore } from 'pinia' | |
| export const useMainStore = defineStore({ | |
| id: 'main', | |
| state: () => ({ | |
| todos: [], | |
| }), | |
| getters: { | |
| getAllTodos() { | |
| return this.todos |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8" /> | |
| <link rel="icon" type="image/svg+xml" href="favicon.svg" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0" /> | |
| <title>Vite App</title> | |
| </head> | |
| <body> | |
| <fieldset> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import Vue from 'vue'; | |
| import Vuex from 'vuex'; | |
| import createPersistedState from "vuex-persistedstate"; | |
| Vue.use(Vuex); | |
| export const store = new Vuex.Store({ | |
| plugins: [createPersistedState()], | |
| state: { | |
| scrums: [], | |
| activescrum: '', |
NewerOlder