Skip to content

Instantly share code, notes, and snippets.

cookiebits.io sofakingforever

Block or report user

Report or block sofakingforever

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@sofakingforever
sofakingforever / Analytics.kt
Last active Feb 14, 2019
Writing SOLID Analytics With Kotlin for Android - Check out the UPDATED GitHub Repo: https://github.com/sofakingforever/kotlin-analytics/
View Analytics.kt
package com.sofakingforever.analytics
// This code demonstrates how you could (should) decouple analytics libraries
// (or anything else) from your business logic code,
// effectively allowing you to add & remove analytics services on-the-fly.
// https://medium.com/@nadavfima/how-to-build-better-analytics-with-kotlin-60ab50ce25ac
class Analytics(private vararg val dispatchers: AnalyticsDispatcher) {
@sofakingforever
sofakingforever / AnimatedStarsView.kt
Last active Apr 26, 2019
Draw animated stars on Android view canvas - written in Kotlin - crafted with ❤️ by sofakingforever
View AnimatedStarsView.kt
package com.sofaking.moonworshipper.view
import android.content.Context
import android.graphics.Canvas
import android.graphics.Paint
import android.graphics.RectF
import android.util.AttributeSet
import android.view.View
import java.util.*
import java.util.concurrent.Executors
You can’t perform that action at this time.