Skip to content

Instantly share code, notes, and snippets.

@stavfx
stavfx / FadeDialogSceneStrategy.kt
Last active June 2, 2026 23:02
Jetpack Navigation 3 SceneStrategy that renders an entry as a translucent Compose Dialog with a cross-faded enter/exit animation, suppressing the platform's default dialog window animation.
package app.eluvio.mobile.navigation
import android.view.WindowManager
import androidx.compose.animation.core.Animatable
import androidx.compose.animation.core.tween
import androidx.compose.foundation.layout.Box
import androidx.compose.foundation.layout.fillMaxSize
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.SideEffect
@stavfx
stavfx / install-unquarantine-mount.sh
Created May 28, 2026 17:44
Apple quarantine bypass
#!/bin/bash
# install-unquarantine-mount.sh
#
# Builds a small AppleScript applet that strips the com.apple.quarantine
# attribute from a DMG before mounting it, so apps installed from that
# DMG launch without the "no Open button" Gatekeeper dialog.
#
# Usage:
# bash install-unquarantine-mount.sh
#
@stavfx
stavfx / asdb.py
Created May 4, 2017 22:19
A wrapper over ADB that will handle multiple devices gracefully
#!python.exe
import site
import subprocess
import sys
import os
DEVICES_START = "List of devices attached"
@stavfx
stavfx / Logger.java
Last active December 24, 2015 13:49
Android Logger class that prints out info about the calling method, just call Log.w("msg") but still get a detailed log and never forget where that log call came from :)
/**
* Created by StavFX on 10/3/13.
*/
public class Log {
private static final boolean DEBUG = true;
private static final String NEW_LINE = System.getProperty("line.separator");
public static void w(String tag, String msg) {
log(tag, msg);
}