Skip to content

Instantly share code, notes, and snippets.

View toddmath's full-sized avatar
🏋️‍♂️
getting stuff done

Todd Matheson toddmath

🏋️‍♂️
getting stuff done
View GitHub Profile
@toddmath
toddmath / SCAN_CORRUPTED_VIDEOS.md
Last active August 18, 2025 03:14 — forked from ridvanaltun/SCAN_CORRUPTED_VIDEOS.md
How to check if a video file is corrupted?

Install ffmpeg for macOS

brew install ffmpeg

Command for scanning a single file. Will generate a log file, if there's no error, the log file will be empty.

ffmpeg -v error -i \path\to\file.avi -f null - >error.log 2>&1
@toddmath
toddmath / settings.json
Created December 9, 2024 21:40 — forked from cjkihl/settings.json
TailwindCSS Config for Autocomplete
{
// Config for VsCode Tailwind CSS IntelliSense extension for React
// Type hints for className and class attributes
"tailwindCSS.classAttributes": [
"class",
"className",
],
// Type hints for variables and properties ending with *className
"tailwindCSS.experimental.classRegex": [
@toddmath
toddmath / openelm-coreml.py
Created May 25, 2024 04:47 — forked from pcuenca/openelm-coreml.py
Convert OpenELM to Core ML (float32)
import argparse
import numpy as np
import torch
import torch.nn as nn
import coremltools as ct
from transformers import AutoTokenizer, AutoModelForCausalLM
# When using float16, all predicted logits are 0. To be debugged.
compute_precision = ct.precision.FLOAT32
compute_units = ct.ComputeUnit.CPU_ONLY
@toddmath
toddmath / SassMeister-input.scss
Created December 11, 2019 07:42
Precise control over responsive typography for Sass
// ----
// Sass (vundefined)
// Compass (vundefined)
// dart-sass (v1.6.2)
// ----
// =============================================================================
//
// PRECISE CONTROL OVER RESPONSIVE TYPOGRAPHY FOR SASS
// ---------------------------------------------------