Skip to content

Instantly share code, notes, and snippets.

View hgarciaalberto's full-sized avatar
🏠
Working from home

Alberto hgarciaalberto

🏠
Working from home
View GitHub Profile
@hgarciaalberto
hgarciaalberto / GoogleMapsServicesCoroutineAdapter.kt
Created June 5, 2023 14:51 — forked from gildor/GoogleMapsServicesCoroutineAdapter.kt
Kotlin coroutines adapter for google-maps-services-java (Google Maps API client)
import com.google.maps.GeoApiContext
import com.google.maps.GeocodingApi
import com.google.maps.PendingResult
import kotlinx.coroutines.suspendCancellableCoroutine
import kotlin.coroutines.resume
import kotlin.coroutines.resumeWithException
/**
* Coroutine adapter for Google Maps API future type [PendingResult]
*
@hgarciaalberto
hgarciaalberto / waracle_test_data.json
Last active June 9, 2022 01:29
Waracle test data
[
{
"title":"Lemon cheesecake",
"desc":"A cheesecake made of lemon",
"image":"https://s3-eu-west-1.amazonaws.com/s3.mediafileserver.co.uk/carnation/WebFiles/RecipeImages/lemoncheesecake_lg.jpg"
},
{
"title":"victoria sponge",
"desc":"sponge with jam",
"image":"https://upload.wikimedia.org/wikipedia/commons/0/05/111rfyh.jpg"