Skip to content

Instantly share code, notes, and snippets.

View murijr's full-sized avatar
🐲

Amauri Rodrigues murijr

🐲
View GitHub Profile
@murijr
murijr / publishMavenLocal.gradle
Created April 28, 2019 06:01 — forked from Robyer/maven-publish-helper-usage.gradle
Gradle script for publishing Android library to local Maven repository using maven-publish plugin. With dependencies (also handling transitive: false and custom exclude rules), including sources and javadoc.
apply plugin: 'maven-publish'
task androidJavadocs(type: Javadoc) {
source = android.sourceSets.main.java.srcDirs
classpath += project.files(android.getBootClasspath().join(File.pathSeparator))
android.libraryVariants.all { variant ->
if (variant.name == 'release') {
owner.classpath += variant.javaCompile.classpath
}
}
@murijr
murijr / README.md
Created April 12, 2019 03:22 — forked from lopspower/README.md
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha:

wget -qO- https://get.docker.com/ | sh