Skip to content

Instantly share code, notes, and snippets.

<hr>
<p><strong>Advertisement 😃</strong></p>
<ul>
<li><strong><a href="https://nodeca.github.io/pica/demo/">pica</a></strong> - high quality and fast image
resize in browser.</li>
<li><strong><a href="https://github.com/nodeca/babelfish/">babelfish</a></strong> - developer friendly
i18n with plurals support and easy syntax.</li>
</ul>
<p>You will like those projects!</p>
<hr>
@zainulhassan815
zainulhassan815 / TailwindColor.kt
Created February 14, 2022 16:25
Tailwind CSS Colors (v3) for jetpack compose
import androidx.compose.ui.graphics.Color
data class TailwindColor(
val primary: Color,
private val swatch: Map<Int, Long>,
) {
operator fun get(index: Int) = Color(swatch[index]!!)
/**
@zainulhassan815
zainulhassan815 / copyDeps.gradle
Created January 8, 2022 18:55 — forked from n-belokopytov/copyDeps.gradle
Gradle script that generates a task to copy all build variant's dependencies to a certain directory for use with Nexus IQ Server. It copies exploded AARs too, renaming the classes.jar file into "<aar_dependency_name>.jar".
apply plugin: 'com.android.application'
android.applicationVariants.all { variant ->
task "copyDependencies${variant.name.capitalize()}"() {
outputs.upToDateWhen { false }
doLast {
println "Executing copyDependencies${variant.name.capitalize()}"
variant.getCompileClasspath().each { fileDependency ->
def sourcePath = fileDependency.absolutePath
def destinationPath = project.projectDir.path + "/build/dependencies/${variant.name}/"