Skip to content

Instantly share code, notes, and snippets.

View feresr's full-sized avatar

Fernando Raviola feresr

View GitHub Profile
private val BottomAxisLabelKey = ExtraStore.Key<List<String>>()
private val LegendLabelKey = ExtraStore.Key<Set<String>>()
private val BottomAxisValueFormatter = CartesianValueFormatter { context, x, _ ->
context.model.extraStore[BottomAxisLabelKey][x.toInt()]
}
@Composable
fun Chart(
modifier: Modifier,
@feresr
feresr / gist:a3e7fed0aff7985bd5942d6a88ee52ae
Created January 22, 2025 07:01
Showing All Issues Compilation failed: not array: KClass<out Annotation>
Showing All Issues
Build Archive
Run xcodebuild archive
Run command: 'xcodebuild archive -project /Volumes/workspace/repository/iosApp/iosApp.xcodeproj -scheme overload-release -destination generic/platform=iOS -archivePath /Volumes/workspace/build.xcarchive -derivedDataPath /Volumes/workspace/DerivedData -resultBundleVersion 3 -resultBundlePath /Volumes/workspace/resultbundle.xcresult -resultStreamPath /Volumes/workspace/tmp/resultBundleStreambe11d1fb-54f1-4910-b63d-f7ed8be354cf.json -IDEPostProgressNotifications=YES CODE_SIGN_IDENTITY=- AD_HOC_CODE_SIGNING_ALLOWED=YES CODE_SIGN_STYLE=Automatic DEVELOPMENT_TEAM=93HAKDYRWZ COMPILER_INDEX_STORE_ENABLE=NO -hideShellScriptEnvironment'
Command exited with non-zero exit-code: 65
Showing Recent Messages
* Exception is:
org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':composeApp:kspKotlinIosArm64'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.lambda$executeIfValid$1(ExecuteActionsTaskExecuter.java:130)
at org.gradle.internal.Try$Failure.ifSuccessfulOrElse(Try.java:293)
Showing Recent Messages
Here are the highlights of this release:
- Support for Java 23
- Faster configuration cache
@feresr
feresr / overload_privacy_policy.md
Last active December 19, 2024 10:57
Overload - Privacy Policy

Privacy Policy

This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use Overload.

If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Overload unless otherwise defined in this Privacy Policy.

Information Collection and Use

Introduction
This Terms of Service agreement ("Agreement") is entered into by and between Stax Technologies ("Company," "we," or "us") and the individual or entity ("User," "you," or "your") accessing or using the Stax service.
Acceptance of Terms
By accessing or using the Stax service, you agree to be bound by the terms and conditions of this Agreement. If you do not agree, you may not use the service.
User Accounts
Users must create an account to use Stax. Account holders are responsible for maintaining the confidentiality of their account information.
App Usage
@feresr
feresr / .vimrc
Last active June 8, 2022 20:21
My vim config
"TODO: install Ag: brew install the_silver_searcher
" Maintainer: Bram Moolenaar <[email protected]>
" Last change: 2008 Jul 02
"
" To use it, copy it to
" for Unix and OS/2: ~/.vimrc
" for Amiga: s:.vimrc
" for MS-DOS and Win32: $VIM\_vimrc
" for OpenVMS: sys$login:.vimrc
package com.glovoapp.notification.in_app_notification
import io.reactivex.Observable
import io.reactivex.Single
import io.reactivex.android.schedulers.AndroidSchedulers
import io.reactivex.schedulers.Schedulers
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.async
import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.coroutineScope
@feresr
feresr / ImageView.kt
Created July 21, 2021 14:23
ImageView
fun ImageView.loadFromCloudinary(
resource: String,
onSuccess: () -> Unit = {},
onError: () -> Unit = {},
configure: (RequestBuilder<Drawable>) -> Unit = {},
mediaManager : MediaManager = MediaManager.get()
) = doOnLayout {
val transformation: EagerTransformation? = EagerTransformation().fetchFormat("webp")
val cloudinaryUrl = mediaManager.url().transformation(transformation)
mediaManager.responsiveUrl(ResponsiveUrl.Preset.AUTO_FILL)
class EditorViewModel : ViewModel() {
private var appliedFilters = MutableStateFlow(sortedMapOf<FILTER, FloatArray>())
val lightContextualViewModel = SliderContextualViewModel(
onFilterChanged = ::onValueChanged,
filterFlow = appliedFilters.map {
it.filterKeys { listOf(FILTER.EXPOSURE, FILTER.GRAIN, FILTER.VIBRANCE).contains(it) }
},
onFilterCommitted = history::onCommit