Skip to content

Instantly share code, notes, and snippets.

View srseibs's full-sized avatar

srseibs

  • Santa Rosa, CA USA
View GitHub Profile
@tahaak67
tahaak67 / RememberWindowInfo.kt
Created February 23, 2023 10:32
A utility fun for compose to determin if current device is a phone (compact) or tablet (medium / expanded)
import androidx.compose.runtime.Composable
import androidx.compose.ui.platform.LocalConfiguration
import androidx.compose.ui.unit.Dp
import androidx.compose.ui.unit.dp
@Composable
fun rememberWindowInfo(): WindowInfo {
val configuration = LocalConfiguration.current
return WindowInfo(
@stellasphere
stellasphere / descriptions.json
Last active July 18, 2024 09:07
WMO weather interpretation code descriptions (& images)
{
"0":{
"day":{
"description":"Sunny",
"image":"http://openweathermap.org/img/wn/01d@2x.png"
},
"night":{
"description":"Clear",
"image":"http://openweathermap.org/img/wn/01n@2x.png"
}