Skip to content

Instantly share code, notes, and snippets.

View freddydumont's full-sized avatar

Frédérick Morin freddydumont

View GitHub Profile
@freddydumont
freddydumont / pad-audio-1h
Created February 27, 2024 14:30
ffmpeg script to pad the start of an audio file with silence for a 1h total
#!/bin/bash
output_folder="padded_audio"
mkdir -p "$output_folder"
# Function to pad audio file and preserve metadata
function pad_audio() {
input_file=$1
duration=$(ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 "$input_file")
if (( $(bc <<< "$duration < 3600") )); then
Game
Board
mines generated?
isNotGenerated? -> Generate mines
isGenerated? -> Reveal
Generate mines
done? -> Reveal
Tile&
Active
Default*
LEFT_CLICK -> isMined?
RIGHT_CLICK -> Flag
isMined?
mined? -> End
not_mined? -> Reveal
Flag
RIGHT_CLICK -> Mark