Skip to content

Instantly share code, notes, and snippets.

View pakal's full-sized avatar

Pascal Chambon pakal

View GitHub Profile
@wildrun0
wildrun0 / compile-ffmpeg.sh
Last active May 23, 2024 09:36
Compiling ffmpeg for Raspberry Pi 4 (script only works fine on RPi OS 32bit). x64 does not support mmal (see https://github.com/raspberrypi/userland/issues/688)
#!/bin/bash
# Note that there's no libdrm because this lib cause errors
sudo apt update -y && sudo apt upgrade -y
sudo apt-get -y install \
autoconf \
automake \
build-essential \
@Dirk-Sandberg
Dirk-Sandberg / main.m snippet
Created December 23, 2019 03:18
How to determine if the top notch exists on iOS with python/kivy/pyobjus
@interface NotchDetector : UIViewController
@end
@implementation NotchDetector
-(id)init {
NSLog(@"initializing NotchDetector");
return self;
}
- (BOOL)hasTopNotch {
if (@available(iOS 13.0, *)) {