Skip to content

Instantly share code, notes, and snippets.

@hawkkiller
hawkkiller / shimmer.dart
Created September 9, 2025 14:30
Shimmer implemented with linear gradient and a shimmer implemented with custom shader.
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart';
class Shimmer extends StatefulWidget {
const Shimmer({super.key, this.size, this.child});
/// The size of the shimmer effect.
///
/// Either this or [child] must be provided.
/// If both are provided, [child] takes precedence.
@stenuto
stenuto / hls.sh
Created November 7, 2024 16:58
HLS ffmpeg script
#!/bin/bash
# Function to display usage information
usage() {
echo "Usage: $0 /path/to/input.mp4 [ /path/to/output_directory ]"
exit 1
}
# Check if at least one argument (input file) is provided
if [ $# -lt 1 ]; then