Skip to content

Instantly share code, notes, and snippets. 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 / Analytics.kt
Last active Feb 14, 2019
Writing SOLID Analytics With Kotlin for Android - Check out the UPDATED GitHub Repo:
View Analytics.kt
// 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.
class Analytics(private vararg val dispatchers: AnalyticsDispatcher) {
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.util.AttributeSet
import android.view.View
import java.util.*
import java.util.concurrent.Executors
You can’t perform that action at this time.