Skip to content

Instantly share code, notes, and snippets.

View do-adams's full-sized avatar
:octocat:
All things web 🙌

Damian Adams do-adams

:octocat:
All things web 🙌
View GitHub Profile
@do-adams
do-adams / convert-m2w.ts
Last active April 14, 2025 22:37
Convert .mp4 to. webm with ffmpeg using Vuetify 2.x breakpoints
#!/usr/bin/env tsx
import { execSync } from 'child_process'
import { existsSync } from 'fs'
import { extname } from 'path'
interface VideoConfig {
name: string
resolution: string
bitrate: string
@do-adams
do-adams / tour_of_reactive.js
Created June 11, 2022 17:50
A Tour of reactive
// A Tour of reactive()
import { reactive, ref, watch } from 'vue'
/**
reactive() - Type Definition:
function reactive<T extends object>(target: T): UnwrapNestedRefs<T>
**/
@do-adams
do-adams / tour_of_ref.js
Created June 11, 2022 17:47
A Tour of ref
// A Tour of ref()
import { ref, reactive } from 'vue'
/**
ref() - Type Definition:
function ref<T>(value: T): Ref<UnwrapRef<T>>
interface Ref<T> {