Skip to content

Instantly share code, notes, and snippets.

View adiehl96's full-sized avatar

Arne Diehl adiehl96

View GitHub Profile
@riotbib
riotbib / openai-whisper-silence-zdf.md
Created June 15, 2023 19:07
"Untertitel im Auftrag des ZDF, 2017"

OpenAI's whisper was most likely trained on subtitled videos by German public-service television broadcaster ZDF.

Whisper "is a general-purpose speech recognition model […] trained on a large dataset of diverse audio", as it's written in the project's README.

A clear indication is the (so to say) transcription of silent audio to text saying "Untertitel im Auftrag des ZDF, 2017".

This sentence may be seen in videos of ZDF's youth program Funk. One example may be a 2017 video of Funk's format musstewissen Mathe at the end of the video.

Thus, Whisper translates silence into copyright notices.

function onVisibilityChange(callback) {
let visible = true;
const focused = () => {
if (!visible) callback((visible = true));
}
const unfocused = () => {
if (visible) callback((visible = false));
}
@andrejilderda
andrejilderda / system-colors.swift
Last active March 26, 2024 11:44 — forked from jcarpenter/swift
Output system colors from macOS
import Cocoa
print("\n/* -------------- System Colors -------------- */")
// See: https://developer.apple.com/design/human-interface-guidelines/macos/visual-design/color/#system-colors
print("systemBlue:", NSColor.systemBlue.rgbaCssString)
print("systemBrown:", NSColor.systemBrown.rgbaCssString)
print("systemGray:", NSColor.systemGray.rgbaCssString)
print("systemGreen:", NSColor.systemGreen.rgbaCssString)
print("systemIndigo:", NSColor.systemIndigo.rgbaCssString)
@tayfie
tayfie / 4chan-wget-scraping.md
Created March 14, 2017 04:36
how to scrape images from 4chan using wget

How To Scrape Images from 4chan Using Wget

This guide is to save other sorry plebs from needing to RTFM in figuring out how to use wget to scrape images from 4chan and other imageboards. There are lots of image downloaders in existence, but they are usually outdated and broken. You will save time following this guide to learn how to use a powerful and general purpose tool instead.

What Is Wget?

Wget is a command-line file downloader that can handle just about any file downloading task normal and power users will ever need to do. It has versions available for Windows, Mac, and Linux. If it is not already installed on your machine, install it now.

Basic syntax