Skip to content

Instantly share code, notes, and snippets.

View wrozwad's full-sized avatar

Wojciech Rozwadowski wrozwad

View GitHub Profile
@krzmaz
krzmaz / NapiprojektSubtitlesDownloader
Created May 5, 2025 21:41
Napiprojekt subtitles download script
#!/bin/sh
# Napiprojekt Subtitles download by ID
# A crude script which allows you to download movie subtitles from Napiprojekt servers by their ID.
# To get the ID go to the webpage https://www.napiprojekt.pl/napisy-szukaj,
# search for desired title, go to subtitles catalogue and get the ID from the links
# Then, just run it with the ID as parameter :
# ./NapiprojektSubtitlesDownloader d05ce44cda59d7ab5217aae63f1da8dc
# base64 command has a different set of arguments on Mac
case $(uname) in
@svenjacobs
svenjacobs / ContentLoadingLayout.kt
Created January 6, 2022 10:08
A composable inspired by ContentLoadingProgressBar
import androidx.compose.runtime.*
import androidx.compose.runtime.saveable.rememberSaveable
import kotlinx.coroutines.delay
import kotlin.time.Duration
import kotlin.time.ExperimentalTime
/**
* Inspired by View-based [ContentLoadingProgressBar](https://developer.android.com/reference/androidx/core/widget/ContentLoadingProgressBar).
*
* Waits `minDelayDuration` until contents of `loading` composable is shown when `isLoading` is